/* TNPS professional redesign: cohesive design tokens and accessible rhythm.
   Front-end only; does not modify prices, inventory, orders, or Worker routes. */
:root{--bg:#f7f9fb;--card:#fff;--ink:#142b42;--muted:#62738a;--line:#e3eaf0;--line2:#d3dee8;--soft:#f3f7fa;--teal:#0f766e;--teal-d:#095f58;--teal-soft:#e8f5f2;--radius:14px}
body{background:var(--bg);font-size:17px;line-height:1.62;letter-spacing:-.005em}
.wrap{max-width:1240px;padding-inline:clamp(18px,3.5vw,44px)}
.topbar{background:#102e47;font-size:10px;letter-spacing:.095em;padding:10px 0}
header.site{background:var(--headbg);box-shadow:0 1px 0 rgba(15,47,72,.035)}
.hd{min-height:80px;gap:24px}.brand{gap:12px}.brand img{width:40px;height:40px}.brand .bt b{font-size:18px;letter-spacing:-.025em}.brand .bt span{font-size:9px;letter-spacing:.19em}
nav.main{gap:2px;margin-left:0}nav.main a{font-size:13px;font-weight:650;letter-spacing:.005em;padding:10px 12px;border-radius:8px}
nav.main a:hover{background:var(--soft);color:var(--teal);text-decoration:none}
.hd-search input{width:145px;background:var(--soft);border-color:var(--line);border-radius:9px 0 0 9px}.hd-search button{border-radius:0 9px 9px 0}
.cartbtn{background:var(--teal);color:#fff;border-color:var(--teal);border-radius:9px;white-space:nowrap;min-height:42px}.themebtn{min-height:42px}
.tnp-hero{border-bottom:1px solid var(--line);background:linear-gradient(125deg,#f3f8fa,#fff 60%,#eef6f3);padding:clamp(52px,8vw,105px) 0}
.tnp-hero-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.78fr);gap:clamp(30px,7vw,110px);align-items:center}
.tnp-kicker,.tnp-panel-kicker{font:700 11px var(--mono);letter-spacing:.16em;color:var(--teal)}
.tnp-hero h1{font-size:clamp(36px,5vw,66px);line-height:1.09;letter-spacing:-.047em;font-weight:800;max-width:780px;margin:17px 0 19px}
.tnp-hero h1 span{color:var(--teal)}.tnp-hero-sub{font-size:17px;max-width:620px;line-height:1.7;color:var(--muted)}
.tnp-hero .cta-row{margin-top:27px}.tnp-disclaimer{margin-top:20px;color:var(--muted);font-size:12px}
.tnp-hero-panel{padding:32px;border:1px solid #dce9ea;border-radius:20px;background:rgba(255,255,255,.86);box-shadow:0 22px 70px rgba(18,49,66,.055)}
.tnp-hero-feature{display:flex;align-items:center;gap:18px;padding:19px 0;border-bottom:1px solid var(--line)}.tnp-hero-feature:last-child{border-bottom:0;padding-bottom:0}.tnp-hero-feature strong{font:700 12px var(--mono);color:var(--teal);background:var(--teal-soft);padding:10px;border-radius:10px}.tnp-hero-feature b{display:block;font-size:14px}.tnp-hero-feature small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
section.block{padding-block:clamp(28px,4.4vw,60px)}.sec-label{font-size:10px;letter-spacing:.14em}h1.st,h2.st{font-size:clamp(26px,3vw,38px);letter-spacing:-.035em}
.mgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mcard{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border-radius:15px;overflow:hidden;box-shadow:0 2px 8px rgba(14,42,71,.025);transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}
.mcard:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(14,42,71,.075)}
.mcard .mth{width:100%;height:200px;background:#f4f7fa}.mcard .mth img{height:100%;width:100%;object-fit:contain;padding:12px}
.mcard .mb{padding:19px 19px 20px;display:flex;flex-direction:column;flex:1}.mcard h3{font-size:18px;line-height:1.35;margin:0 0 9px}.mcard .mfoot{margin-top:auto;padding-top:15px}.mcard .from b{font-size:18px}.mcard .mstock{margin-top:0;margin-bottom:8px}
.tnp-finder{border-radius:17px!important;box-shadow:none!important;background:#fff}.tnp-quick{border-radius:9px!important;font-size:12px!important;padding:9px 12px!important}
.pcard{border-radius:15px;box-shadow:0 2px 8px rgba(14,42,71,.025)}
.prod{padding-top:25px}.prod-hero{gap:clamp(20px,4vw,54px)}.gallery,.buy.card{border-radius:18px!important}.buy.card{box-shadow:0 10px 42px rgba(14,42,71,.06)}
.prod-info{padding-block:24px}.prose{line-height:1.75}.prose h3{font-size:20px;letter-spacing:-.025em}.tnp-document-note{border:1px solid var(--line)!important;border-left:3px solid var(--teal)!important;background:#fff!important}
.btn,.btn-primary,.btn-secondary,.btn-ghost{transition:background .17s ease,border-color .17s ease,transform .17s ease;min-height:44px}.btn-p,.btn-primary{box-shadow:none}.btn-p:hover,.btn-primary:hover{transform:translateY(-1px)}
input,select,textarea{max-width:100%;accent-color:var(--teal)}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #189f90;outline-offset:3px}
footer.site{border-top:1px solid var(--line);padding-top:36px}.ffoot{gap:24px}
.ref-banner,#ref-banner,.ref-stack-note,.ref-msg,#ref-apply-btn,[for="f-referral"],#f-referral,.tnp-search-fab,.tnp-bottom-nav{display:none!important}
/* Hide the referral field grouping entirely, but keep its DOM elements for backwards-compatible scripts. */
.field:has(#f-referral){display:none!important}
body{padding-bottom:0!important}
:root[data-theme="dark"] .tnp-hero{background:linear-gradient(125deg,#1b2b3c,#202f42 60%,#183536)}
:root[data-theme="dark"] .tnp-hero-panel{background:#25384a;border-color:#355064}
:root[data-theme="dark"] .mcard .mth{background:#1c2a39}
:root[data-theme="dark"] .mcard .mb{background:var(--card)}
:root[data-theme="dark"] .tnp-finder,:root[data-theme="dark"] .tnp-document-note{background:var(--card)!important}
@media(max-width:1100px){.hd{flex-wrap:wrap;gap:12px}nav.main{order:3;flex-basis:100%;justify-content:space-between}.hd-right{margin-left:auto}}
@media(max-width:960px){.tnp-hero-layout{grid-template-columns:1fr}.tnp-hero-panel{display:none}.mgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.buy.card{padding:20px}.buy select{width:100%;min-width:0}.hd{min-height:66px;flex-wrap:wrap;gap:10px}.brand{flex-shrink:0}.brand .bt{white-space:nowrap}.brand .bt span{white-space:nowrap}.brand .bt b{font-size:16px}.themebtn{order:1;margin-left:auto}.menu-btn{order:2}.hd-right{order:5;flex:1 1 100%;margin-left:0}.hd-search{display:flex;flex:1}.hd-search input{flex:1;width:auto;min-width:0}.cartbtn{flex-shrink:0}header.site nav.main{display:none}header.site nav.main.open{display:flex;position:absolute;top:100%;left:0;width:100%;background:var(--card);border-bottom:1px solid var(--line);padding:14px 22px;box-shadow:0 18px 30px rgba(10,30,50,.11);flex-direction:column;gap:3px}nav.main.open a{padding:13px 10px;font-size:15px}header.site .menu-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}.tnp-hero{padding:60px 0 46px}.tnp-hero h1{font-size:clamp(35px,9vw,46px)}.tnp-hero-sub{font-size:15px}.mgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mcard .mb{padding:13px}.mcard h3{font-size:14px}.mcard .from b{font-size:16px}.mcard .mfoot{gap:8px;flex-wrap:wrap}.mcard .mfoot .link-more{font-size:12px}.tnp-modal-card{padding:16px}.tnp-modal-main{grid-template-columns:1fr}.tnp-hero .btn{width:100%}}
@media(max-width:380px){.mcard .mb{padding:12px}.mcard h3{font-size:13px}.brand img{width:32px;height:32px}.themebtn{min-width:40px;padding:0 8px}.cartbtn{padding:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
#ref-share-block{display:none!important}

/* Buy panel rhythm + spacing audit fixes (2026-10-31): tier bar removed, so savings/shipping are the only bars.
   Price in sans (mono made $127.89 read as spaced digits); price detail, Add to Cart, and trust row gaps fixed. */
.buy .price{font-family:var(--sans)}
.buy .price .price-detail{margin-top:6px}
.buy .btn-primary{margin-top:24px}
.trust-row{flex-wrap:wrap;row-gap:6px}
footer.site{padding-bottom:24px}

/* Card photo fix (2026-10-31): base inline style forces .mcard/.pcard photos to
   object-fit:cover!important, cropping vial tops/bottoms in the wide card slot.
   Contain the full vial, pad it, and round the photo corners explicitly. */
.mcard .mth{overflow:hidden;border-radius:15px 15px 0 0}
.mcard .mth img{object-fit:contain!important;box-sizing:border-box;padding:12px!important;background:var(--soft);border-radius:12px}
.pcard .ph img{object-fit:contain!important;box-sizing:border-box;padding:12px;background:var(--soft)}

/* Tightening + rounding (2026-10-31): site-wide spacing cut, all product photos 20px rounded.
   External sheet loads after each page's inline base style, so these rules win at equal specificity. */
.tnp-hero{padding:32px 0 40px!important}
.tnp-hero h1{margin:10px 0 12px!important}
.tnp-hero .cta-row{margin-top:16px!important}
.tnp-disclaimer{margin-top:12px!important}
section.block{padding:20px 0!important}
.tnp-hero-layout{gap:24px!important}
.prod-hero{gap:20px!important;margin-bottom:20px!important}
.prod .gallery,.gallery{padding:12px!important;border-radius:24px!important}
.buy.card{padding:18px!important}
.buy label.fl{margin:10px 0 4px!important}
.buy .ship{margin-top:8px!important}
.buy .stock-note{margin-top:8px!important}
.prose h3{margin:18px 0 8px!important}
.prose p{margin-bottom:10px!important}
.feature-hero{padding:40px 0 28px!important}
.feature-content{padding:28px 0 40px!important}
.info-panel{padding:18px!important}
.tnp-upgrade{padding:36px 0!important}
.upgrade-grid{margin-top:16px!important}
.upgrade-card{padding:18px!important}
footer.site{padding-top:20px!important;padding-bottom:16px!important}
.mgrid{gap:12px!important}
.mcard .mb{padding:14px 14px 16px!important}
.tnp-finder{padding:14px!important;margin:4px 0 16px!important}
.topbar{padding:6px 0!important}
.hd{min-height:64px!important}
/* Rounded product photos, all contexts */
.mcard .mth{border-radius:20px 20px 0 0!important}
.mcard .mth img{border-radius:20px!important}
.pcard .ph{border-radius:20px!important;overflow:hidden!important}
.pcard .ph img{border-radius:20px!important}
.cat-card .ph{border-radius:20px!important;overflow:hidden!important}
.cat-card .ph img{border-radius:20px!important}
.tnp-modal-main img{border-radius:20px!important}
.tnp-thumbs img{border-radius:16px!important}
.prod .gallery img{border-radius:20px!important}

/* Footer tighten + payment centering + success clean-up (2026-10-31). No content removed. */
footer.site{padding-top:8px!important;padding-bottom:8px!important}
.ffoot{padding:10px 0!important;gap:12px!important}
.fbrand{font-size:15px!important;margin-bottom:0!important}
.fbrand img{height:22px!important}
.flinks{gap:12px!important}
.flinks a{font-size:13px!important;line-height:1.4!important}
.signup-form{margin-top:0!important}
.signup-form input,.signup-form button{height:40px!important;box-sizing:border-box!important;font-size:13px!important}
.fbot{padding:8px 0!important;font-size:10.5px!important}
.fbot .wrap{gap:8px!important}
footer.site .wrap:last-child p{margin:8px 0 0!important;font-size:12px!important;line-height:1.45!important}
@media(max-width:760px){.ffoot{flex-direction:column!important;align-items:flex-start!important;gap:10px!important}}
/* Payment method: radio + word as one centered pair, fixed pill height, no inherited label margin. */
.pay-opt{height:48px!important;margin-bottom:0!important;line-height:1!important;padding:12px 16px!important;align-items:center!important;justify-content:center!important}
.pay-opt input{width:18px!important;height:18px!important;flex:none!important;align-self:center!important;margin:0!important}
.pay-opt span{display:inline-flex!important;align-items:center!important;line-height:1.2!important}
/* Success panel: tighter, steps separated. */
.success{padding:32px 20px!important}
.success h2{font-size:24px!important;margin-bottom:8px!important}
.success .ok{margin-bottom:14px!important}
.ordnum{margin:12px 0!important;padding:10px 18px!important}
.pay-step{margin:0 0 10px!important;font-size:15px!important;line-height:1.6!important}
.pay-step:last-child{margin-bottom:0!important}
#success-interac,#success-crypto{margin-top:20px!important}

/* Payment dot fix (2026-10-31): native Android radio renders a few px high in the pill, so draw the dot in CSS instead. The real radio stays focusable and clickable via its label, it is just visually hidden. */
.pay-opt input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;margin:0!important;pointer-events:none!important}
.pay-opt span::before{content:"";flex:none;width:18px;height:18px;border-radius:50%;border:2px solid #94a3b8;background:var(--card);margin-right:8px;box-sizing:border-box}
.pay-opt:has(input:checked) span::before{border-color:var(--teal);background:var(--teal);box-shadow:inset 0 0 0 4px var(--card)}
.pay-opt:focus-within{outline:3px solid var(--teal);outline-offset:2px}

/* Testing list (2026-10-31): organized rows, flashing orange Testing in progress label. */
.tnp-test-list{margin:8px 0 20px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--card)}
.tnp-test-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid var(--line)}
.tnp-test-row:last-child{border-bottom:0}
.tnp-test-row strong{display:block;font-size:16px}
.tnp-test-row span{font-size:13.5px;color:var(--muted)}
.tnp-test-status{display:inline-flex!important;align-items:center!important;gap:8px!important;flex:none!important;font-size:13px!important;font-weight:700!important;color:#c2410c!important;background:#fff7ed!important;border:1px solid #fdba74!important;border-radius:999px!important;padding:6px 12px!important;white-space:nowrap!important}
:root[data-theme="dark"] .tnp-test-status{color:#fdba74!important;background:#3a2c14!important;border-color:#6b5320!important}
.tnp-test-dot{width:11px!important;height:11px!important;border-radius:50%!important;background:#f97316!important;flex:none!important;animation:tnp-test-pulse 1.6s ease-out infinite!important}
@keyframes tnp-test-pulse{0%{box-shadow:0 0 0 0 rgba(249,115,22,.55)}70%{box-shadow:0 0 0 10px rgba(249,115,22,0)}100%{box-shadow:0 0 0 0 rgba(249,115,22,0)}}
@media(prefers-reduced-motion:reduce){.tnp-test-dot{animation:none!important}}
.tnp-test-note{font-size:15px!important;line-height:1.6!important;color:var(--muted)!important;margin:0 0 12px!important;max-width:640px!important}
@media(max-width:600px){.tnp-test-row{padding:12px 14px}.tnp-test-row strong{font-size:15px}.tnp-test-status{font-size:12px!important;padding:5px 10px!important}}

/* PC header fix (2026-10-31): the inline .menu-btn{display:block} leaked the mobile menu button onto desktop. Hide it on PC, force one header row, and keep the mobile button below 750px. */
@media(min-width:751px){
header.site .menu-btn{display:none!important}
.hd{flex-wrap:nowrap!important;gap:14px!important}
.brand{order:1!important;flex:none!important}
nav.main{order:2!important;display:flex!important;flex:1 1 auto!important;flex-basis:auto!important;flex-wrap:nowrap!important;white-space:nowrap!important;justify-content:flex-start!important}
nav.main a{padding:10px 9px!important;font-size:13px!important;white-space:nowrap!important}
.hd-right{order:3!important;margin-left:auto!important;flex:none!important}
.themebtn{order:4!important;flex:none!important}
}
@media(min-width:751px) and (max-width:1100px){
.startbtn{display:none!important}
.hd-search input{width:110px!important}
nav.main a{padding:10px 7px!important}
}
.tnp-test-desc{margin:4px 0 18px;max-width:680px}
.tnp-test-desc p{font-size:15px!important;line-height:1.6!important;color:var(--muted)!important;margin:0 0 10px!important}
.tnp-test-desc strong{color:var(--ink)}

/* Photo fix (2026-10-31, new-products build): no cover cropping anywhere.
   Card photos are larger (taller 4/5 slot), gallery main is contain in a
   4/5 bubble with a soft background filling the rest, all rounded. */
.mcard .mth{width:168px!important;height:210px!important;flex:none!important;aspect-ratio:4/5!important;border-radius:20px!important;overflow:hidden!important;background:var(--soft)!important}
.mcard .mth img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:8px!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px!important}
.pcard .ph{aspect-ratio:4/5!important;border-radius:20px!important;overflow:hidden!important;background:var(--soft)!important}
.pcard .ph img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:12px!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px!important}
.cat-card .ph{aspect-ratio:4/5!important}
.cat-card .ph img{object-fit:contain!important;padding:12px!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px!important}
.prod .gallery{border-radius:20px!important;background:var(--soft)!important}
.prod .gallery img{object-fit:contain!important;border-radius:20px!important}
.prod .gallery img#gal-main{aspect-ratio:4/5!important;object-fit:contain!important;object-position:center!important;width:100%!important;height:auto!important;max-height:560px!important;border-radius:20px!important;background:var(--soft)!important;padding:12px!important;box-sizing:border-box!important}
.tnp-thumbs img{border-radius:16px!important;object-fit:contain!important}
@media(max-width:750px){
.mcard .mth{width:120px!important;height:150px!important}
.prod .gallery img#gal-main{max-height:460px!important}
}

/* Mobile centering fix (2026-10-31c): the previous photo fix forced
   .mcard .mth to a fixed 168px (120px on phones) inside the professional
   column card layout, so on a ~190px-wide 2-column phone card the photo
   slot sat left with ~70px of empty card on the right. The slot must span
   the full card width, and the image must be centered inside it.
   This block is last in this sheet, so it wins over the fixed-width rules
   above, including the max-width:750px rule. No cover cropping: contain
   is kept everywhere, so tall vials fill height and wide bundles fill
   width, centered by object-position, with symmetric padding only. */
.mcard .mth{width:100%!important;height:auto!important;aspect-ratio:4/5!important;flex:none!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;border-radius:20px 20px 0 0!important;overflow:hidden!important;background:var(--soft)!important}
.mcard .mth img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0 auto!important;padding:12px!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px!important}
.pcard .ph{width:100%!important;aspect-ratio:4/5!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;border-radius:20px!important;overflow:hidden!important;background:var(--soft)!important}
.pcard .ph img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0 auto!important;padding:12px!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px!important}
.cat-card .ph{width:100%!important;aspect-ratio:4/5!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;border-radius:20px!important;overflow:hidden!important;background:var(--soft)!important}
.cat-card .ph img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0 auto!important;padding:12px!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px!important}
.prod .gallery{border-radius:20px!important;background:var(--soft)!important}
.prod .gallery img#gal-main{aspect-ratio:4/5!important;object-fit:contain!important;object-position:center center!important;width:100%!important;height:auto!important;max-height:560px!important;display:block!important;margin-left:auto!important;margin-right:auto!important;border-radius:20px!important;background:var(--soft)!important;padding:12px!important;box-sizing:border-box!important}
.tnp-thumbs img{border-radius:16px!important;object-fit:contain!important}
@media(max-width:750px){
.mcard .mth{width:100%!important;height:auto!important}
.prod .gallery img#gal-main{max-height:460px!important}
}

/* Photo unification (2026-10-31d): ONE standard for every product photo.
   Root cause of the mismatch: slots were nominally 4/5, but source files were
   0.746 to 1.453, so contain rendering gave different rectangle heights, and
   img padding 12px meant the 20px radius on the img element never actually
   clipped the photo corners (the photo sat inside the padding, square).
   Fix: all 35 vial files are now exactly 4/5 in the build (see report), so
   contain now fills the slot. Padding is removed from photo imgs, radius is
   applied to the slot container with overflow:hidden, so the photo corners
   themselves are clipped to 20px. No object-fit:cover anywhere on photos.
   Card photo slot: full card width, aspect 4/5, background #f5f8fb, radius
   20px top (card top) / 20px all round for standalone .pcard photos.
   Gallery main: aspect 4/5, background #f5f8fb, radius 20px all round.
   Thumbnails: 64x64, radius 16px. Search row thumbs (.cat-card) are NOT card
   photos: they are 88x88 row thumbs, radius 16px - the previous full-width
   .cat-card override would have broken search rows, and is corrected here. */
.mcard{border-radius:20px!important;overflow:hidden!important}
.mcard .mth{width:100%!important;height:auto!important;aspect-ratio:4/5!important;display:block!important;margin:0!important;padding:0!important;border-radius:20px 20px 0 0!important;overflow:hidden!important;background:var(--soft)!important}
.mcard .mth img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:0!important}
.pcard{border-radius:20px!important;overflow:hidden!important}
.pcard .ph{width:100%!important;aspect-ratio:4/5!important;display:block!important;margin:0!important;padding:0!important;border-radius:20px 20px 0 0!important;overflow:hidden!important;background:var(--soft)!important}
.pcard .ph img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:0!important}
.cat-card .ph{width:88px!important;height:88px!important;aspect-ratio:1/1!important;flex:none!important;display:block!important;margin:0!important;padding:0!important;border-radius:16px!important;overflow:hidden!important;background:var(--soft)!important}
.cat-card .ph img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:0!important}
.prod .gallery{border-radius:20px!important;overflow:hidden!important;background:var(--soft)!important;padding:0 0 14px 0!important}
.prod .gallery img#gal-main{aspect-ratio:4/5!important;object-fit:contain!important;object-position:center center!important;width:100%!important;height:auto!important;max-height:560px!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px 20px 0 0!important}
.tnp-thumbs{padding:12px 12px 0 12px!important;margin-top:0!important}
.tnp-thumbs button{padding:0!important;border-radius:16px!important;overflow:hidden!important;background:var(--soft)!important}
.tnp-thumbs img{width:64px!important;height:64px!important;aspect-ratio:1/1!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:16px!important}
.tnp-modal-main img{width:100%!important;aspect-ratio:4/5!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px!important}
@media(max-width:750px){
.mcard .mth{width:100%!important;height:auto!important}
.prod .gallery img#gal-main{max-height:460px!important}
}

/* Gallery background fix (2026-10-31e): Dylan reported product-page gallery
   backgrounds showing white. Root cause: the shared inline <style> block gave
   the shared inline style gave the gallery a light tile/card background
   with 18px padding,
   so any ring/letterbox around the image was light, not the card
   #f5f8fb used everywhere else. The earlier unification block set #f5f8fb
   with !important, but the inline rules are also fixed in this build so the
   gallery is soft even if this sheet is cached/stale. This final block is
   last in this sheet, so it wins on all widths, including the desktop
   max-height cap case: when the cap shortens the image, the letterbox
   inside the img element is #f5f8fb. No sizes, ratios, prices,
   stock, names, or descriptions changed here. */
.prod .gallery,.gallery{background:var(--soft)!important;border-radius:20px!important;overflow:hidden!important;padding:0 0 14px 0!important;border:1px solid var(--line)!important}
.prod-hero .gallery{background:var(--soft)!important}
.prod .gallery img#gal-main,.gallery img#gal-main{aspect-ratio:4/5!important;object-fit:contain!important;object-position:center center!important;width:100%!important;height:auto!important;max-height:560px!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px 20px 0 0!important}
.tnp-thumbs{background:var(--soft)!important;padding:12px 12px 0 12px!important;margin-top:0!important}
.tnp-thumbs button{background:var(--soft)!important;border-radius:16px!important;overflow:hidden!important}
.tnp-thumbs img{background:var(--soft)!important;border-radius:16px!important}
@media(max-width:750px){
.prod .gallery img#gal-main,.gallery img#gal-main{max-height:460px!important}
}

/* 20261031f gallery dark-mode fix: theme-aware gallery, NOT hardcoded light.
   Light: var(--soft)=#f5f8fb. Dark: var(--soft)=#222f42 (dark --soft, between page #1c2735 and card #263449).
   This block is last in the sheet, so it wins over every earlier gallery rule. */
.prod .gallery,.gallery,.prod-hero .gallery{background:var(--soft)!important;border-radius:20px!important;overflow:hidden!important;padding:0 0 14px 0!important}
.prod .gallery img#gal-main,.gallery img#gal-main{width:100%!important;height:auto!important;aspect-ratio:4/5!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:20px 20px 0 0!important}
.tnp-thumbs{background:var(--soft)!important;padding:12px 12px 0 12px!important;margin-top:0!important}
.tnp-thumbs button{background:var(--soft)!important;border-radius:16px!important;overflow:hidden!important}
.tnp-thumbs img{background:var(--soft)!important;border-radius:16px!important}
.tnp-thumbs button span{color:var(--ink)!important}
/* Explicit dark-mode counterpart, belt and braces in case var(--soft) is ever stale: */
:root[data-theme="dark"] .prod .gallery,:root[data-theme="dark"] .gallery,:root[data-theme="dark"] .prod-hero .gallery,:root[data-theme="dark"] .prod .gallery img#gal-main,:root[data-theme="dark"] .gallery img#gal-main,:root[data-theme="dark"] .tnp-thumbs,:root[data-theme="dark"] .tnp-thumbs button,:root[data-theme="dark"] .tnp-thumbs img{background:#222f42!important}
:root[data-theme="dark"] .tnp-thumbs button span{color:#edf2f8!important}
:root[data-theme="dark"] .tnp-modal-main img{background:#222f42!important}
@media(max-width:750px){
.prod .gallery img#gal-main,.gallery img#gal-main{max-height:460px!important}
}

/* 20261031u nav-card fix: theme-aware card photo slots, gap-free fill.
   Root cause of the dark-mode white bits: the unification block above
   hardcoded card slot backgrounds to #f5f8fb (light), so in dark mode the
   slot showed as a light/white area around photos, including any sub-pixel
   or baseline gap at the bottom of the slot. Images are already exactly
   4/5, so contain in a 4/5 slot fills it; the remaining risk was the slot
   background itself and any gap from the img's own aspect-ratio competing
   with height:100%. This final block is last in the sheet, so it wins:
   slot background is var(--soft) (light #f5f8fb, dark #222f42), img drops
   its own aspect-ratio so width:100% + height:100% fills the container
   box exactly, line-height:0 and vertical-align kill inline baseline gaps,
   padding is 0, overflow hidden, radius 20px top. No cover cropping, no
   stretching, no image-file edits. Search-row .cat-card thumbs stay 88x88. */
.mcard{border-radius:20px!important;overflow:hidden!important}
.mcard .mth{width:100%!important;height:auto!important;aspect-ratio:4/5!important;display:block!important;margin:0!important;padding:0!important;border-radius:20px 20px 0 0!important;overflow:hidden!important;background:var(--soft)!important;line-height:0!important}
.mcard .mth img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:0!important;vertical-align:middle!important}
.pcard{border-radius:20px!important;overflow:hidden!important}
.pcard .ph{width:100%!important;aspect-ratio:4/5!important;display:block!important;margin:0!important;padding:0!important;border-radius:20px 20px 0 0!important;overflow:hidden!important;background:var(--soft)!important;line-height:0!important}
.pcard .ph img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:0!important;vertical-align:middle!important}
.cat-card .ph{width:88px!important;height:88px!important;aspect-ratio:1/1!important;flex:none!important;display:block!important;margin:0!important;padding:0!important;border-radius:16px!important;overflow:hidden!important;background:var(--soft)!important;line-height:0!important}
.cat-card .ph img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:var(--soft)!important;border-radius:0!important;vertical-align:middle!important}
/* Explicit dark-mode counterpart, belt and braces in case var(--soft) is ever stale: */
:root[data-theme="dark"] .mcard .mth,:root[data-theme="dark"] .mcard .mth img,:root[data-theme="dark"] .pcard .ph,:root[data-theme="dark"] .pcard .ph img,:root[data-theme="dark"] .cat-card .ph,:root[data-theme="dark"] .cat-card .ph img{background:#222f42!important}
@media(max-width:750px){
.mcard .mth{width:100%!important;height:auto!important}
}

/* Photo tag-bump hardening (2026-10-31): card slot must be a fixed 4/5
   flex item, not a circular height:auto + img height:100% dependency. */
.mcard .mth{flex:0 0 auto!important;align-self:stretch!important;height:auto!important;aspect-ratio:4/5!important}
.mcard .mth img{height:100%!important;width:100%!important;object-fit:contain!important}

/* 20261031w audit fix: remove gallery max-height caps. With a 4/5 image in a
   4/5 slot, a 560px (desktop) / 460px (mobile) cap shortens the box at wider
   widths and contain letterboxes the sides. Removing the cap keeps the
   slot exactly 4/5 at every width. No object-fit:cover anywhere. Mobile
   gallery was already under the cap, so mobile rendering is unchanged. */
.prod .gallery img#gal-main,.gallery img#gal-main{max-height:none!important}
@media(max-width:750px){
.prod .gallery img#gal-main,.gallery img#gal-main{max-height:none!important}
}

/* Card testing badge (2026-11-01): report codes + flashing in-progress badge on catalog and product buy cards. */
.tnp-card-test{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0 0 10px}
.tnp-card-test .tnp-test-status{white-space:normal!important;text-align:left}
.tnp-card-codes{font-family:var(--mono);font-size:11.5px;color:var(--muted);line-height:1.5;word-break:normal;overflow-wrap:normal}
.tnp-card-note{font-size:12px;color:var(--muted)}
.buy .tnp-card-test{margin-top:14px}

/* Card testing badge spots (2026-11-01): badge top-right of card title, gallery panel on product pages, gray upcoming for untested. */
.tnp-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.tnp-card-head h3{flex:1;min-width:0}
.tnp-card-head .tnp-test-status{flex:none}
.tnp-test-status.upcoming{background:#f1f5f9!important;color:#64748b!important;border-color:#cbd5e1!important}
:root[data-theme="dark"] .tnp-test-status.upcoming{background:#1f2c3e!important;color:#a9bcd2!important;border-color:#33465e!important}
.tnp-gallery-test{margin-top:16px;border:0;background:var(--soft);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}

/* Layout fix (2026-11-01): card badge must stack under the name on narrow cards, never overlap it. */
@media(max-width:750px){.tnp-card-head{flex-direction:column;align-items:flex-start;gap:6px}.tnp-card-head .tnp-test-status{max-width:100%;white-space:normal!important;text-align:left}}

/* CSS audit fix (2026-11-02): card alignment + code wrapping.
   Root causes found in screenshots:
   - .tnp-card-codes used word-break:break-all, so DAYL codes split mid-code
     (DAYL- became D / AYL-). Codes must wrap only between codes, never inside one.
   - Card titles are 1 line on some cards and 2 lines on others, so the badge,
     stock line and price block started at different heights in the same row.
     Reserving 2 lines for every card title lines the rest of the card up.
   - On narrow cards the price + View foot sometimes fit on one line and
     sometimes wrapped to two, so View buttons did not line up. Stacking the
     foot on narrow cards makes every card's foot the same height.
   - Quality rows were a no-wrap flex row, so a long code + badge could crowd
     the row on phones. Rows may now wrap, with the badge dropping below.
   Checkout crypto address break-all is intentional and is NOT touched. */
.tnp-card-codes{word-break:normal!important;overflow-wrap:normal!important}
.tnp-card-codes .tnp-code{white-space:nowrap!important;display:inline-block!important}
.mcard h3,.pcard h3{min-height:2.7em}
@media(max-width:750px){
.mcard .mfoot{flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
.mcard .mfoot .link-more{align-self:flex-start!important}
.tnp-card-codes{font-size:11px!important;line-height:1.6!important}
.tnp-test-row{flex-wrap:wrap!important}
.tnp-test-row>div{min-width:0!important;flex:1 1 200px!important}
}

/* Test badge Version A (2026-11-02): badge above title, single line on phone cards. */
.tnp-card-head{flex-direction:column!important;align-items:flex-start!important;gap:6px!important}
.tnp-card-head h3{order:2!important}
.tnp-card-head .tnp-test-status{order:1!important;white-space:nowrap!important;max-width:none!important}
@media(max-width:750px){
.tnp-card-head .tnp-test-status{font-size:11px!important;padding:4px 8px!important;gap:6px!important;white-space:nowrap!important}
.tnp-card-head .tnp-test-status .tnp-test-dot{width:8px!important;height:8px!important;flex:none!important}
}

/* Cag tested (2026-11-04): green tested badge, solid dot, no pulse */
.tnp-test-status.tested{background:#dcfce7!important;color:#166534!important;border-color:#86efac!important}
.tnp-test-status.tested .tnp-test-dot{background:#16a34a!important;animation:none!important}
:root[data-theme="dark"] .tnp-test-status.tested{background:#14532d!important;color:#bbf7d0!important;border-color:#166534!important}

/* CSS audit fix (2026-11-10): findings C1, M1, M2, M3, N3, N4, N7, N8.
   Appended as one block at the end of the authoritative sheet so it wins
   over every earlier rule and over the inline base block. No prices, stock,
   names, descriptions, or routes changed. */

/* C1: card photo imgs need a definite size BEFORE the image loads.
   The slots are height:auto + aspect-ratio:4/5 while the img was
   height:100%. Before load (no intrinsic size) height:100% of an
   auto-height parent is undefined, so the img could collapse to zero
   height and render as a broken icon + alt text. Giving the img itself
   height:auto + aspect-ratio (same pattern as the gallery main img)
   reserves the slot before load. */
.mcard .mth img{height:auto!important;aspect-ratio:4/5!important}
.pcard .ph img{height:auto!important;aspect-ratio:4/5!important}
.cat-card .ph img{height:auto!important;aspect-ratio:1/1!important}

/* M1 (REVERTED 2026-11-10, Dylan): the 1-column rule below 480px made
   the catalog and homepage show 1 card per row on phones. Dylan wants
   the 2-column phone layout back, as it was before the CSS audit fix.
   The 2-column rule at <=750px now governs phones again. */

/* M2: mobile body size. Desktop is now 17px (line 4 above); restore the
   intended 16px on phones. */
@media(max-width:600px){body{font-size:16px}}

/* M3: product spec tables must scroll horizontally instead of clipping.
   The inline .dtable-wrap used overflow:hidden, so a long value was cut
   off with no way to reach it. */
.dtable-wrap{overflow-x:auto!important}

/* N3: contrast. Light --faint #8ba0b5 was 2.69:1 on white (fails AA);
   #5b7288 is 4.99:1 on white, 4.68:1 on soft. Dark --faint #7e93ac was
   3.99:1 on card; #93a8bf is 5.15:1 on card. Upcoming status #64748b was
   4.34:1 on #f1f5f9; #5b6c82 is 4.90:1. Dark upcoming already passes. */
:root{--faint:#5b7288}
:root[data-theme="dark"]{--faint:#93a8bf}
.tnp-test-status.upcoming{color:#5b6c82!important}

/* N4: smallest labels were 9-10px. Bump to 11px. */
.brand .bt span{font-size:11px!important}
.topbar{font-size:11px!important}
.sec-label{font-size:11px!important}
.fbot{font-size:11px!important}

/* N7: 50% OFF card badge as a class, not inline styles. Base .gal-badge
   (position, color, weight, radius) comes from the inline block; .sale
   pins it top-right in red at card size. Product-page badge is untouched. */
.gal-badge.sale{left:auto!important;right:8px!important;top:8px!important;background:#dc2626!important;font-size:11px!important;padding:4px 8px!important}

/* N8: card titles reserve 3 lines, not 2. "Tirzepatide + Eloralintide
   Bundle" wraps to 3 lines on narrow cards, so a 2-line reserve left
   uneven card heights in a row. */
.mcard h3,.pcard h3{min-height:4.05em!important}
