:root {
  --bg1: #070b16;
  --bg2: #111a33;
  --accent: #5eead4;
  --violet: #a78bfa;
  --text: #f5f3ee;
  --muted: rgba(245, 243, 238, 0.62);
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --top: #facc15;
  --heart: #f472b6;
  --base: #c2703d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif; color: var(--text);
  background: radial-gradient(1200px 700px at 50% -10%, var(--bg2), var(--bg1) 70%);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }

/* Blueprint grid + soft glows */
.lab-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background-image: linear-gradient(rgba(94,234,212,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(94,234,212,.05) 1px, transparent 1px);
  background-size: 36px 36px; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .3; }
.g1 { width: 520px; height: 520px; background: var(--accent); top: -200px; left: -160px; animation: drift 24s ease-in-out infinite; }
.g2 { width: 480px; height: 480px; background: var(--violet); bottom: -200px; right: -140px; animation: drift 28s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,40px) scale(1.12); } }

.lab-top { position: relative; z-index: 1; text-align: center; padding: 22px 20px 4px; }
.lab-top h1 { font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0; letter-spacing: .04em; }
.lab-top h1 em { color: var(--accent); }
.lab-top .beta { display: inline-block; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.lab-top p { margin: 4px 0 0; color: var(--muted); font-weight: 300; }
.back {
  position: absolute; left: 22px; top: 26px; color: var(--muted); text-decoration: none; font-size: .85rem;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; transition: all .2s;
}
.back:hover { color: var(--text); border-color: var(--accent); }

.eyebrow { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }

/* Recipe chips */
.recipes { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 12px 20px 0; }
.recipes-lbl { color: var(--muted); font-size: .8rem; margin-right: 4px; }
.chip {
  border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-size: .82rem; transition: all .2s;
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px -8px var(--accent); }
.remix-bar { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 10px 20px 0; }
.remix-bar label { color: var(--muted); font-size: .8rem; }
.remix-bar select {
  appearance: none; -webkit-appearance: none; max-width: 100%; cursor: pointer;
  color: var(--text); font: inherit; font-size: .85rem; padding: 8px 34px 8px 14px; border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, .45);
  background: linear-gradient(135deg, rgba(167, 139, 250, .18), rgba(94, 234, 212, .12)) padding-box,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f5f3ee' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  transition: border-color .2s, box-shadow .2s;
}
.remix-bar select:hover, .remix-bar select:focus { outline: none; border-color: var(--accent); box-shadow: 0 6px 18px -8px var(--accent); }
.remix-bar option { background: #151b2e; color: #f5f3ee; }
.remix-bar optgroup { background: #0d1222; color: #c4b5fd; font-style: normal; font-weight: 600; }

.lab-grid {
  position: relative; z-index: 1; display: grid; gap: 22px; align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 330px) minmax(280px, 340px);
  max-width: 1400px; margin: 0 auto; padding: 18px 24px 48px;
}
@media (max-width: 1180px) {
  .lab-grid { grid-template-columns: 1fr 1fr; }
  .shelves { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .lab-grid { grid-template-columns: 1fr; padding: 12px 12px 40px; gap: 16px; }
}

.card, .shelf, .bench, .formula-card {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: 22px; backdrop-filter: blur(14px);
}

/* ---------- Shelves ---------- */
.shelves { display: grid; gap: 16px; }
.shelf { padding: 14px 16px 18px; position: relative; }
.shelf-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.shelf-head h3 { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 1.45rem; font-weight: 600; }
.shelf-head .when { font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.shelf-head .role { flex-basis: 100%; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.shelf[data-tier="top"] .when { color: var(--top); }
.shelf[data-tier="heart"] .when { color: var(--heart); }
.shelf[data-tier="base"] .when { color: var(--base); }

.shelf-search {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.shelf-search:focus-within { border-color: var(--accent); }
.shelf-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: .9rem; }
.shelf-search input::placeholder { color: var(--muted); }
.shelf-search .ss-count { font-size: .75rem; color: var(--accent); white-space: nowrap; }
.shelf[hidden], .vial[hidden] { display: none; }
.vials { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 12px 8px; margin-top: 12px; position: relative; }
.vials::after { /* the wooden plank */
  content: ""; position: absolute; left: -6px; right: -6px; bottom: -8px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #5c3216, #8a5228, #5c3216); opacity: .7;
}
.vial {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 4px 2px; cursor: pointer; border-radius: 14px; transition: transform .2s;
}
.vial:hover, .vial:focus-visible { transform: translateY(-4px); outline: none; }
.vial:focus-visible .tube { box-shadow: 0 0 0 2px var(--accent); }
.vial:active { transform: translateY(-1px) scale(.96); }
.tube {
  position: relative; width: 38px; height: 62px; border-radius: 6px 6px 18px 18px;
  border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.06); overflow: hidden;
  box-shadow: inset 0 0 8px rgba(255,255,255,.08); transition: box-shadow .3s;
}
.tube::before { /* cork */
  content: ""; position: absolute; left: 6px; right: 6px; top: -1px; height: 9px; border-radius: 3px 3px 2px 2px;
  background: linear-gradient(#c79a63, #8a5a2c); z-index: 2;
}
.tube::after { /* liquid */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  box-shadow: inset 0 3px 4px rgba(255,255,255,.3);
}
.tube .emo { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 14px; font-size: 1.2rem; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.vial .nm { font-size: .72rem; text-align: center; line-height: 1.15; color: var(--text); opacity: .9; }
.vial .cnt {
  position: absolute; top: 0; right: 12%; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px;
  background: var(--accent); color: #062420; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); z-index: 3;
}
.vial.used .cnt { transform: scale(1); }
.vial.used .tube { box-shadow: 0 0 16px -2px var(--c), inset 0 0 8px rgba(255,255,255,.1); }
.vial.pairs .tube { animation: pairGlow 1.8s ease-in-out infinite; }
.vial.pairs .nm::after { content: " ✦"; color: var(--accent); }
@keyframes pairGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(94,234,212,0); } 50% { box-shadow: 0 0 14px 1px rgba(94,234,212,.65); } }
.vial.pop .tube { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.12) rotate(-6deg); } }

/* ---------- Bench / flask ---------- */
.bench { padding: 14px 16px 18px; display: flex; flex-direction: column; align-items: center; position: sticky; top: 12px; }
@media (max-width: 720px) { .bench { position: relative; top: 0; } }
.flask-wrap { position: relative; width: min(250px, 66vw); aspect-ratio: 240 / 330; }
.flask { width: 100%; height: auto; overflow: visible; display: block; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.flask .glass { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2.5; stroke-linejoin: round; }
.flask .lip { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.55); stroke-width: 2; }
.flask .ticks line { stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
.flask .ticks text { fill: rgba(255,255,255,.4); font: 9px Inter, sans-serif; }
.flask .layer, #liqClipRect { transition: y .7s cubic-bezier(.3,1.3,.5,1), height .7s cubic-bezier(.3,1.3,.5,1), fill .8s ease; }
.flask .surface { transition: transform .7s cubic-bezier(.3,1.3,.5,1); }
.flask .wave { animation: wave 2.6s linear infinite; transition: fill .8s ease; }
@keyframes wave { to { transform: translateX(60px); } }
.flask .bub { fill: rgba(255,255,255,.55); animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-150px); opacity: 0; } }
.flask-wrap.shake .flask { animation: shake .45s ease; }
@keyframes shake { 20%,60% { transform: translateX(-6px) rotate(-2deg); } 40%,80% { transform: translateX(6px) rotate(2deg); } }
.flask-wrap.swirl .flask { animation: swirl 1.2s ease-in-out; transform-origin: 50% 90%; }
@keyframes swirl { 25% { transform: rotate(-9deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-5deg); } }

.vapour { position: absolute; left: 50%; top: -4%; width: 60px; height: 70px; transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity 1s; }
.vapour.on { opacity: 1; }
.vapour i { position: absolute; bottom: 0; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  background: var(--vap, #fff); filter: blur(9px); opacity: 0; animation: vap 3.6s ease-out infinite; }
.vapour i:nth-child(2) { animation-delay: 1.2s; }
.vapour i:nth-child(3) { animation-delay: 2.4s; }
@keyframes vap { 0% { transform: translate(0, 10px) scale(.5); opacity: 0; } 30% { opacity: .55; } 100% { transform: translate(14px, -60px) scale(1.6); opacity: 0; } }

.hotplate { position: absolute; left: 12%; right: 12%; bottom: 0; height: 22px; border-radius: 6px;
  background: linear-gradient(#2b3242, #151a24); border: 1px solid rgba(255,255,255,.12); display: flex; justify-content: flex-end; align-items: center; padding-right: 10px; }
.hotplate::before { content: ""; position: absolute; left: 18%; right: 18%; top: -3px; height: 3px; border-radius: 2px; background: #3a4354; }
.led { width: 7px; height: 7px; border-radius: 50%; background: #334; transition: all .4s; }
.led.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }

.splash { position: absolute; left: 50%; width: 70px; height: 16px; margin-left: -35px; border-radius: 50%; border: 2px solid #fff; opacity: 0; pointer-events: none; }
.splash.go { animation: splash .55s ease-out; }
@keyframes splash { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

.flying-drop {
  position: fixed; left: 0; top: 0; width: 14px; height: 18px; margin: -9px 0 0 -7px; z-index: 50; pointer-events: none;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c);
  box-shadow: inset -2px -3px 4px rgba(0,0,0,.25), inset 2px 2px 3px rgba(255,255,255,.6), 0 0 12px var(--c);
}

.drops-count { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.drops-count b { color: var(--text); font-size: 1.3rem; font-weight: 600; }

.balance { width: 100%; }
.bal-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.06); }
.bal-bar i { display: block; height: 100%; width: 0; transition: width .6s ease; }
.b-top { background: var(--top); } .b-heart { background: var(--heart); } .b-base { background: var(--base); }
.bal-legend { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.bal-legend span b { color: var(--text); font-weight: 600; }
.bal-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.assistant { display: flex; gap: 10px; align-items: flex-start; width: 100%; margin-top: 16px; }
.avatar { font-size: 1.9rem; line-height: 1; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.speech {
  position: relative; flex: 1; background: rgba(94,234,212,.08); border: 1px solid rgba(94,234,212,.3);
  border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: .84rem; line-height: 1.45; min-height: 54px;
}
.speech p { margin: 0 0 6px; }
.speech p:last-child { margin: 0; }
.speech.flash { animation: flash .5s ease; }
@keyframes flash { 0% { background: rgba(94,234,212,.3); } }

/* ---------- Formula card ---------- */
.formula-card { padding: 4px 18px 18px; }
.family {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(167,139,250,.22), rgba(94,234,212,.12)); border: 1px solid rgba(167,139,250,.4);
  animation: famIn .6s cubic-bezier(.3,1.5,.5,1);
}
.family .fe { font-size: 1.6rem; }
.family small { display: block; color: var(--muted); font-size: .72rem; }
@keyframes famIn { from { transform: scale(.85); opacity: 0; } }

.formula-list { display: grid; gap: 4px; }
.empty-msg { color: var(--muted); font-size: .85rem; font-style: italic; padding: 6px 0; }
.f-tier { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; margin: 8px 0 2px; }
.f-tier.top { color: var(--top); } .f-tier.heart { color: var(--heart); } .f-tier.base { color: var(--base); }
.f-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: rgba(255,255,255,.04); animation: rowIn .35s ease; }
@keyframes rowIn { from { opacity: 0; transform: translateX(10px); } }
.f-row .e { font-size: 1.1rem; text-align: center; }
.f-row .n { font-size: .86rem; }
.f-row .dots { display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: var(--c); transition: width .4s ease; box-shadow: 0 0 8px -2px var(--c); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.06);
  cursor: pointer; line-height: 1; font-size: .95rem; transition: all .15s;
}
.stepper button:hover { border-color: var(--accent); color: var(--accent); }
.stepper b { min-width: 18px; text-align: center; font-size: .85rem; }

.preview-bars { display: grid; gap: 7px; }
.pv { display: grid; grid-template-columns: 112px 1fr 28px; align-items: center; gap: 8px; font-size: .76rem; }
.pv .track { height: 7px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.pv .track i { display: block; height: 100%; border-radius: 4px; transition: width .6s ease; }
.pv .v { text-align: right; color: var(--muted); }

.actions { display: flex; gap: 8px; margin-top: 16px; }
.btn {
  border: 1px solid var(--border); background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px 14px;
  cursor: pointer; transition: all .2s; font-size: .88rem;
}
.btn:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.btn.ghost { flex: 1; }
.bottle-btn {
  width: 100%; margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px;
  background: linear-gradient(120deg, #14b8a6, #8b5cf6, #ec4899); background-size: 200% 200%; border: 0; color: #fff;
  font-weight: 600; font-size: 1.05rem; animation: sheen 5s ease infinite; box-shadow: 0 12px 30px -12px #8b5cf6;
}
.bottle-btn small { font-weight: 400; font-size: .72rem; opacity: .85; }
.bottle-btn:disabled { filter: grayscale(.85) brightness(.7); cursor: not-allowed; animation: none; box-shadow: none; }
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.creations { margin-top: 10px; }
.cr { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); margin-bottom: 6px; }
.cr .t { font-family: "Cormorant Garamond", serif; font-size: 1.1rem; }
.cr small { display: block; color: var(--muted); font-size: .7rem; }
.cr .b { display: flex; gap: 4px; }
.cr .b button, .cr .b a {
  border: 1px solid var(--border); background: none; border-radius: 8px; padding: 4px 8px; cursor: pointer; font-size: .75rem; color: var(--text); text-decoration: none;
}
.cr .b button:hover, .cr .b a:hover { border-color: var(--accent); }

/* ---------- Bottling modal ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(3,6,14,.7); backdrop-filter: blur(8px); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: linear-gradient(160deg, #18213d, #0b1022); border: 1px solid var(--border); border-radius: 24px; padding: 22px;
  animation: cardIn .45s cubic-bezier(.3,1.4,.5,1);
}
@keyframes cardIn { from { transform: translateY(30px) scale(.95); opacity: 0; } }
.close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: none; cursor: pointer; }
.bottling { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: center; }
@media (max-width: 720px) { .bottling { grid-template-columns: 1fr; } .bp { max-width: 260px; margin: 0 auto; } }
.bottle-preview { position: relative; }
.bp svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); }
.bp #liquid { transition: y 1.4s ease, height 1.4s ease; }
.bp .pulse-ring { display: none; }
.pour { position: absolute; left: 62.5%; top: 0; width: 6px; margin-left: -3px; height: 0; border-radius: 3px; background: var(--c, #fff); opacity: 0; filter: blur(.4px); }
.pour.go { animation: pour 1.5s ease; }
@keyframes pour { 0% { height: 0; opacity: .9; } 30% { height: 48%; opacity: .9; } 80% { height: 48%; opacity: .9; top: 0; } 100% { height: 0; top: 48%; opacity: 0; } }
.bottle-form h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.9rem; margin: 0 0 8px; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fld input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.06);
  color: var(--text); font: 500 1.05rem "Inter", sans-serif;
}
.fld input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--border); background: rgba(255,255,255,.04); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .8rem; transition: all .2s; }
.pill small { color: var(--muted); margin-left: 4px; }
.pill:hover { border-color: rgba(94,234,212,.6); }
.pill.active { border-color: var(--accent); background: rgba(94,234,212,.16); box-shadow: 0 0 14px -6px var(--accent); }
.summary { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.spray-btn {
  width: 100%; padding: 14px; border: 0; font-weight: 600; font-size: 1.1rem; color: #fff;
  background: linear-gradient(120deg, #14b8a6, #8b5cf6, #ec4899); background-size: 200% 200%; animation: sheen 4s ease infinite;
  box-shadow: 0 12px 30px -10px #ec4899;
}

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 40px); opacity: 0; z-index: 60; pointer-events: none;
  background: #1c2440; border: 1px solid var(--accent); border-radius: 999px; padding: 10px 18px; font-size: .88rem; transition: all .35s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.transition { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, #1e1b4b, #05060a); animation: fadeIn .4s ease; }
.transition div { font-size: 4rem; animation: wobble .6s ease-in-out infinite; }
.transition p { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; margin: 10px 0 0; }

/* ---------- Mobile guided flow: flask -> (inspiration) -> ingredients -> bottle ---------- */
.m-only { display: none; }
.step-head { align-items: flex-start; gap: 12px; width: 100%; text-align: left; }
.step-no {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: .9rem; color: #0b1022;
  background: linear-gradient(135deg, var(--accent), var(--violet)); box-shadow: 0 0 14px -2px rgba(94,234,212,.6);
}
.step-head b { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.step-head small { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.go-step {
  width: 100%; margin-top: 14px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(94,234,212,.5); background: linear-gradient(135deg, rgba(94,234,212,.16), rgba(167,139,250,.14));
  font-weight: 600; font-size: .92rem;
}
.go-step span { display: inline-block; margin-left: 4px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.inspire-title { flex-basis: 100%; font-weight: 600; font-size: .9rem; }
.inspire-title small { color: var(--muted); font-weight: 400; }

@media (max-width: 720px) {
  .m-only { display: block; }
  .step-head.m-only { display: flex; }
  body { display: flex; flex-direction: column; }
  .lab-grid { display: contents; }
  .bench, .shelves, .formula-card { position: relative; z-index: 1; }
  .lab-top { order: 1; }
  .bench { order: 2; margin: 12px 12px 0; }
  .recipes { order: 3; margin: 16px 12px 0; padding: 14px 14px 0; justify-content: flex-start;
    border: 1px dashed var(--border); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--card); }
  .recipes-lbl { flex-basis: 100%; }
  .remix-bar { order: 4; margin: 0 12px; padding: 8px 14px 14px; justify-content: flex-start;
    border: 1px dashed var(--border); border-top: 0; border-radius: 0 0 18px 18px; background: var(--card); }
  .remix-bar select { width: 100%; }
  .shelves { order: 5; margin: 16px 12px 0; }
  .shelves > .step-head { padding: 0 4px; }
  .formula-card { order: 6; margin: 16px 12px 40px; padding-top: 16px; }
  .formula-card > .step-head + .eyebrow { margin-top: 16px; }
  .bench .step-head { margin-bottom: 8px; }
  .flask-wrap { width: min(200px, 54vw); }

  .lab-top { padding-top: 54px; }
  .back { top: 12px; left: 12px; }
  .vials { grid-template-columns: repeat(4, 1fr); }
  .pv { grid-template-columns: 96px 1fr 26px; }
}
.mini-flask {
  position: fixed; right: 16px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid rgba(94,234,212,.5); color: var(--ink, #eef);
  background: rgba(14,20,38,.92); backdrop-filter: blur(8px); cursor: pointer; font: inherit; font-size: .8rem;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transform: translateY(120px); opacity: 0; transition: transform .35s, opacity .35s;
}
.mini-flask.show { transform: none; opacity: 1; }
.mini-flask.gulp .mf-glass { animation: pop .35s ease; }
.mf-glass { position: relative; width: 22px; height: 30px; border: 2px solid rgba(255,255,255,.6); border-radius: 4px 4px 10px 10px; overflow: hidden; }
.mf-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .4s ease, background .4s; }
@media (min-width: 1181px) { .mini-flask { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
