/* Peptigen Labs shop: additions on top of shop.css (21+ gate, action bar, info pages, lab tools).
   Same tokens, same rules: flat colour, no inline styles (CSP), focus always visible, reduced motion respected. */

/* ---------- 1. The 21+ research-use gate ---------- */
body.gated { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 100; display: grid; overflow-y: auto; padding: var(--s-400) var(--s-200); }
.gate-scrim {
  position: fixed; inset: 0; background: color-mix(in srgb, var(--brand-dark) 92%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  transition: opacity .45s var(--ease);
}
.gate-wrap { position: relative; width: 100%; max-width: 464px; margin: auto; display: grid; justify-items: center; gap: var(--s-300); animation: gate-in .6s var(--ease) both; }
.gate-logo { display: block; height: 40px; width: auto; }
.gate-card {
  position: relative; width: 100%; overflow: hidden; text-align: left;
  background: var(--bg); color: var(--ink); border-radius: var(--r-3xl);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}
.gate-card::before, .gate-card::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--sigil); opacity: .5; pointer-events: none; }
.gate-card::before { top: 52px; left: 14px; border-right: 0; border-bottom: 0; }
.gate-card::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* The band repeats the research-use band printed on every Peptigen vial label */
.gate-band {
  display: flex; justify-content: space-between; gap: var(--s-100); margin: 0; padding: var(--s-100) var(--s-300);
  background: var(--brand-dark); color: var(--brand-white); border-bottom: 3px solid var(--brand-emerald);
  font-family: var(--display); font-size: .6875rem; line-height: 1rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.gate-band span:nth-child(2) { color: var(--brand-emerald); }
.gate-body { padding: var(--s-300) var(--s-400) var(--s-300); }
.gate-eyebrow { color: var(--green-ink); margin: 0 0 var(--s-75); }
.gate h2 { font-size: 1.75rem; line-height: 2.125rem; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 var(--s-100); }
.gate-lede { color: var(--muted); margin: 0 0 var(--s-300); }

.gate-checks { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-75); }
.gate-check {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-100); align-items: start;
  padding: var(--s-100) var(--s-200); border: 1px solid var(--line-strong); border-radius: var(--r-xl); cursor: pointer;
  font-size: .9375rem; line-height: 1.375rem; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.gate-check:hover { border-color: var(--muted); }
.gate-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gate-box { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.gate-box svg { width: 14px; height: 14px; }
.gate-box path { fill: none; stroke: var(--btn-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease) .05s; }
.gate-check input:checked ~ .gate-box { background: var(--btn); border-color: var(--btn); }
.gate-check input:checked ~ .gate-box path { stroke-dashoffset: 0; }
.gate-check:has(input:checked) { border-color: var(--btn); background: var(--well); }
.gate-check input:focus-visible ~ .gate-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.gate-check:has(input:focus-visible) { border-color: var(--focus); }

.gate-meter { display: none; height: 3px; margin: var(--s-200) 0; border-radius: var(--r-full); background: var(--line); overflow: hidden; }
.js .gate-meter { display: block; }
.gate-meter span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.gate-meter[data-n="1"] span { width: 50%; }
.gate-meter[data-n="2"] span { width: 100%; }
.gate-enter { margin-top: var(--s-200); min-height: 48px; letter-spacing: .02em; }
.js .gate-enter { margin-top: 0; }
.gate-enter[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.gate-exit { margin: var(--s-200) 0 0; text-align: center; }
.gate-exit a { font-size: .875rem; font-weight: 600; color: var(--muted); }
.gate-fine { margin: var(--s-100) 0 0; text-align: center; font-size: .75rem; line-height: 1.125rem; color: var(--muted); }
.gate-fine a { color: var(--muted); }
.gate-foot { margin: 0; color: rgba(255, 255, 255, .78); letter-spacing: .16em; text-align: center; }

.gate.leaving .gate-scrim { opacity: 0; }
.gate.leaving .gate-card { opacity: 0; transform: translateY(-10px) scale(.98); }
.gate.leaving .gate-logo, .gate.leaving .gate-foot { opacity: 0; transition: opacity .3s var(--ease); }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-color-scheme: dark) {
  .gate-card { background: var(--surface); box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 200, 83, .22); }
  .gate-box { background: var(--surface); }
}
@media (max-width: 480px) {
  .gate { padding: var(--s-300) var(--s-200); }
  .gate-body { padding: var(--s-300) var(--s-200) var(--s-200); }
  .gate-band { padding-inline: var(--s-200); font-size: .625rem; letter-spacing: .1em; }
  .gate h2 { font-size: 1.5rem; line-height: 1.875rem; }
  .gate-card::before { left: 8px; top: 48px; }
}

/* Footer: a second link column */
.footer-nav { align-content: start; }
.footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 640px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- 4. Action bar: fixed along the bottom on phones, a floating pill on wider screens ---------- */
.dock-item { position: relative; display: inline-flex; align-items: center; gap: var(--s-75); border: 0; background: none; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.dock-item svg { width: 20px; height: 20px; flex: none; }
.dock-icon { position: relative; display: inline-grid; }
.dock-count {
  position: absolute; top: -6px; right: -10px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-full); background: var(--brand-emerald); color: #02150A; font-size: .6875rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums;
}
.dock-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.js .dock-nojs { display: none; }

@media (max-width: 640px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    padding: 0 var(--s-75) env(safe-area-inset-bottom, 0px); background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(6, 77, 46, .35);
  }
  .dock .on-desk { display: none; }
  .dock-item { flex-direction: column; justify-content: center; gap: 3px; min-height: 64px; padding: var(--s-75) 0 var(--s-50); color: var(--muted); font-size: .6875rem; line-height: .875rem; font-weight: 600; letter-spacing: .01em; }
  .dock-item svg { width: 22px; height: 22px; }
  .dock-item::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
  .dock-item[aria-current="page"], .dock-item[aria-expanded="true"] { color: var(--green-ink); }
  .dock-item[aria-current="page"]::before, .dock-item[aria-expanded="true"]::before { transform: scaleX(1); }
  .dock-item:active svg { transform: scale(.92); }
  .dock-item:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
  /* the phone menu panel already covers the page; keep the bar above it so Menu can close it */
  body.menu-open .dock { background: var(--surface); }
}
@media (min-width: 641px) {
  .site-footer { padding-bottom: 112px; }
  .dock {
    position: fixed; left: 50%; bottom: var(--s-300); z-index: 45; display: flex; align-items: center; gap: var(--s-25);
    padding: var(--s-50); border-radius: var(--r-full); background: var(--brand-dark); color: var(--brand-white);
    box-shadow: 0 18px 44px -14px rgba(6, 77, 46, .55), 0 2px 6px rgba(10, 10, 10, .12), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden;
    transition: transform .55s var(--ease), opacity .35s var(--ease), visibility 0s .55s;
  }
  .dock.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .55s var(--ease), opacity .35s var(--ease); }
  .dock .on-phone { display: none; }
  .dock-item { min-height: 44px; padding: 0 var(--s-200); border-radius: var(--r-full); font-size: .875rem; line-height: 1.25rem; font-weight: 600; transition: background-color .25s var(--ease), transform .25s var(--ease); }
  .dock-item:hover { background: rgba(255, 255, 255, .1); }
  .dock-item:active { transform: scale(.97); }
  .dock-item[aria-current="page"] { background: rgba(255, 255, 255, .12); }
  .dock-item:focus-visible { outline-color: var(--brand-emerald); }
  .dock-cart { background: var(--brand-emerald); color: #02150A; padding-right: var(--s-200); }
  .dock-cart:hover, .dock-cart[aria-current="page"] { background: #3BE07E; }
  .dock-cart .dock-count { position: static; margin-left: var(--s-50); background: #02150A; color: var(--brand-emerald); order: 2; }
  .dock-cart .dock-icon { display: inline-flex; align-items: center; }
  .dock-item[data-dock-top] { padding: 0 var(--s-100); }
  .dock-item[data-dock-top] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (min-width: 641px) and (prefers-color-scheme: dark) {
  .dock { background: #0F1512; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(0, 200, 83, .28); }
}
@media (prefers-reduced-motion: reduce) {
  .dock, .dock.show { transition: opacity .01ms, visibility 0s; transform: translate(-50%, 0); }
  @media (max-width: 640px) { .dock, .dock.show { transform: none; } }
}

/* Header: the extra links fit from 861px; between the phone menu and that, About and Contact live in the footer and the action bar */
.nav a { white-space: nowrap; }
@media (min-width: 641px) and (max-width: 860px) { .nav a[href="/about"], .nav a[href="/contact"] { display: none; } }

/* ---------- 2. Policy pages ---------- */
.doc-date { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-600); align-items: start; }
.doc-side { position: sticky; top: 96px; display: grid; gap: var(--s-300); }
.doc-toc summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: .875rem; line-height: 1.25rem; list-style: none; margin-bottom: var(--s-100); }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol, .doc-others ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc a, .doc-others a { display: block; padding: var(--s-50) var(--s-200); margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .875rem; line-height: 1.25rem; transition: color .2s var(--ease), border-color .2s var(--ease); }
.doc-toc a:hover, .doc-others a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.doc-toc a.on { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.doc-others .caption-3 { color: var(--muted); margin: 0 0 var(--s-75); }
.doc-body { max-width: 720px; }
.doc-body p, .doc-body li { color: var(--ink); }
.doc-body ul:not(.glance ul) { padding-left: var(--s-300); display: grid; gap: var(--s-75); margin: 0 0 var(--s-200); }
.doc-sec { padding-top: var(--s-400); scroll-margin-top: 96px; }
.doc-sec h2 { display: flex; align-items: baseline; gap: var(--s-100); margin: 0 0 var(--s-100); font-size: 1.25rem; line-height: 1.75rem; }
.doc-num { font-size: .75rem; line-height: 1rem; font-weight: 700; color: var(--green-ink); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.doc-body code { font-size: .8125rem; padding: 1px 6px; border-radius: var(--r-sm); background: var(--well); }
.glance { scroll-margin-top: 96px; padding: var(--s-300); border-radius: var(--r-2xl); background: var(--well); border: 1px solid var(--line); border-left: 4px solid var(--btn); }
.glance h2 { margin: 0 0 var(--s-100); color: var(--green-ink); font-family: inherit; }
.glance ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-100); }
.glance li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--s-100); font-weight: 600; }
.glance svg { width: 16px; height: 16px; margin-top: 4px; fill: none; stroke: var(--green-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.doc-close { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-200); align-items: center; margin-top: var(--s-600); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); }
.doc-close > svg { width: 28px; height: 28px; color: var(--sigil); }
.doc-close h2 { margin: 0 0 var(--s-25); font-size: 1.125rem; line-height: 1.5rem; }
.doc-close p { margin: 0; color: var(--muted); }

.policy-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-200); }
.policy-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-75); height: 100%; padding: var(--s-300); border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.policy-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.policy-card svg { width: 24px; height: 24px; color: var(--sigil); margin-bottom: var(--s-75); }
.policy-title { font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.5rem; }
.policy-blurb { color: var(--muted); font-size: .9375rem; line-height: 1.375rem; }
.policy-date { margin-top: auto; padding-top: var(--s-100); color: var(--muted); font-size: .75rem; line-height: 1rem; font-weight: 600; }

@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: var(--s-300); }
  .doc-side { position: static; }
  .doc-others { display: none; }
  .doc-toc { padding: var(--s-200); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
  .doc-toc summary { margin: 0; }
  .doc-toc[open] summary { margin-bottom: var(--s-100); }
  .doc-close { grid-template-columns: minmax(0, 1fr); }
  .doc-close > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .policy-card:hover { transform: none; } }
@media (max-width: 900px) {
  .doc-toc summary { display: flex; justify-content: space-between; align-items: center; }
  .doc-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
  .doc-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
}

/* ---------- 3. About ---------- */
.about-hero { padding: var(--s-600) 0 var(--s-700); }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-600); align-items: center; }
.about-hero h1 { font-size: 3rem; line-height: 3.25rem; font-weight: 800; letter-spacing: -0.035em; margin: var(--s-75) 0 var(--s-200); }
.about-facts { list-style: none; padding: 0; margin: var(--s-400) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.about-facts li { display: grid; gap: var(--s-25); padding: var(--s-200) var(--s-200) 0 0; }
.about-facts li + li { padding-left: var(--s-200); border-left: 1px solid var(--line); }
.about-facts b { font-family: var(--display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--green-ink); }
.about-facts span { color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.about-vials { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; aspect-ratio: 5 / 4; padding: var(--s-300) var(--s-200) 0; border-radius: var(--r-3xl); background: var(--well); overflow: hidden; }
.about-vials::before, .about-vials::after { content: ""; position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--sigil); opacity: .5; }
.about-vials::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.about-vials::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.about-vials img { width: 150%; max-width: none; height: auto; margin-left: -25%; filter: drop-shadow(0 18px 18px rgba(6, 77, 46, .18)); }
.about-vials img:nth-child(2) { transform: translateY(-8%) scale(1.12); z-index: 1; }
.about-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-600); }
.about-story h2 { margin: 0; font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.025em; }
.about-story-text p { font-size: 1.0625rem; line-height: 1.75rem; }
.about-mission { margin: var(--s-300) 0 0; padding: var(--s-300); border-radius: var(--r-2xl); background: var(--brand-dark); color: var(--brand-white); font-family: var(--display); font-weight: 700; font-size: 1.375rem !important; line-height: 1.875rem !important; letter-spacing: -0.015em; }
.about-mission .caption-3 { display: block; margin-bottom: var(--s-75); color: var(--brand-emerald); font-family: "Manrope", sans-serif; }
.about-rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-200); }
.about-rules li { padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); }
.about-rules svg { width: 26px; height: 26px; color: var(--sigil); margin-bottom: var(--s-200); }
.about-rules h3 { font-size: 1.0625rem; line-height: 1.5rem; margin-bottom: var(--s-75); }
.about-rules p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.375rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-300); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding-top: var(--s-400); }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--btn); }
.timeline li:last-child::before { border-style: dashed; border-color: var(--muted); }
.tl-when { color: var(--green-ink); }
.timeline h3 { font-size: 1.125rem; line-height: 1.5rem; margin: var(--s-50) 0 var(--s-75); }
.timeline p { margin: 0; color: var(--muted); }
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-200); }
.team li { padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.team-init { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-200); border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.team-role { color: var(--green-ink); font-weight: 600; font-size: .875rem; margin: 0 0 var(--s-75); }
.about-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-300); padding: var(--s-500); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--line); }
.about-close h2 { margin: 0; max-width: 520px; font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }
.about-close .hero-actions { margin: 0; }

/* ---------- 3. Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-400); align-items: start; }
.contact-form { display: grid; gap: var(--s-300); }
.contact-form h2 { margin: 0; }
.contact-form label { display: grid; gap: var(--s-75); font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; }
.contact-form textarea { resize: vertical; min-height: 150px; font: inherit; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-200); }
.topic-tiles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-75); }
.topic-tiles legend { padding: 0; margin-bottom: var(--s-100); font-size: .875rem; font-weight: 600; }
.topic { position: relative; display: block !important; cursor: pointer; }
.topic input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.topic span { display: inline-flex; align-items: center; min-height: 40px; padding: var(--s-75) var(--s-200); border: 1px solid var(--line-strong); border-radius: var(--r-full); font-weight: 500; transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.topic:hover span { border-color: var(--muted); }
.topic input:checked + span { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); font-weight: 600; }
.topic input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.contact-form .hint { font-weight: 400; color: var(--muted); }
.contact-note { margin: 0; padding: var(--s-100) var(--s-200); border-radius: var(--r-lg); background: var(--well); color: var(--muted); font-size: .8125rem; line-height: 1.25rem; }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200); font-size: .875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert ul { margin: var(--s-75) 0 0; padding-left: var(--s-300); }
.alert p { margin: 0; }
.sent { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-200); align-items: start; margin-bottom: var(--s-300); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--well); border: 1px solid var(--btn); }
.sent:focus { outline: none; }
.sent svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--btn); fill: none; stroke: var(--btn-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sent h2 { margin: 0 0 var(--s-50); font-size: 1.25rem; line-height: 1.75rem; }
.sent p { margin: 0; }
.contact-side { display: grid; gap: var(--s-200); position: sticky; top: 96px; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-100); }
.line-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-200); align-items: center; padding: var(--s-200); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); }
.line-card > svg { width: 40px; height: 40px; padding: 9px; border-radius: var(--r-lg); background: var(--well); color: var(--sigil); }
.line-card .caption-3 { margin: 0 0 2px; color: var(--muted); }
.line-card p:last-child { margin: 0; font-weight: 600; }
.line-card a { font-weight: 700; overflow-wrap: anywhere; }
.map-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); }
.map-art { display: block; width: 100%; height: 150px; }
.m-ground { fill: var(--well); }
.m-block { fill: color-mix(in srgb, var(--surface) 70%, var(--well)); }
.m-road { fill: none; stroke: var(--bg); stroke-width: 9; }
.m-river { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, var(--well)); stroke-width: 10; stroke-linecap: round; }
.m-pin path { fill: var(--btn); }
.m-halo { fill: color-mix(in srgb, var(--accent) 25%, transparent); }
.m-dot { fill: var(--btn-ink); }
.map-text { padding: var(--s-200) var(--s-300) var(--s-300); }
.map-text .caption-3 { margin: 0 0 var(--s-25); color: var(--muted); }
.map-place { margin: 0 0 var(--s-75); font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.5rem; }
.map-text .muted { font-size: .875rem; line-height: 1.25rem; }
.sla { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--brand-dark); color: var(--brand-white); }
.sla h2 { margin: 0 0 var(--s-200); color: var(--brand-emerald); font-family: inherit; }
.sla dl { margin: 0; display: grid; gap: var(--s-100); }
.sla dl div { display: flex; justify-content: space-between; gap: var(--s-200); padding-bottom: var(--s-100); border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; line-height: 1.25rem; }
.sla dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.sla dt { color: rgba(255, 255, 255, .8); }
.sla dd { margin: 0; font-weight: 700; text-align: right; }
@media (prefers-color-scheme: dark) { .sla { background: #0B2A1B; border: 1px solid #1F4A33; } }

@media (max-width: 1024px) {
  .about-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-hero-grid, .about-story, .contact { grid-template-columns: minmax(0, 1fr); }
  .about-hero h1 { font-size: 2.25rem; line-height: 2.5rem; }
  .about-vials { max-width: 520px; }
  .contact-side { position: static; }
  .timeline { grid-auto-flow: row; gap: var(--s-300); padding-left: var(--s-400); }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: calc(-1 * var(--s-400)); top: 4px; }
}
@media (max-width: 640px) {
  .about-rules, .contact-row { grid-template-columns: minmax(0, 1fr); }
  .about-facts b { font-size: 1.5rem; line-height: 2rem; }
  .about-close { padding: var(--s-300); }
  .about-story h2 { font-size: 1.75rem; line-height: 2.125rem; }
}
.label-row { display: flex; justify-content: space-between; gap: var(--s-100); }

/* ---------- 5/6. Lab tools hub ---------- */
.lab-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); }
.lab-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-100); height: 100%; padding: var(--s-400); border-radius: var(--r-3xl); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.lab-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.lab-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s-100); border-radius: var(--r-xl); background: var(--brand-dark); color: var(--brand-emerald); }
.lab-ic svg { width: 28px; height: 28px; }
.lab-title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; }
.lab-text { color: var(--muted); max-width: 440px; }
.lab-list { display: flex; flex-wrap: wrap; gap: var(--s-75); margin: var(--s-100) 0 var(--s-200); }
.lab-list span { padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: var(--well); font-size: .8125rem; line-height: 1.25rem; font-weight: 600; }
.lab-card .link-row { margin-top: auto; }
.lab-policy { display: flex; gap: var(--s-100); align-items: flex-start; margin: var(--s-400) 0 0; padding: var(--s-200) var(--s-300); border-radius: var(--r-xl); border: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.375rem; }
.lab-policy .ic { color: var(--sigil); margin-top: 1px; }

/* ---------- 5. Compound reference ---------- */
.ref-tools { display: grid; gap: var(--s-200); margin-bottom: var(--s-300); }
.chip-btn { display: inline-flex; align-items: center; min-height: 40px; padding: var(--s-75) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.chip-btn:hover { border-color: var(--line-strong); background: var(--well); }
.chip-btn[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); font-weight: 600; }
.chip-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ref { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-400); align-items: start; }
.ref-list { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding: var(--s-75); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); }
.ref-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.ref-list a { display: flex; align-items: center; gap: var(--s-100); min-height: 40px; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; font-size: .9375rem; line-height: 1.25rem; font-weight: 500; transition: background-color .2s var(--ease); }
.ref-list a:hover { background: var(--well); }
.ref-list a[aria-current="true"] { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.ref-list a[aria-current="true"] .rx { background: var(--btn-ink); color: var(--btn); }
.ref-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--tone, var(--line-strong)); }
.ref-name { flex: 1; min-width: 0; }
.rx { flex: none; padding: 1px 6px; border-radius: var(--r-sm); background: var(--alert-bg); color: var(--alert-ink); font-size: .6875rem; line-height: 1rem; font-weight: 800; letter-spacing: .04em; }
.ref-none { margin: var(--s-200); color: var(--muted); }
.ref-details { display: grid; gap: var(--s-300); }
.js .ref-details .ref-card { display: none; }
.js .ref-details .ref-card.on { display: grid; }
.ref-card { display: grid; gap: var(--s-300); padding: var(--s-400); border-radius: var(--r-3xl); border: 1px solid var(--line); background: var(--bg); scroll-margin-top: 96px; }
.js .ref-card.on { animation: ref-in .45s var(--ease) both; }
@keyframes ref-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ref-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-300); align-items: center; }
.ref-shot { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); background: color-mix(in srgb, var(--tone, var(--accent)) 16%, var(--surface)); overflow: hidden; }
.ref-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ref-cat { color: var(--green-ink); margin: 0 0 var(--s-50); }
.ref-card h2 { margin: 0 0 var(--s-50); font-size: 2rem; line-height: 2.375rem; font-weight: 800; letter-spacing: -0.025em; }
.ref-card h2:focus { outline: none; }
.ref-class { margin: 0 0 var(--s-100); color: var(--muted); }
.ref-tags { display: flex; flex-wrap: wrap; gap: var(--s-75); margin: 0; }
.ref-status { display: flex; gap: var(--s-100); align-items: flex-start; padding: var(--s-200); border-radius: var(--r-xl); background: var(--well); }
.ref-status p { margin: 0; font-size: .9375rem; line-height: 1.375rem; }
.ref-status .ic { color: var(--sigil); margin-top: 1px; }
.ref-status.is-rx { background: var(--alert-bg); color: var(--alert-ink); border: 1px solid var(--alert-line); }
.ref-status.is-rx .ic { color: var(--alert-ink); }
.ref-rx-note { display: block; margin-top: var(--s-50); }
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.chain-step { position: relative; display: grid; gap: 2px; padding: var(--s-200); background: var(--surface); }
.chain-step + .chain-step { border-left: 1px solid var(--line); }
.chain-step + .chain-step::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); transform: rotate(45deg); }
.chain-temp { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.75rem; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.chain-name { font-weight: 700; font-size: .875rem; line-height: 1.25rem; }
.chain-note { color: var(--muted); font-size: .8125rem; line-height: 1.125rem; }
.ref-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.ref-facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-200); padding: var(--s-100) 0; border-bottom: 1px solid var(--line); }
.ref-facts dt { color: var(--muted); font-weight: 600; font-size: .875rem; }
.ref-facts dd { margin: 0; }
.ref-handling { border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-200); }
.ref-handling summary { cursor: pointer; font-weight: 700; }
.ref-handling ol { margin: var(--s-200) 0 0; padding-left: var(--s-300); display: grid; gap: var(--s-75); }
.ref-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100) var(--s-200); }

/* ---------- 6. Solution calculator ---------- */
.calc { border: 1px solid var(--line); border-radius: var(--r-3xl); background: var(--surface); overflow: hidden; }
.calc-tabs { display: flex; gap: var(--s-50); padding: var(--s-75); border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
.calc-tabs button { display: inline-flex; align-items: center; gap: var(--s-75); min-height: 44px; padding: var(--s-75) var(--s-200); border: 0; border-radius: var(--r-xl); background: transparent; color: var(--muted); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.calc-tabs button b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .75rem; line-height: 1; }
.calc-tabs button:hover { background: var(--well); color: var(--ink); }
.calc-tabs button[aria-selected="true"] { background: var(--btn); color: var(--btn-ink); }
.calc-tabs button[aria-selected="true"] b { background: var(--btn-ink); color: var(--btn); border-color: var(--btn-ink); }
.calc-tabs button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.calc-pane { padding: var(--s-400); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-400); align-items: start; }
.calc-in { display: grid; gap: var(--s-200); }
.calc-in h2 { margin: 0 0 var(--s-75); font-size: 1.25rem; line-height: 1.75rem; }
.calc-for { margin: -4px 0 var(--s-50); font-size: .875rem; }
.field-row { display: grid; gap: var(--s-75); }
.field-row > label { font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.field-row .hint { margin: 0; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.unit-input { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; transition: border-color .2s var(--ease); }
.unit-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.unit-input input { flex: 1; min-width: 0; width: auto !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: var(--s-100) var(--s-200); outline: none; }
.unit-input select, .unit-input .unit { flex: none; display: grid; place-items: center; min-width: 72px; padding: 0 var(--s-200); border: 0; border-left: 1px solid var(--line); background: var(--well); color: var(--ink); font: inherit; font-weight: 600; font-size: .875rem; }
.unit-input select { cursor: pointer; }
.unit-input select:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.unit-input select:only-child { flex: 1; border-left: 0; background: transparent; justify-items: start; text-align: left; padding: var(--s-100) var(--s-200); min-height: 46px; }
.quick { display: flex; flex-wrap: wrap; gap: var(--s-50); }
.quick button { min-height: 32px; padding: 0 var(--s-100); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--bg); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.quick button:hover { border-color: var(--line-strong); background: var(--well); }
.quick button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-xl); background: var(--well); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; padding: var(--s-50) var(--s-100); border-radius: var(--r-lg); font-size: .875rem; font-weight: 600; text-align: center; color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg input:checked + span { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 10, 10, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.calc-out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-300); align-items: start; padding: var(--s-300); border-radius: var(--r-2xl); background: var(--bg); border: 1px solid var(--line); }
.calc-out > .big:only-child, .calc-out > .work, .calc-out > .table-wrap, .calc-out > .ser-bars, .calc-out > .mix { grid-column: 1 / -1; }
.big .caption-3 { color: var(--muted); margin: 0 0 var(--s-50); }
.big-num { margin: 0 0 var(--s-100); font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 3.25rem; letter-spacing: -0.03em; color: var(--green-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big-num span { font-size: 1.25rem; letter-spacing: 0; color: var(--ink); }
.also { list-style: none; padding: 0; margin: 0 0 var(--s-200); display: grid; gap: var(--s-50); color: var(--muted); font-variant-numeric: tabular-nums; }
.also output, .also b { color: var(--ink); font-weight: 700; }
.work { margin: 0; padding: var(--s-100) var(--s-200); border-radius: var(--r-lg); background: var(--well); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8125rem; line-height: 1.25rem; color: var(--ink); overflow-wrap: anywhere; }
.calc-warn { margin: var(--s-100) 0 0; padding: var(--s-100) var(--s-200); border-radius: var(--r-lg); background: var(--alert-bg); color: var(--alert-ink); font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.aliquot { margin-top: var(--s-200); padding-top: var(--s-200); border-top: 1px dashed var(--line-strong); }
.aliquot .caption-3 { color: var(--muted); margin: 0 0 var(--s-25); }
.aliquot p:last-child { margin: 0; }
.vial-fig { width: 132px; text-align: center; }
.vial-fig svg { width: 132px; height: 220px; display: block; }
.v-cap { fill: var(--brand-dark); }
.v-neck { fill: #B9C4BE; }
.v-glass { fill: none; stroke: var(--line-strong); stroke-width: 2.5; }
.v-ticks { stroke: var(--line-strong); stroke-width: 1.5; }
.v-liquid { fill: color-mix(in srgb, var(--accent) 45%, transparent); transition: y .6s var(--ease), height .6s var(--ease); }
.v-cake { fill: #ECEAE2; transition: opacity .4s var(--ease); }
.vial-cap { margin: var(--s-50) 0 0; color: var(--muted); font-size: .75rem; line-height: 1rem; font-weight: 600; }
.mix { display: grid; gap: var(--s-75); }
.mix-bar { display: block; height: 16px; border-radius: var(--r-full); background: var(--well); box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; }
.mix-stock { display: block; height: 100%; width: 10%; background: var(--btn); border-radius: var(--r-full); transition: width .5s var(--ease); }
.mix-key { display: flex; align-items: center; gap: var(--s-75); color: var(--muted); font-size: .75rem; font-weight: 600; }
.mix-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.k-stock { background: var(--btn); } .k-dil { background: var(--well); box-shadow: inset 0 0 0 1px var(--line-strong); margin-left: var(--s-100); }
.ser-table td, .ser-table th { white-space: nowrap; }
.ser-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.ser-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--btn); }
.calc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100) var(--s-200); padding: var(--s-200) var(--s-400) var(--s-300); border-top: 1px solid var(--line); }
.calc-policy { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.25rem; }
.calc.still .v-liquid, .calc.still .mix-stock { transition: none; }

@media (max-width: 1024px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .lab-cards { grid-template-columns: minmax(0, 1fr); }
  .ref { grid-template-columns: minmax(0, 1fr); }
  .ref-list { position: static; max-height: 280px; }
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain-step + .chain-step { border-left: 0; border-top: 1px solid var(--line); }
  .chain-step + .chain-step::before { display: none; }
}
@media (max-width: 640px) {
  .ref-card, .calc-pane { padding: var(--s-200); }
  .ref-head { grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-200); }
  .ref-card h2 { font-size: 1.5rem; line-height: 2rem; }
  .ref-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .calc-out { grid-template-columns: minmax(0, 1fr); padding: var(--s-200); }
  .vial-fig { width: 100%; display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: var(--s-200); text-align: left; }
  .vial-fig svg { width: 90px; height: 150px; }
  .big-num { font-size: 2.25rem; line-height: 2.5rem; }
  .calc-foot { padding: var(--s-200); }
  .lab-card { padding: var(--s-300); }
}
@media (prefers-reduced-motion: reduce) { .lab-card:hover { transform: none; } .js .ref-card.on { animation: none; } }
@media (max-width: 640px) {
  .ref-tools .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--s-300)); padding: 2px var(--s-300) var(--s-50); scrollbar-width: none; }
  .ref-tools .chip-btn { flex: none; }
}
@media (max-width: 640px) {
  .calc-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .calc-tabs button { justify-content: flex-start; padding: var(--s-75) var(--s-100); font-size: .875rem; }
}

/* Bench calculator on the product page (store/_bench.php, js/bench.js) */
.bench-block { padding-top: 0; }
.bench-panel { padding: var(--s-500); border: 1px solid var(--line); border-radius: var(--r-3xl); background: var(--surface); }
.bench-head { display: flex; max-width: 62ch; gap: var(--s-200); align-items: flex-start; margin-bottom: var(--s-300); }
.bench-head h2 { margin: 0 0 var(--s-25); }
.bench-head p { margin: 0; font-size: .875rem; line-height: 1.25rem; }
.bench-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-xl); background: var(--brand-dark); color: #fff; }
.bench-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bench-panel h3 { margin: 0 0 var(--s-100); font-size: 1rem; line-height: 1.5rem; }
.bench-live { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-300); align-items: stretch; }
.bench-live[hidden], .bench-tools[hidden] { display: none; }
.bench-controls { display: grid; gap: var(--s-200); align-content: start; }
.bench-controls .field-label, .bench-chips legend { display: block; margin: 0 0 var(--s-75); padding: 0; font-size: .875rem; font-weight: 600; }
.bench-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-50); }
.bench-chips label { position: relative; cursor: pointer; }
.bench-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bench-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: var(--s-50) var(--s-200); border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--bg); font-weight: 600; font-size: .875rem; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.bench-chips input:checked + span { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.bench-chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.bench-vol { display: grid; gap: var(--s-75); }
.bench-vol .field-label { margin: 0; }
.bench-panel .quick button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.bench-result { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--bg); border: 1px solid var(--line); }
.bench-result .caption-3 { margin: 0 0 var(--s-50); color: var(--muted); }
.bench-result p { margin: 0 0 var(--s-75); font-variant-numeric: tabular-nums; }
.bench-result output { font-weight: 700; color: var(--ink); }
.bench-big { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 2.75rem; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.bench-big output { color: var(--green-ink) !important; font-weight: 800 !important; }
.bench-big span { font-size: 1.125rem; letter-spacing: 0; }
.bench-note { margin: var(--s-100) 0 0; font-size: .8125rem; line-height: 1.25rem; color: var(--muted); }
.bench-matrix { margin-top: var(--s-400); }
.bench-matrix td { font-variant-numeric: tabular-nums; transition: background-color .2s var(--ease), color .2s var(--ease); }
.js .bench-matrix td { cursor: pointer; }
.js .bench-matrix td:hover { background: var(--well); }
.bench-matrix td.on { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.bench-matrix th.on { color: var(--green-ink); }
.bench-lower { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-300); margin-top: var(--s-400); align-items: start; }
.bench-lower .bench-matrix { margin-top: 0; }
.bench-tools { display: grid; gap: var(--s-200); }
.bench-card { display: flex; flex-direction: column; gap: var(--s-100); padding: var(--s-300); border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--bg); }
.bench-card h3 { margin: 0; }
.bench-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-100); }
.bench-inline > label { display: grid; gap: var(--s-50); font-size: .8125rem; font-weight: 600; }
.unit-input.small input { font-size: 1rem; padding: var(--s-75) var(--s-100); }
.unit-input.small .unit { min-width: 64px; font-size: .8125rem; }
.bench-answer { margin: 0; padding: var(--s-100) var(--s-200); border-radius: var(--r-lg); background: var(--well); font-size: .875rem; line-height: 1.375rem; font-variant-numeric: tabular-nums; }
.bench-card [data-set-qty] { align-self: flex-start; }
.bench-card [data-set-qty][hidden] { display: none; }
.bench-more { margin: var(--s-300) 0 0; }
@media (max-width: 900px) { .bench-live, .bench-lower { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bench-panel { padding: var(--s-300) var(--s-200); border-radius: var(--r-2xl); }
  .bench-big { font-size: 2rem; line-height: 2.25rem; }
}
