/* Virtual Lab home (Penpot `VL / home - 1280` and `- 375`, page virtual_lab). Loaded after ../css/home.css,
   which supplies the shared card (.hm-tool), badge, strip, buttons, accents and footer. */

.vl-cy { --a: 6, 182, 212; --c: #06b6d4; }
.vl-pk { --a: 236, 72, 153; --c: #ec4899; }
.vl-rd { --a: 239, 68, 68; --c: #ef4444; }

body.vl-body { background: var(--hm-navy); }
.vl .hm-wrap { padding: 0 32px; }
.vl h2 { font-size: 32px; font-weight: 800; line-height: 1.2; color: #fff; }
.vl .hidden { display: none !important; }
.vl button { font-family: inherit; }

/* ---------- Section rhythm + header ---------- */
.vl-sec { padding: 48px 0; background: var(--hm-navy); }
.vl-what { background: #0d1e36; }
.vl-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.vl-head__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 760px; }
.vl-head__art { flex: none; width: 440px; max-width: 45%; }
.vl-head__art--static { width: 400px; height: auto; }
.vl-lead { font-size: 15px; line-height: 1.5; color: var(--hm-muted); }
.vl-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1.2 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c); }
.vl-node { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25) inset; border: 3px solid rgba(255, 255, 255, .25); }
.vl-grid { gap: 24px 32px; }

/* ---------- Bench art ---------- */
.vl-art { position: relative; }
.vl-art > svg { display: block; width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.vl-hero { padding: 48px 0 56px; background: linear-gradient(135deg, #0f2a3a, #0a192f 55%, #141b3d); }
.vl-hero__row { display: flex; align-items: center; gap: 40px; }
.vl-hero__copy { flex: 0 1 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.vl-hero__art { flex: 1 1 600px; max-width: 600px; }
.vl-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(16, 185, 129, .4); background: rgba(16, 185, 129, .12); color: #10b981; font: 500 11px/1 var(--hm-mono); letter-spacing: 1px; }
.vl-pill .hm-i { width: 14px; height: 14px; }
.vl-hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; color: #fff; }
.vl-hero h1 span { display: block; color: #10b981; }
.vl-hero__lead { max-width: 540px; font-size: 17px; line-height: 1.55; color: #cbd5e1; }

/* search as a sample label */
.vl-sample { display: flex; width: 100%; max-width: 540px; min-height: 58px; margin: 0; border-radius: 10px; background: #f1f5f9; overflow: hidden; }
.vl-sample__tag { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #10b981; color: #04261a; font-family: var(--hm-mono); font-weight: 700; }
.vl-sample__tag small { font-size: 10px; letter-spacing: 1.5px; }
.vl-sample__tag b { font-size: 15px; }
.vl-sample__field { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 16px; }
.vl-sample__field label { font-size: 15px; font-weight: 600; color: #0f172a; }
.vl-sample__field input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #0f172a; font: 400 12px/1.3 var(--hm-mono); }
.vl-sample__field input::placeholder { color: #64748b; }
.vl-sample:focus-within { box-shadow: 0 0 0 2px #10b981; }
.vl-sample__go { flex: none; display: flex; align-items: center; padding: 0 20px 0 0; }
.vl-sample__go button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: #0a192f; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.vl-sample__go button:hover { background: #112240; }

.vl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vl-btn { height: 48px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.vl-btn.hm-btn--primary { color: #04261a; }
.vl-btn--bl { background: #112240; border: 1px solid rgba(59, 130, 246, .5); color: #e2e8f0; }
.vl-btn--bl:hover { border-color: #3b82f6; }
.vl-btn--am { background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .45); color: #fcd34d; }
.vl-btn--am:hover { border-color: #f59e0b; }
.vl-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.vl-meta li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hm-muted); }
.vl-meta .hm-i { width: 14px; height: 14px; color: var(--c); }

.vl-bottles { display: flex; gap: 16px; }
.vl-bottle { position: relative; width: 124px; height: 128px; display: flex; flex-direction: column; align-items: center; padding-top: 52px; }
.vl-bottle__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.vl-bottle > :not(svg) { position: relative; }
.vl-bottle__code { font: 500 9px/1.2 var(--hm-mono); letter-spacing: 1px; color: var(--c); }
.vl-bottle b { font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff; }
.vl-bottle__label { font-size: 11px; color: var(--hm-muted); }

/* ---------- Catalog shelf ---------- */
.vl-shelf { padding: 28px 0 32px; background: var(--hm-navy); }
.vl-shelf__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vl-shelf__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 15px; font-weight: 600; color: #e2e8f0; }
.vl-login { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 17px; border: 1px solid var(--hm-surface); background: #112240; color: #cbd5e1; font-size: 13px; font-weight: 500; }
.vl-login:hover { border-color: #8b5cf6; }
.vl-login__avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #8b5cf6; color: #fff; font-size: 12px; font-weight: 700; }
.vl-account button { padding: 0 0 0 8px; border: 0; border-left: 1px solid var(--hm-surface); background: none; color: #fca5a5; font-size: 12px; cursor: pointer; }
.vl .vl-shelf__row { position: relative; display: grid; grid-template-columns: repeat(6, 184px); justify-content: space-between; padding: 4px 4px 28px; }
.vl-shelf__row::after { /* the shelf plank */
    content: ""; position: absolute; left: 4px; right: 0; bottom: 8px; height: 18px; border-radius: 3px;
    background: linear-gradient(#1e3356 0 12px, #0e1f3a 12px); border-top: 1px solid #2f4a78;
}
.vl-jar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 108px; padding-top: 16px; color: #fff; }
.vl-jar::before { /* lid */
    content: ""; position: absolute; top: 0; left: 8px; right: 8px; height: 16px; border-radius: 4px;
    background: rgba(var(--a), .75); box-shadow: inset 0 -8px 0 -7px rgba(10, 25, 47, .35);
}
.vl-jar::after { /* glass + liquid */
    content: ""; position: absolute; top: 16px; inset-inline: 0; bottom: 0; border-radius: 12px;
    border: 1.5px solid rgba(var(--a), .5);
    background: linear-gradient(transparent 70%, rgba(var(--a), .3) 70%), rgba(var(--a), .08);
    transition: border-color .2s, background-color .2s;
}
.vl-jar:hover::after, .vl-jar:focus-visible::after { border-color: var(--c); background-color: rgba(var(--a), .16); }
.vl-jar:hover::before { background: var(--c); }
.vl-jar__label { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; width: 144px; padding: 7px 10px 9px; border-radius: 6px; border: 1px solid rgba(var(--a), .45); background: rgba(10, 25, 47, .88); }
.vl-jar__label b { font-size: 16px; font-weight: 800; }
.vl-jar__label span { font: 600 11px/1.2 var(--hm-mono); color: var(--c); }
.vl-jar__label small { grid-column: 1 / -1; font-size: 11px; color: var(--hm-muted); }

/* ---------- Cards (A5 card, VL content) ---------- */
.vl .vl-card { gap: 10px; padding: 22px 20px 20px; border-radius: 14px; border-color: rgba(var(--a), .35); }
.vl .vl-card h3 { font-size: 19px; font-weight: 700; line-height: 1.2; }
.vl .vl-card p { font-size: 13px; }
.vl .vl-card .hm-ghost { top: 46px; right: 20px; }
.vl .vl-tile { width: 44px; height: 44px; border-radius: 10px; border-color: rgba(var(--a), .5); }
.vl .vl-tile svg { width: 22px; height: 22px; }
.vl .vl-tile--sm { width: 36px; height: 36px; border-radius: 9px; }
.vl .vl-tile--sm svg { width: 18px; height: 18px; }
.vl .hm-badge { height: 22px; padding: 0 9px; font-size: 10px; font-weight: 600; border: 1px solid rgba(var(--a), .5); background: rgba(var(--a), .14); }
.vl-level i { width: 9px; height: 9px; background: var(--c); }
.vl-card__meta { font: 400 12px/1.2 var(--hm-mono) !important; color: var(--c) !important; }
.vl .hm-strip { min-height: 34px; border-radius: 7px; border-color: var(--hm-surface); background: rgba(10, 25, 47, .8); }
.vl .hm-strip span { color: #64748b; }
.vl .hm-strip b { font-size: 12px; }
.vl .hm-cat { font-size: 10px; }
.vl .hm-go { font-size: 13px; }
.vl .vl-card .hm-go::after { content: " →"; }
.vl .vl-card .hm-go .hm-i { display: none; }
.vl-card[onclick] { cursor: pointer; }

/* popular-lab status (text and colours set by the page script) */
.vl-status.mb-5 { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 11px; color: #cbd5e1; }
.vl-status .popular-lab-status { padding: 2px 8px; border: 1px solid var(--hm-surface); border-radius: 999px; font: 600 11px/1.4 var(--hm-mono); }
.vl .popular-lab-next-step { margin: -4px 0 0; font-size: 11px !important; color: var(--hm-muted); }
.vl-report { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vl-chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(var(--a), .4); background: rgba(var(--a), .12); color: var(--c); font-size: 12px; font-weight: 600; cursor: pointer; }
.vl-chipbtn--muted { --a: 35, 53, 84; --c: #94a3b8; background: none; border-color: var(--hm-surface); }
.vl-chipbtn:hover { border-color: #10b981; color: #10b981; }
.vl-chipbtn .hm-i { width: 14px; height: 14px; }
.vl-next { margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(16, 185, 129, .25); background: rgba(16, 185, 129, .06); font-size: 13px; }
.vl-next:empty { display: none; }
/* study queue cards (rendered by the page script with utility classes) */
.vl-next article { background: #112240 !important; border-color: var(--hm-surface) !important; }
.vl-next h3 { font-size: 16px !important; }
.vl-next p.text-xl { font-size: 15px; font-weight: 600; }
.vl-next button { height: 36px; padding: 0 12px !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 600; }
.vl .text-primary { color: #10b981; }
.vl .bg-primary { background: #10b981; color: #04261a; }
.vl .bg-primary:hover { background: #0ea371; }

/* curriculum experiment list */
.vl-exp { display: flex; flex-direction: column; gap: 6px; }
.vl-exp li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.25; color: #cbd5e1; }
.vl-exp li::before { content: ""; position: absolute; left: 0; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* tabs */
.vl-tabs { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.vl-tabs__list { display: flex; flex-wrap: wrap; gap: 6px; }
.vl-tab { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--hm-surface); background: #112240; color: var(--hm-muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.vl-tab:hover { color: #fff; }
.vl-curr .vl-tab.active { border-color: rgba(var(--a), .7); background: rgba(var(--a), .16); color: #fff; font-weight: 700; }
.vl-aligned { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid rgba(var(--a), .45); background: rgba(var(--a), .12); color: var(--c); font: 600 10px/1 var(--hm-mono); letter-spacing: 1.2px; text-transform: uppercase; }
.vl-aligned .hm-i { width: 12px; height: 12px; }
.vl-empty { padding: 32px 0; text-align: center; }
.vl-empty h2 { font-size: 20px; margin-bottom: 8px; }
.vl-empty p { color: var(--hm-muted); }

/* ---------- Notebook + data logger ---------- */
.vl-nb { display: grid; grid-template-columns: 480px 1fr; gap: 32px; align-items: stretch; }
.vl-nb > * { min-width: 0; } /* long lab names in the notebook must wrap, not widen the page on phones */
.vl-notebook { overflow-wrap: anywhere; }
.vl-notebook article { min-width: 0; }
.vl-notebook {
    position: relative; min-height: 400px; padding: 24px 24px 24px 64px; border-radius: 14px; color: #0f172a;
    background: linear-gradient(90deg, transparent 47px, rgba(239, 68, 68, .45) 47px 48px, transparent 48px),
                repeating-linear-gradient(transparent 0 27px, rgba(59, 130, 246, .14) 27px 28px) 0 64px / 100% calc(100% - 64px) no-repeat, #f8fafc;
}
.vl-notebook__label { font: 600 10px/1.2 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: #3b82f6; margin-bottom: 12px; }
.vl-notebook__empty { font-size: 14px; line-height: 28px; color: #475569; }
.vl-notebook:has(#lab-memory-panel:not(.hidden)) .vl-notebook__empty { display: none; }
#lab-memory-title { font-size: 24px; font-weight: 800; line-height: 1.2; color: #0f172a; }
#lab-memory-meta { margin-top: 6px; font-size: 13px; color: #475569; }
.vl-notebook__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vl-notebook__go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: #0a192f; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.vl-notebook__clear { height: 40px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: none; color: #475569; font-size: 13px; cursor: pointer; }
.vl-notebook__clear:hover { border-color: #ef4444; color: #b91c1c; }
#recent-labs-panel { margin-top: 24px; }
#recent-labs-heading { margin-bottom: 8px; font: 400 11px/1.2 Inter, sans-serif; color: #64748b; }
#recent-labs-list { display: grid; gap: 8px; }
#recent-labs-list article { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
#recent-labs-list h3 { font-size: 13px; color: #0f172a; }
#recent-labs-list p { color: #64748b; }
#recent-labs-list button { font-size: 12px !important; padding: 6px 10px !important; color: #047857 !important; }

.vl-logger { padding: 14px 16px 16px; border-radius: 16px; border: 1px solid #334155; background: #1e293b; }
.vl-logger__bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font: 600 10px/1.2 var(--hm-mono); letter-spacing: 1.2px; color: var(--hm-muted); }
.vl-logger__bar span:last-child { font-weight: 400; letter-spacing: 0; color: #64748b; }
.vl-led { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px #10b981; }
.vl-logger__screen { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border-radius: 10px; border: 1px solid rgba(16, 185, 129, .25); background: #04111f; }
.vl-readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vl-readouts > div { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(var(--a), .35) !important; background: rgba(var(--a), .07) !important; }
.vl-readouts > div:nth-child(1) { --a: 16, 185, 129; --c: #10b981; }
.vl-readouts > div:nth-child(2) { --a: 59, 130, 246; --c: #3b82f6; }
.vl-readouts > div:nth-child(3) { --a: 245, 158, 11; --c: #f59e0b; }
.vl-readouts > div:nth-child(4) { --a: 236, 72, 153; --c: #ec4899; }
.vl-readouts p:first-child { font: 600 9px/1.2 var(--hm-mono) !important; letter-spacing: 1.2px; color: var(--c) !important; }
.vl-readouts p:nth-child(2) { font: 700 28px/1.2 var(--hm-mono) !important; color: #fff; margin-top: 4px; }
.vl-readouts p:nth-child(3) { font-size: 10px !important; }
.vl-analytics { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; font-size: 13px; }
.vl-analytics > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.vl-analytics > div > article:last-child { grid-column: 1 / -1; }
.vl-analytics article { background: #0a192f !important; border-color: #1e293b !important; }
.vl-analytics .text-xl { font-size: 13px; }
.vl-analytics .bg-primary { background: #10b981; }

/* ---------- ChemLab AI CTA ---------- */
.vl-cta-sec { padding: 16px 0 48px; }
.vl-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 40px; border-radius: 18px; border: 1px solid rgba(59, 130, 246, .4); background: linear-gradient(110deg, rgba(16, 185, 129, .22), #112240 50%, rgba(59, 130, 246, .28)); }
.vl-cta__copy { flex: 0 1 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vl-cta__copy .vl-eyebrow { color: #60a5fa; }
.vl-cta h2 { font-size: 30px; }
.vl-cta__copy > p { font-size: 15px; line-height: 1.5; color: #cbd5e1; }
.vl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-chips li { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid rgba(var(--a), .45); background: rgba(var(--a), .14); color: #e2e8f0; font-size: 12px; font-weight: 600; line-height: 24px; }
.vl-cta__btn { height: 46px; padding: 0 20px; border-radius: 10px; background: #3b82f6; color: #fff; font-size: 14px; }
.vl-cta__btn:hover { background: #2563eb; }
.vl-cta__art { flex: none; width: 420px; max-width: 42%; }

/* ---------- What is / panels ---------- */
.vl-panel { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid rgba(var(--a), .35); background: #112240; overflow: hidden; }
.vl-panel__art { width: 100%; }
.vl-panel > div:last-child { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; }
.vl-panel h3 { font-size: 19px; font-weight: 700; color: #fff; }
.vl-panel p { font-size: 14px; line-height: 1.55; color: var(--hm-muted); }

/* ---------- Countries ---------- */
.vl-country { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 14px; border: 1px solid rgba(var(--a), .35); background: #112240; }
.vl-country__top { display: flex; align-items: center; gap: 12px; }
.vl-country h3 { font-size: 16px; font-weight: 700; color: #fff; }
.vl-country p { font-size: 13px; line-height: 1.5; color: var(--hm-muted); }
.vl-flag { flex: none; width: 48px; height: 32px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .2); overflow: hidden; }
.vl-flag__art { display: block; width: 100%; height: 100%; }
.vl-country__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.vl-country__links a { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; white-space: nowrap; border-radius: 8px; border: 1px solid rgba(var(--a), .45); background: rgba(var(--a), .12); color: #e2e8f0; font-size: 12px; font-weight: 600; }
.vl-country__links a:hover { border-color: var(--c); }
.vl-country__links .hm-i { width: 12px; height: 12px; }
.vl-country__links b { font: 600 10px/1 var(--hm-mono); color: var(--c); }

/* ---------- Topic cluster tiles ---------- */
.vl .vl-tooltile { gap: 10px; padding: 20px 18px; border-radius: 14px; border-color: rgba(var(--a), .35); }
.vl-tooltile__top { display: flex; align-items: center; gap: 10px; }
.vl .vl-tooltile h3 { font-size: 15px; font-weight: 700; }
.vl .vl-tooltile p { font-size: 13px; }
.vl .vl-tooltile .hm-strip span { font-size: 9px; }
.vl .vl-tooltile .hm-strip b { font-size: 11px; }

/* ---------- Lab pipe (Penpot `anim / lab-pipe`): a tube down the left gutter, joined to each section's valve node ---------- */
@media (min-width: 761px) {
    .vl-shelf > .hm-wrap, .vl-sec > .hm-wrap, .vl-hero > .hm-wrap { position: relative; }
    .vl-shelf > .hm-wrap::before, .vl-sec > .hm-wrap::before {
        content: ""; position: absolute; left: 11px; top: -48px; bottom: -48px; width: 10px; pointer-events: none;
        background: linear-gradient(90deg, #cbd5e1 0 3px, var(--pipe, #10b981) 3px 7px, #cbd5e1 7px);
    }
    .vl-shelf > .hm-wrap::before { top: -28px; bottom: -32px; }
    .vl-cta-sec > .hm-wrap::before { top: -16px; }
    .vl-sec:last-of-type > .hm-wrap::before, aside.vl-sec > .hm-wrap::before { bottom: 0; }
    .vl-node { position: relative; }
    .vl-node::before { /* stub from the pipe to the valve */
        content: ""; position: absolute; right: 100%; top: 50%; width: 16px; height: 8px; margin: -4px 3px 0 0;
        background: linear-gradient(#cbd5e1 0 2.5px, var(--c) 2.5px 5.5px, #cbd5e1 5.5px);
    }
    .vl-node::after { /* joint on the pipe */
        content: ""; position: absolute; left: -31px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
        border: 2px solid var(--c); background: radial-gradient(circle, var(--c) 0 2px, #0a192f 2.5px); box-sizing: border-box;
    }
    .vl-cta .vl-node::before { width: 56px; } /* the banner sits 40 px further in */
    .vl-cta .vl-node::after { left: -71px; }
}
@media (min-width: 1101px) {
    .vl-hero__pipe { /* from under the hero art, across, and down into the gutter */
        position: absolute; left: 11px; top: calc(100% - 24px); width: 776px; height: 80px; pointer-events: none;
        border: solid #cbd5e1; border-width: 0 10px 10px 0; border-radius: 0 0 18px 0;
    }
    .vl-hero__pipe::after { content: ""; position: absolute; inset: 0 -7px -7px 3px; border: solid #10b981; border-width: 0 4px 4px 0; border-radius: 0 0 15px 0; }
}
@media (max-width: 1100px) { .vl-hero__pipe { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .vl-hero__row { flex-direction: column; align-items: stretch; }
    .vl-hero__copy { flex-basis: auto; }
    .vl-hero__art { flex-basis: auto; width: 100%; max-width: 600px; margin: 0 auto; }
    .vl-nb { grid-template-columns: 1fr; }
    .vl .hm-grid--3, .vl .hm-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .vl .vl-shelf__row { grid-template-columns: repeat(6, 184px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .vl-shelf__row li { scroll-snap-align: start; }
    .vl .vl-shelf__row { scrollbar-width: none; }
    .vl-shelf__row::-webkit-scrollbar { display: none; }
    .vl-shelf__row::after { width: calc(6 * 184px + 5 * 20px); right: auto; }
}

@media (max-width: 760px) {
    .vl .hm-wrap { padding: 0 16px; }
    .vl h2 { font-size: 26px; }
    .vl-sec { padding: 36px 0; }
    .vl-hero { padding: 24px 0 32px; }
    .vl-hero h1 { font-size: 30px; }
    .vl-pill__more { display: none; }
    .vl-hero__lead { font-size: 16px; }
    .vl-sample__tag { width: 80px; }
    .vl-sample__field { padding: 0 12px; }
    .vl-sample__go { padding-right: 6px; }
    .vl-bottles { display: grid; grid-template-columns: repeat(2, 124px); justify-content: center; width: 100%; }
    .vl-head { flex-direction: column; align-items: stretch; gap: 16px; }
    .vl-head__art, .vl-head__art--static { width: 100%; max-width: none; }
    .vl .hm-grid--3, .vl .hm-grid--4 { grid-template-columns: 1fr; gap: 16px; }
    .vl-tabs { flex-direction: column; align-items: flex-start; }
    .vl-shelf__head { flex-direction: column; align-items: flex-start; }
    /* the shelf at about 0.7 scale, swiped sideways */
    .vl .vl-shelf__row { grid-template-columns: repeat(6, 128px); gap: 14px; padding-bottom: 22px; }
    .vl-shelf__row::after { width: calc(6 * 128px + 5 * 14px); height: 14px; bottom: 6px; background: linear-gradient(#1e3356 0 9px, #0e1f3a 9px); }
    .vl-jar { height: 80px; padding-top: 12px; }
    .vl-jar::before { height: 12px; left: 6px; right: 6px; }
    .vl-jar::after { top: 12px; border-radius: 9px; }
    .vl-jar__label { width: 104px; padding: 5px 8px 6px; }
    .vl-jar__label b { font-size: 13px; }
    .vl-jar__label span, .vl-jar__label small { font-size: 10px; }
    .vl-notebook { padding: 20px 16px 20px 56px; background-position: 0 0, 0 56px; }
    .vl-notebook { background: linear-gradient(90deg, transparent 39px, rgba(239, 68, 68, .45) 39px 40px, transparent 40px), repeating-linear-gradient(transparent 0 27px, rgba(59, 130, 246, .14) 27px 28px) 0 56px / 100% calc(100% - 56px) no-repeat, #f8fafc; padding-left: 52px; min-height: 0; }
    .vl-readouts { grid-template-columns: repeat(2, 1fr); }
    .vl-analytics { grid-template-columns: 1fr; }
    .vl-logger__bar { flex-direction: column; }
    .vl-cta { flex-direction: column; align-items: stretch; padding: 24px 20px; }
    .vl-cta h2 { font-size: 24px; }
    .vl-cta__art { width: 100%; max-width: none; }
    .vl-cta__btn { white-space: normal; height: auto; min-height: 46px; }
}

/* Experiment workspace bar: previous / next / open tab / back, compact on phones */
.lab-ws__btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 40px; min-width: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; background: transparent; color: #cbd5e1; font: 600 14px/1 Inter, system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.lab-ws__btn:hover:not(:disabled) { border-color: rgba(16, 185, 129, 0.5); color: #10b981; }
.lab-ws__btn:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }
.lab-ws__btn:disabled { opacity: 0.35; cursor: default; }
.lab-ws__btn svg { width: 18px; height: 18px; }
.lab-ws__close { border-color: transparent; background: #10b981; color: #04261a; }
.lab-ws__close:hover:not(:disabled) { background: #0ea371; color: #04261a; }
a.lab-ws__btn.lab-ws__wide { display: inline-flex; }
@media (max-width: 639.98px) {
    .lab-ws__bar { padding: 8px 12px; gap: 8px; }
    .lab-ws__eyebrow, .lab-ws__wide, a.lab-ws__btn.lab-ws__wide { display: none; }
    .lab-ws__step { padding: 0; }
    .lab-ws__close { padding: 0 12px; text-transform: capitalize; }
}
