/* My Lab v2 (Nov 6, 2026): a dark lab bench, a shelf of glass vials in their own colors, one thumb.
   Tab bar at the bottom, big tap targets (44px+), 16px inputs so iPhones don't zoom, safe-area padding for the home bar. */
.lab-page { --lab-tab-h: 66px; --vc: var(--cyan); --miss: #ff6b5e; --glass: rgba(255,255,255,.04); --glass-2: rgba(255,255,255,.07); --edge: rgba(255,255,255,.09);
  background: radial-gradient(120% 60% at 50% -10%, rgba(34,211,230,.10), transparent 60%), radial-gradient(80% 40% at 100% 0%, rgba(255,163,26,.05), transparent 60%), #040506; }
.lab-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.lab-page main { position: relative; z-index: 1; }
.lab-page .site-foot, .lab-page .buybar { display: none !important; }
@media (display-mode: standalone) { .lab-page .site-head { display: none; } .lab-page { padding-top: env(safe-area-inset-top); } }
#lab-root { max-width: 640px; margin: 0 auto; padding: 0 16px calc(var(--lab-tab-h) + 30px + env(safe-area-inset-bottom)); min-height: 70vh; }
#lab-root:not(.ready) .lab-app { display: none; }
#lab-root [hidden], .lab-sheet-wrap [hidden] { display: none !important; }
.lab-static { padding: 18px 0 40px; }
#lab-root.ready .lab-static { display: none; }
.lab-static h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); max-width: 14ch; }
.lab-static ul { margin: 18px 0 0; padding-left: 1.1em; color: #d7d4cc; }
.lab-static li { margin: 6px 0; }
.lab-page .btn { white-space: normal; text-align: center; line-height: 1.15; }
.lab-page .btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .ic { width: 19px; height: 19px; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.kicker { text-transform: none; }

/* app bar */
.lab-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 2px; }
.lab-brand { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; color: var(--text); font: 700 15px var(--display); font-variation-settings: "wdth" 112; letter-spacing: .01em; padding: 6px 0; cursor: pointer; }
.lb-dot { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(var(--red) 0 33%, var(--cyan) 0 66%, var(--amber) 0); box-shadow: 0 0 12px rgba(34,211,230,.5); }
.lab-sync { font: 600 12px/1 var(--display); border-radius: 999px; padding: 8px 11px; border: 1px solid var(--edge); background: var(--glass); color: var(--muted); cursor: pointer; white-space: nowrap; }
.lab-sync::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--faint); vertical-align: 1px; }
.lab-sync.s-saved::before { background: var(--ok); }
.lab-sync.s-saving::before { background: var(--cyan); animation: labpulse 1s infinite alternate; }
.lab-sync.s-offline::before, .lab-sync.s-error::before { background: var(--amber); }
.lab-sync.s-local { color: var(--text); border-color: rgba(34,211,230,.4); }
@keyframes labpulse { to { opacity: .3; } }

/* headings */
.lab-hello { padding: 14px 0 14px; }
.lab-date { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.lab-hello h1, .lab-head h1 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.5rem); font-variation-settings: "wdth" 110; margin-top: 4px; }
.lab-head { padding: 14px 0 12px; }
.lab-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.lab-h2 { font-size: 1.02rem; margin: 26px 0 10px; color: #cfccc4; letter-spacing: .01em; font-variation-settings: "wdth" 106; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.h2-r { color: var(--muted); font-size: 13px; font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font: 600 15px var(--display); padding: 10px 0 4px; cursor: pointer; }
.back .ic { width: 18px; height: 18px; }

/* cards */
.lab-card { display: block; width: 100%; text-align: left; background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--edge); border-radius: 22px; padding: 16px; color: var(--text); font: inherit; margin: 0 0 12px; }
button.lab-card { cursor: pointer; }
.lab-card.calm { text-align: left; }
.dc-h { font: 700 18px var(--display); font-variation-settings: "wdth" 106; }
.dc-s { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--display); border-radius: 999px; padding: 6px 9px; background: var(--glass-2); color: var(--muted); border: 1px solid var(--edge); white-space: nowrap; }
.tag .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.tag.ok { color: var(--ok); border-color: rgba(127,224,160,.3); }
.tag.warn { color: var(--amber); border-color: rgba(255,163,26,.35); }
.tag.due { color: #000; background: var(--vc); border-color: transparent; }
.lab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lab-row.center { justify-content: center; }
.lab-more-link { margin: 14px 0; text-align: center; }
.lab-more-link.left { text-align: left; margin: 8px 0 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkish.danger, .danger { color: #ff8a80 !important; }
.lab-warn { color: var(--amber); font-size: 13.5px; margin-top: 6px; }
.lab-meta { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.lab-note { margin-top: 10px; font-size: 15px; color: #d7d4cc; background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; padding: 10px 12px; white-space: pre-wrap; }
.lab-empty { text-align: center; padding: 28px 14px; border: 1px dashed var(--edge); border-radius: 20px; margin: 6px 0 12px; }
.lab-empty p + p { margin-top: 6px; }

/* vials as pictures */
.vial-svg { display: block; overflow: visible; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.vial-svg .liq.rise { transform-box: fill-box; transform-origin: 50% 100%; animation: rise .7s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: scaleY(0); } }
.vial-svg.pop { animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.ring { display: block; flex: none; }
.ring circle { transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); }
.ring.bump { animation: bump .45s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }
.ring-t { font: 700 17px var(--display); fill: var(--text); }
.ws-n { font: 600 12.5px var(--display); fill: var(--text); }
.rt-n { font: 700 11px var(--display); fill: var(--text); }
.syr { width: 100%; height: auto; color: var(--text); margin: 10px 0 2px; display: block; }

/* Today */
.day-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.hero-entry { --vc: var(--cyan); position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--vc) 45%, transparent); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--vc) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--glass-2), var(--glass)); padding: 16px 16px 14px; }
.he-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.he-when { color: var(--muted); font-size: 14px; }
.he-when b { color: var(--text); }
.he-main { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.he-main > div { flex: 1; min-width: 0; }
.he-name { font: 700 19px/1.15 var(--display); font-variation-settings: "wdth" 106; }
.he-amt { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.he-units { text-align: right; color: var(--muted); font-size: 14px; line-height: 1; }
.he-units b { display: block; font: 760 44px/1 var(--display); font-variation-settings: "wdth" 112; color: var(--white); letter-spacing: -.02em; }
.he-units.sm { font-size: 16px; color: var(--text); }
.he-acts { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.he-acts .btn { padding: 0 10px; min-width: 0; }
.he-go { --bg: var(--vc); --fg: #000; }
.lab-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lab-row-i { --vc: var(--cyan); width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--glass); border: 1px solid var(--edge); border-radius: 16px; padding: 12px 14px; color: var(--text); font: inherit; cursor: pointer; min-height: 58px; }
.lab-row-i.st-due:not(.is-done) { border-color: color-mix(in srgb, var(--vc) 55%, transparent); }
.lab-row-i.is-done { opacity: .72; }
.ri-time { font: 650 14px var(--display); color: var(--muted); width: 64px; flex: none; }
.ri-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vc); flex: none; box-shadow: 0 0 10px color-mix(in srgb, var(--vc) 60%, transparent); }
.ri-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ri-body b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-body span { color: var(--muted); font-size: 13.5px; }
.ri-check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--vc) 70%, transparent); display: grid; place-items: center; color: transparent; flex: none; }
.ri-check .ic { width: 16px; height: 16px; stroke-width: 3; }
.lab-row-i:hover .ri-check { color: var(--vc); }
.heads-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.heads-up li { display: flex; gap: 12px; align-items: center; background: rgba(255,163,26,.07); border: 1px solid rgba(255,163,26,.3); border-radius: 16px; padding: 10px 12px; font-size: 14.5px; }
.heads-up li p { flex: 1; }
.heads-up .btn { flex: none; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; padding: 10px 6px; }
.ws-d { display: grid; justify-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font: 600 11.5px var(--display); cursor: pointer; padding: 2px 0; border-radius: 12px; }
.ws-d.is-today { color: var(--text); background: var(--glass-2); }
.ws-d.empty .ring { opacity: .45; }
.lab-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.qk { display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid var(--edge); border-radius: 16px; padding: 14px; color: var(--text); font: 600 14.5px var(--display); cursor: pointer; text-align: left; }
.qk .ic { color: var(--cyan); }
.mini-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.ms { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; background: var(--glass-2); border: 1px solid var(--edge); border-radius: 14px; padding: 10px; color: var(--text); font: inherit; cursor: pointer; }
.ms .vial-svg { grid-row: 1 / 3; }
.ms span { font-weight: 650; font-size: 14px; }
.ms em { font-style: normal; color: var(--cyan); font-size: 13px; }

/* first run */
.lab-onb { text-align: center; padding: 8px 4px 0; }
.onb-shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; height: 150px; margin: 6px auto 18px; }
.onb-shelf .vial-svg:nth-child(2) { transform: translateY(-6px); }
.onb-plank { position: absolute; left: 12%; right: 12%; bottom: -6px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
.lab-onb h2 { font-size: clamp(1.55rem, 1.25rem + 1.6vw, 2.1rem); margin: 0 auto 10px; max-width: 16ch; }
.onb-p { color: #cfccc4; font-size: 16px; max-width: 36ch; margin: 0 auto 18px; }
.onb-go { --bg: var(--cyan); --fg: #000; gap: 8px; }
.onb-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.onb-points li { display: flex; gap: 12px; align-items: center; background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.onb-points .ic { color: var(--cyan); }
.onb-in { margin-top: 16px; }

/* Shelf */
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
.tile { --vc: var(--cyan); position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; text-align: center; background: radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--vc) 14%, transparent), transparent 70%), var(--glass); border: 1px solid var(--edge); border-radius: 22px; padding: 16px 10px 14px; color: var(--text); font: inherit; cursor: pointer; min-height: 196px; transition: transform .15s ease, border-color .15s ease; }
.tile:hover { border-color: color-mix(in srgb, var(--vc) 50%, transparent); }
.tile:active { transform: scale(.98); }
.t-glass { height: 100px; display: grid; place-items: end center; margin-bottom: 8px; }
.t-name { min-height: 2.4em; display: grid; place-items: center; font: 700 15.5px/1.2 var(--display); font-variation-settings: "wdth" 106; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-line { color: var(--vc); font: 650 13.5px var(--display); }
.t-foot { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.t-line { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.t-warn { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.tile.is-low { border-color: rgba(255,163,26,.4); }
.tile.is-empty { border-color: rgba(255,107,94,.45); }
.tile.is-done { opacity: .55; }
.tile.add { border-style: dashed; background: none; place-content: center; justify-items: center; color: var(--muted); }
.t-plus { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(255,255,255,.3); margin-bottom: 8px; }
.t-plus .ic { width: 24px; height: 24px; }
.lab-offer { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--edge); border-radius: 18px; padding: 14px; margin: 22px 0 12px; font-size: 14.5px; background: var(--glass); }
.lab-offer p { color: #d7d4cc; }
.lab-offer .btn { flex: none; }
@media (max-width: 420px) { .lab-offer { flex-direction: column; align-items: stretch; } }

/* one vial */
.vial-page { --vc: var(--cyan); }
.vp-hero { display: flex; gap: 18px; align-items: center; padding: 8px 0 14px; }
.vp-glass { flex: none; width: 112px; height: 168px; display: grid; place-items: center; border-radius: 26px; background: radial-gradient(80% 60% at 50% 40%, color-mix(in srgb, var(--vc) 22%, transparent), transparent 70%); }
.vp-id { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.vp-id h1 { font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.2rem); font-variation-settings: "wdth" 108; word-break: break-word; }
.vp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; }
.vp-stats div { background: #08090a; padding: 12px; display: grid; gap: 4px; }
.vp-stats span { color: var(--muted); font-size: 12.5px; }
.vp-stats b { font: 750 20px var(--display); font-variation-settings: "wdth" 108; }
.vp-stats small { font-size: 13px; color: var(--muted); font-weight: 500; }
.vp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vp-acts .btn:first-child { --bg: var(--vc); --fg: #000; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-card { display: grid; gap: 6px; border-left: 3px solid var(--vc); margin: 0; }
.plan-card.paused { opacity: .6; }
.pc-amt { display: flex; align-items: baseline; gap: 10px; }
.pc-amt b { font: 750 19px var(--display); }
.pc-amt em { font-style: normal; color: var(--vc); font: 700 16px var(--display); }
.pc-when { color: #cfccc4; font-size: 14.5px; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.setup { list-style: none; margin: 0; padding: 0; border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; background: var(--glass); }
.setup li + li { border-top: 1px solid var(--edge); }
.setup > li > button, .setup li.ro, .setup li.colors { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; padding: 13px 14px; min-height: 52px; cursor: pointer; }
.setup li.ro { cursor: default; }
.setup span { color: var(--muted); font-size: 14px; width: 104px; flex: none; }
.setup b { flex: 1; font-weight: 600; font-size: 14.5px; min-width: 0; }
.setup .ic { color: var(--faint); width: 16px; height: 16px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.sw.on { border-color: #fff; }
.lab-log { list-style: none; margin: 0; padding: 0; border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; background: var(--glass); }
.lab-log li + li { border-top: 1px solid var(--edge); }
.lab-log button { --vc: var(--cyan); width: 100%; display: flex; gap: 12px; align-items: center; background: none; border: 0; color: var(--text); font: inherit; text-align: left; padding: 11px 14px; cursor: pointer; border-left: 3px solid var(--vc); }
.ll-d { width: 64px; flex: none; color: var(--muted); font-size: 13.5px; display: grid; }
.ll-d small { font-size: 12px; color: var(--faint); }
.ll-b { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ll-b b { font-size: 14.5px; font-weight: 650; }
.ll-b span { color: var(--muted); font-size: 13px; }
.ll-b em { color: #d7d4cc; font-style: normal; font-size: 13px; }
.lab-log .ic { color: var(--faint); width: 16px; height: 16px; }
.log-day { color: var(--muted); font-size: 13px; margin: 18px 0 8px; font-weight: 600; }
.vp-tools { display: grid; gap: 14px; margin: 26px 0 8px; padding: 16px; border: 1px solid var(--edge); border-radius: 18px; }
.vp-tools a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.vp-tools a .ic { color: var(--vc); }
.vp-tools .linkish { justify-self: start; color: var(--muted); font-weight: 500; }

/* History */
.lab-seg { display: flex; background: var(--glass); border: 1px solid var(--edge); border-radius: 999px; padding: 4px; gap: 4px; margin: 2px 0 14px; }
.lab-seg > button, .lab-seg > label { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 0; background: none; color: var(--muted); font: 600 14px var(--display); cursor: pointer; text-align: center; padding: 0 8px; }
.lab-seg > label input { position: absolute; opacity: 0; pointer-events: none; }
.lab-seg > button.on, .lab-seg > label:has(input:checked) { background: var(--text); color: #000; }
.lab-seg.sm { margin: 0; }
.lab-seg.sm > button, .lab-seg.sm > label { min-height: 38px; font-size: 13.5px; }
.lab-nav { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 12px; }
.icon-b { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lab-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 10px; }
.mo-h { text-align: center; color: var(--muted); font-size: 12px; padding: 4px 0; }
.mo-d { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); color: var(--text); font: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; min-width: 0; }
.mo-d b { font-size: 14.5px; font-weight: 600; }
.mo-d i { position: absolute; bottom: 3px; right: 5px; font: 700 9.5px var(--display); font-style: normal; color: rgba(0,0,0,.6); }
.mo-d.c-full { background: color-mix(in srgb, var(--ok) 78%, #000); color: #04120a; border-color: transparent; }
.mo-d.c-part { background: color-mix(in srgb, var(--ok) 30%, #000); border-color: rgba(127,224,160,.4); }
.mo-d.c-part i { color: var(--ok); }
.mo-d.c-miss { background: rgba(255,107,94,.16); border-color: rgba(255,107,94,.45); }
.mo-d.c-plan { border: 1.5px dashed rgba(34,211,230,.6); }
.mo-d.is-today { box-shadow: 0 0 0 2px var(--cyan); }
.mo-d.on { outline: 2px solid #fff; outline-offset: 2px; }
.lab-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12.5px; margin-bottom: 12px; align-items: center; }
.lab-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 4px; vertical-align: -2px; }
.l-full { background: color-mix(in srgb, var(--ok) 78%, #000); } .l-part { background: color-mix(in srgb, var(--ok) 30%, #000); } .l-miss { background: rgba(255,107,94,.4); } .l-plan { border: 1.5px dashed rgba(34,211,230,.7); }
.lab-day { margin: 4px 0 8px; }
.rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rates li { display: flex; gap: 12px; align-items: center; background: var(--glass); border: 1px solid var(--edge); border-radius: 16px; padding: 10px 12px; }
.rates span { display: grid; gap: 2px; min-width: 0; }
.rates small { color: var(--muted); font-size: 12.5px; }
.notes-top { display: flex; gap: 8px; align-items: center; }
.lab-search { flex: 1; }
.lab-search input { width: 100%; min-height: 46px; font-size: 16px; border-radius: 14px; border: 1px solid var(--edge); background: var(--glass); color: var(--text); padding: 0 14px; }
.lab-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; }
.lab-chips button { flex: none; min-height: 36px; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); color: var(--muted); padding: 0 12px; font: 600 13.5px var(--display); cursor: pointer; }
.lab-chips button.on { background: var(--text); color: #000; }
.notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.note-card { --vc: var(--line); background: var(--glass); border: 1px solid var(--edge); border-left: 3px solid var(--vc); border-radius: 16px; padding: 12px 14px; }
.nc-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.n-text { white-space: pre-wrap; margin-top: 6px; font-family: var(--read); font-size: 17px; line-height: 1.5; color: #e6e3dc; }
.n-text b { color: var(--cyan); font-family: var(--display); font-weight: 600; font-size: 15px; }
.nc-acts { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; }

/* Me */
.me-card { padding: 18px; }
.me-id { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.me-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 760 22px var(--display); color: #000; background: conic-gradient(from 200deg, var(--cyan), var(--amber), #ff5ca8, var(--cyan)); flex: none; }
.me-id b { font-size: 18px; }
.me-name { display: grid; gap: 6px; margin-bottom: 12px; }
.me-name label { font-size: 14px; color: #d7d4cc; }
.me-name input { min-height: 48px; font: 400 16px var(--display); color: var(--text); background: rgba(0,0,0,.3); border: 1px solid var(--edge); border-radius: 12px; padding: 0 14px; }
.me-backup { display: grid; gap: 10px; background: rgba(34,211,230,.07); border: 1px solid rgba(34,211,230,.3); border-radius: 16px; padding: 14px; font-size: 14.5px; }
.set { padding: 4px 16px; }
.set-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--edge); flex-wrap: wrap; }
.set-row:first-child { border-top: 0; }
.set-row.col { flex-direction: column; align-items: stretch; }
.set-row > div { flex: 1; min-width: 170px; }
.set-row .btns { display: flex; gap: 6px; }
.set-row input[type=time] { min-height: 44px; font-size: 16px; background: rgba(0,0,0,.3); color: var(--text); border: 1px solid var(--edge); border-radius: 10px; padding: 0 10px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; display: inline-block; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #2a3033; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--vc, var(--cyan)); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .4; }
.lab-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.file { display: grid; gap: 3px; text-align: left; border: 1px solid var(--edge); background: var(--glass); border-radius: 16px; padding: 14px; color: var(--text); text-decoration: none; font: inherit; cursor: pointer; }
.file span { color: var(--muted); font-size: 13px; }
.tool-links { display: grid; border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; background: var(--glass); }
.tool-links a { display: flex; align-items: center; gap: 10px; padding: 14px; color: var(--text); text-decoration: none; font-weight: 600; }
.tool-links a + a { border-top: 1px solid var(--edge); }
.tool-links .ic { color: var(--cyan); }
.lab-about { margin: 26px 0 10px; display: grid; gap: 12px; }
.lab-steps { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; color: #d7d4cc; font-size: 15px; }

/* tab bar */
.lab-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(var(--lab-tab-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(6,7,8,.9); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid rgba(255,255,255,.08); }
.lab-tab { height: 100%; border: 0; background: none; color: var(--faint); display: grid; place-items: center; align-content: center; gap: 4px; font: 600 11.5px var(--display); cursor: pointer; }
.lab-tab .ic { width: 23px; height: 23px; stroke-width: 1.9; }
.lab-tab.on { color: var(--white); }
.lab-tab.on .ic { stroke: var(--cyan); }
.lab-plus { justify-self: center; width: 58px; height: 58px; border-radius: 50%; border: 0; background: linear-gradient(140deg, #5de6f2, var(--cyan)); color: #000; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(34,211,230,.75), inset 0 1px 0 rgba(255,255,255,.5); margin-top: -20px; }
.lab-plus .ic { width: 28px; height: 28px; stroke-width: 2.6; }
@media (min-width: 700px) { .lab-tabs { left: 50%; transform: translateX(-50%); width: 640px; bottom: 14px; border-radius: 24px; border: 1px solid rgba(255,255,255,.1); padding-bottom: 0; height: var(--lab-tab-h); } }

/* sheets */
body.lab-locked { overflow: hidden; }
.lab-sheet-wrap { position: fixed; inset: 0; z-index: 90; }
.lab-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.62); opacity: 0; transition: opacity .2s; backdrop-filter: blur(2px); }
.lab-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #0a0c0d; border: 1px solid var(--edge); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.lab-sheet-wrap.open .lab-scrim { opacity: 1; }
.lab-sheet-wrap.open .lab-sheet { transform: none; }
@media (min-width: 700px) { .lab-sheet { left: 50%; width: 600px; margin-left: -300px; bottom: 24px; border-radius: 26px; border-bottom: 1px solid var(--edge); max-height: 86vh; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin: -10px auto 12px; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--glass-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.lab-sheet h2 { font-size: 1.5rem; margin: 0 44px 8px 0; }
.lab-sheet > .muted { margin-bottom: 12px; font-size: 15px; }
.add-list { display: grid; gap: 8px; margin-top: 12px; }
.add-list > * { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--edge); background: var(--glass); border-radius: 18px; padding: 14px; color: var(--text); text-decoration: none; font: inherit; cursor: pointer; min-height: 70px; }
.add-list > * > span:not(.al-ic) { flex: 1; display: grid; gap: 2px; }
.add-list b { font-size: 16.5px; }
.add-list small { color: var(--muted); font-size: 13.5px; }
.add-list > * > .ic:last-child { color: var(--faint); width: 18px; height: 18px; }
.add-list .al-main { border-color: rgba(34,211,230,.45); background: radial-gradient(120% 120% at 0% 0%, rgba(34,211,230,.14), transparent 60%), var(--glass); min-height: 84px; }
.al-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); color: var(--cyan); flex: none; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.add-grid > * { display: grid; gap: 4px; text-align: left; border: 1px solid var(--edge); background: var(--glass); border-radius: 16px; padding: 16px 14px; color: var(--text); font: inherit; cursor: pointer; min-height: 64px; align-content: center; }
.entry-sheet { --vc: var(--cyan); }
.es-when { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.es-amt { font-size: 17px; color: #d7d4cc; }
.es-amt b { color: var(--vc); font-size: 22px; }
.remix { --vc: var(--cyan); display: grid; justify-items: center; text-align: center; gap: 8px; padding-top: 6px; }
.remix h2 { margin: 6px 0 0 !important; }
.si-head { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(34,211,230,.12); color: var(--cyan); margin-bottom: 12px; }
.si-head .ic { width: 26px; height: 26px; }

/* forms */
.lab-form { display: grid; gap: 14px; margin-top: 8px; }
.lab-form .f, .j .f { display: grid; gap: 6px; min-width: 0; }
.lab-form label, .lab-form .lbl, .j .f label, .j .lbl { font-size: 14.5px; color: #d7d4cc; font-weight: 500; }
.lab-form input:not([type=radio]):not([type=checkbox]), .lab-form select, .lab-form textarea, .j input[type=date], .j input[type=text]:not(#j-q), .part-row > input { width: 100%; min-height: 50px; font: 400 16px var(--display); color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--edge); border-radius: 14px; padding: 0 14px; -webkit-appearance: none; appearance: none; }
.lab-form textarea { padding: 12px 14px; min-height: 0; line-height: 1.45; resize: vertical; }
.lab-form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.lab-form input:focus, .lab-form select:focus, .lab-form textarea:focus, .j input:focus { outline: none; border-color: var(--vc, var(--cyan)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vc, var(--cyan)) 22%, transparent); }
.f-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.f-row .grow { flex: 1 1 140px; }
.amt-row { display: flex; gap: 8px; align-items: center; }
.amt-row input { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); color: var(--text); padding: 0 15px; font: 600 14.5px var(--display); cursor: pointer; }
.chips button.on { background: var(--text); color: #000; border-color: var(--text); }
.chips.days button { min-width: 52px; padding: 0 10px; }
.w-num { width: 78px !important; min-height: 44px !important; text-align: center; font: 600 16px var(--display) !important; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--edge); border-radius: 12px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.04); }
.stepper button { width: 44px; height: 48px; border: 0; background: none; color: var(--text); font-size: 22px; cursor: pointer; }
.stepper input { width: 52px !important; border: 0 !important; text-align: center; min-height: 48px !important; border-radius: 0 !important; padding: 0 !important; background: none !important; }
.lab-preview { background: color-mix(in srgb, var(--vc, var(--cyan)) 9%, transparent); border: 1px solid color-mix(in srgb, var(--vc, var(--cyan)) 35%, transparent); border-radius: 14px; padding: 10px 12px; font-size: 15px; }
.lab-preview:empty { display: none; }
.form-error { display: none; color: #ff8a80; font-size: 14.5px; }
.form-error.show { display: block; }
.sheet-acts { display: grid; gap: 10px; margin-top: 4px; position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(10,12,13,0), #0a0c0d 30%); padding: 14px 0 8px; }
.sheet-acts .lab-row { justify-content: center; margin-top: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #d7d4cc; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--cyan); }
.check.sm { font-size: 14px; color: var(--muted); align-items: center; }
.code-in { font-size: 26px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.si-google { margin: 14px 0 4px; min-height: 44px; display: grid; justify-items: center; }
.si-google:empty { display: none; }
.gsi-slot { width: 100%; display: flex; justify-content: center; }
.g-btn { --bg: #fff; --fg: #1f1f1f; gap: 10px; }
.si-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; margin: 10px 0 2px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.vial-pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vial-pick.big { display: grid; overflow: visible; }
.vpk { --vc: var(--cyan); flex: none; display: flex; align-items: center; gap: 10px; border: 1px solid var(--edge); background: var(--glass); border-radius: 16px; padding: 8px 14px 8px 10px; color: var(--text); font: 600 14.5px var(--display); cursor: pointer; text-align: left; }
.vpk span { display: grid; gap: 2px; }
.vpk small { color: var(--muted); font-weight: 500; font-size: 13px; }
.vpk.on { border-color: var(--vc); background: color-mix(in srgb, var(--vc) 14%, transparent); }
.vial-pick.big .vpk { padding: 12px 14px; }

/* the guided flow */
.lab-sheet-wrap.full .lab-sheet { top: 0; max-height: none; height: 100%; border-radius: 0; border: 0; padding: 0; background: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, var(--jc, #22d3e6) 10%, transparent), transparent 60%), #060708; }
@media (min-width: 700px) { .lab-sheet-wrap.full .lab-sheet { top: 4vh; height: auto; max-height: 92vh; border-radius: 26px; border: 1px solid var(--edge); } }
.j { min-height: 100%; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 18px 0; max-width: 560px; margin: 0 auto; }
.j-top { display: flex; align-items: center; gap: 12px; padding: 4px 0 10px; }
.j-ic { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.j-ic.sp { visibility: hidden; }
.j-ic.sm { width: 36px; height: 36px; }
.j-prog { flex: 1; display: flex; gap: 5px; }
.j-prog i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); transition: background .3s; }
.j-prog i.done { background: color-mix(in srgb, var(--vc) 65%, transparent); }
.j-prog i.on { background: var(--vc); box-shadow: 0 0 10px color-mix(in srgb, var(--vc) 70%, transparent); }
.j-prog i.skip { display: none; }
.j-prev { display: flex; align-items: center; gap: 12px; background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; padding: 10px 14px; margin: 4px 0 4px; }
.j-prev > div { display: grid; gap: 1px; min-width: 0; }
.j-prev b { font-size: 15.5px; }
.j-prev span { color: var(--muted); font-size: 13.5px; }
.j-prev .jp-c { color: var(--vc); font-weight: 650; }
.j-body { flex: 1; padding: 14px 0 34px; }
.j-body.fwd { animation: jin .32s cubic-bezier(.2,.8,.2,1); }
.j-body.bwd { animation: jback .32s cubic-bezier(.2,.8,.2,1); }
@keyframes jin { from { opacity: 0; transform: translateX(26px); } }
@keyframes jback { from { opacity: 0; transform: translateX(-26px); } }
.j-h { font-size: clamp(1.65rem, 1.35rem + 1.5vw, 2.15rem) !important; line-height: 1.08; margin: 6px 0 6px !important; font-variation-settings: "wdth" 110; }
.j-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; max-width: 40ch; }
.j-lbl { color: var(--muted); font-size: 13px; font-weight: 600; margin: 4px 0 8px; letter-spacing: .02em; }
.j-search input { width: 100%; min-height: 54px; font: 500 17px var(--display); color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--edge); border-radius: 16px; padding: 0 16px; -webkit-appearance: none; appearance: none; }
.j-results { margin-top: 14px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { display: grid; gap: 2px; align-content: center; text-align: left; min-height: 58px; border: 1px solid var(--edge); background: var(--glass); border-radius: 16px; padding: 10px 14px; color: var(--text); font: inherit; cursor: pointer; width: 100%; }
.pick b { font-size: 15.5px; }
.pick small { color: var(--muted); font-size: 12px; line-height: 1.25; }
.pick.on { border-color: var(--vc); background: color-mix(in srgb, var(--vc) 15%, transparent); }
.pick.own { margin-top: 8px; border-style: dashed; }
.j-all { margin-top: 12px; }
.j-alt { display: grid; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--edge); justify-items: start; }
.big-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.big-chip { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 84px; border-radius: 20px; border: 1px solid var(--edge); background: var(--glass); color: var(--text); font: 750 26px var(--display); font-variation-settings: "wdth" 110; cursor: pointer; letter-spacing: -.01em; padding: 6px; }
.big-chip small { font: 600 12.5px var(--display); color: var(--muted); letter-spacing: 0; }
.big-chip.ghost { font-size: 18px; }
.big-chip.wide { grid-column: span 2; }
.big-chip.on { background: var(--vc); color: #000; border-color: transparent; box-shadow: 0 10px 26px -12px var(--vc); }
.big-chip.on small { color: rgba(0,0,0,.6); }
.j-fields { display: grid; gap: 14px; }
.unit-in { position: relative; display: flex; align-items: center; }
.unit-in input { width: 100%; min-height: 58px; font: 650 22px var(--display); color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--edge); border-radius: 16px; padding: 0 90px 0 16px; -webkit-appearance: none; appearance: none; }
.unit-in span { position: absolute; right: 16px; color: var(--muted); font: 600 15px var(--display); pointer-events: none; }
.unit-in.sm input { min-height: 50px; font-size: 18px; padding-right: 52px; }
.part-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: center; }
.j-units { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.j-units button { min-height: 40px; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); color: var(--muted); padding: 0 16px; font: 650 14.5px var(--display); cursor: pointer; }
.j-units button.on { background: var(--text); color: #000; border-color: transparent; }
.j-result { margin-top: 18px; background: color-mix(in srgb, var(--vc) 8%, transparent); border: 1px solid color-mix(in srgb, var(--vc) 32%, transparent); border-radius: 18px; padding: 12px 14px; display: grid; gap: 6px; }
.j-result p { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.j-result p span { color: var(--muted); }
.j-result p.muted, .j-result p.small { display: block; }
.j-result.big { padding: 16px; }
.jd-u { display: flex !important; align-items: baseline; justify-content: flex-start !important; gap: 8px !important; font: 600 18px var(--display); color: var(--muted); }
.jd-u b { font: 780 56px/1 var(--display); font-variation-settings: "wdth" 112; color: var(--white); letter-spacing: -.02em; }
.jd-u span { margin-left: auto; font-size: 14.5px; }
.j-notmixed { margin-top: 14px; width: 100%; min-height: 50px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.25); background: none; color: var(--muted); font: 600 15px var(--display); cursor: pointer; }
.j-notmixed.on { border-style: solid; border-color: var(--vc); color: var(--text); }
.j-date { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #d7d4cc; font-size: 15px; flex-wrap: wrap; }
.j-date input { flex: 1; min-width: 160px; }
.amt-big { position: relative; display: flex; align-items: center; }
.amt-big input { width: 100%; min-height: 76px; font: 760 38px var(--display); font-variation-settings: "wdth" 110; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--edge); border-radius: 20px; padding: 0 90px 0 18px; -webkit-appearance: none; appearance: none; }
.amt-u { position: absolute; right: 18px; font: 650 18px var(--display); color: var(--muted); pointer-events: none; }
.j-syr { margin-top: 14px; color: var(--muted); font-size: 14px; }
.j-syr summary { cursor: pointer; list-style: none; }
.j-syr summary::-webkit-details-marker { display: none; }
.j-syr summary b { color: var(--text); }
.chips.rep { margin-bottom: 10px; }
.f-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #d7d4cc; margin: 6px 0 12px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--edge); background: var(--glass); border-radius: 999px; padding: 0 6px 0 4px; }
.time-chip input { min-height: 46px; background: none; border: 0; color: var(--text); font: 650 16px var(--display); padding: 0 8px; }
.time-chip button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--glass-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.time-chip button .ic { width: 14px; height: 14px; }
.time-add { min-height: 48px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.28); background: none; color: var(--muted); padding: 0 16px; font: 600 14.5px var(--display); cursor: pointer; }
.j-more { margin-top: 18px; border: 1px solid var(--edge); border-radius: 16px; padding: 0 14px; background: var(--glass); }
.j-more summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15px; color: #d7d4cc; list-style: none; }
.j-more summary::-webkit-details-marker { display: none; }
.j-more summary::after { content: "+"; float: right; color: var(--muted); }
.j-more[open] summary::after { content: "–"; }
.j-more[open] { padding-bottom: 14px; display: grid; gap: 12px; }
.j-rem { margin-top: 14px; border: 1px solid var(--edge) !important; border-radius: 16px; padding: 12px 14px !important; background: var(--glass); cursor: pointer; }
.j-next { margin-top: 14px; border: 1px solid var(--edge); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; }
.j-next ul { list-style: none; margin: 4px 0 8px; padding: 0; }
.j-next li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--edge); }
.j-next li:last-child { border-bottom: 0; }
.j-pd { margin-top: 18px; }
.j-foot { position: sticky; bottom: 0; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(6,7,8,0), #060708 26%); display: grid; gap: 10px; margin-top: auto; }
.j-go { --bg: var(--vc); --fg: #000; }
.j-skip { justify-self: center; color: var(--muted); font-weight: 500; padding: 6px; }
.j-done { text-align: center; padding-top: 18px; display: grid; gap: 6px; justify-items: center; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.jd-glass { position: relative; width: 170px; height: 210px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--vc) 28%, transparent), transparent 70%); margin-bottom: 6px; }
.jd-check { position: absolute; right: 26px; bottom: 30px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #04120a; box-shadow: 0 0 0 5px #060708; animation: pop .5s .25s both cubic-bezier(.2,1.4,.4,1); }
.jd-check .ic { stroke-width: 3; }
.jd-lines { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.jd-lines li { display: flex; gap: 12px; align-items: center; background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.jd-lines .ic { color: var(--vc); }
.jd-name { width: 100%; text-align: left; margin-bottom: 8px; }
.jd-name input { min-height: 50px; }
.j-cta { width: 100%; display: grid; gap: 10px; text-align: left; background: rgba(34,211,230,.07); border: 1px solid rgba(34,211,230,.3); border-radius: 18px; padding: 14px; margin-bottom: 4px; font-size: 14.5px; }
.j-done > .btn { width: 100%; }

.lab-toast { position: fixed; left: 50%; bottom: calc(var(--lab-tab-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 95; background: var(--text); color: #000; border-radius: 16px; padding: 12px 14px; font: 600 15px/1.35 var(--display); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); box-shadow: 0 10px 40px -10px rgba(0,0,0,.8); transition: opacity .2s, transform .2s; }
.lab-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lab-toast button { background: none; border: 0; color: #006b78; font: 700 15px var(--display); text-decoration: underline; cursor: pointer; padding: 4px; }
.lab-toast .linkish { color: #006b78; }
@media (prefers-reduced-motion: reduce) { .lab-sheet, .lab-scrim, .lab-toast, .ring circle { transition: none; } .j-body.fwd, .j-body.bwd, .vial-svg .liq.rise, .vial-svg.pop, .jd-check, .ring.bump { animation: none; } }

/* what's left (Nov 6, 2026): the amount, mL, draws, days, the day to mix the next one */
.he-left { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.he-left b { color: var(--text); }
.he-bar, .t-bar, .sc-bar { position: relative; display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.he-bar { width: 64px; flex: none; }
.he-bar i, .t-bar i, .sc-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--vc); }
.t-bar { width: 70%; margin: -2px auto 8px; height: 5px; }
.supply { --vc: var(--cyan); background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--vc) 12%, transparent), transparent 60%), var(--glass); border: 1px solid color-mix(in srgb, var(--vc) 35%, transparent); border-radius: 22px; padding: 16px; display: grid; gap: 12px; }
.supply.is-low { border-color: rgba(255,163,26,.55); }
.sc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sc-big { font: 600 16px var(--display); color: var(--muted); }
.sc-big b { font: 780 38px/1 var(--display); font-variation-settings: "wdth" 112; color: var(--white); letter-spacing: -.02em; margin-right: 4px; }
.sc-of { color: var(--muted); font-size: 14px; }
.sc-bar { height: 10px; border-radius: 5px; }
.sc-parts { color: var(--muted); font-size: 13.5px; }
.sc-parts b { color: var(--text); }
.sc-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-cells > div { background: rgba(0,0,0,.28); border: 1px solid var(--edge); border-radius: 14px; padding: 10px; display: grid; gap: 3px; align-content: start; }
.sc-cells b { font: 760 24px/1.05 var(--display); font-variation-settings: "wdth" 108; }
.sc-cells b small { font-size: 13px; color: var(--muted); font-weight: 600; }
.sc-cells span { color: var(--muted); font-size: 12px; line-height: 1.3; }
.sc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-lines li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #d7d4cc; }
.sc-lines .ic { color: var(--vc); margin-top: 1px; }
.sc-lines b { color: var(--text); }
.sc-fine { color: var(--faint); font-size: 12.5px; }
.sc-fine .linkish { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.lab-chips button em { font-style: normal; opacity: .6; margin-left: 4px; font-weight: 500; }
.notes-priv { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; margin: 0 0 4px; }
.notes-priv .ic { width: 15px; height: 15px; }
.ll-note button { border-left-style: dashed !important; }
.ll-note .ll-d .ic { width: 16px; height: 16px; color: var(--muted); }
.n-line { font-family: var(--read); font-size: 15.5px !important; color: #e6e3dc !important; line-height: 1.4; }
.n-line b { color: var(--cyan); font-family: var(--display); font-size: 13.5px; }
.nf-tags { margin-top: 8px; }
.nf-tags button { min-height: 36px; font-size: 13.5px; color: var(--muted); }
.nf-tags button.on { background: var(--glass-2); color: var(--cyan); border-color: rgba(34,211,230,.4); }
.lab-h2 .linkish.h2-r { color: var(--cyan); font-size: 14px; font-weight: 600; }

/* The My Lab terms box (Nov 6, 2026): required before any sign-in; the Google button sits under a cover until it's ticked. */
.check.terms { margin: 6px 0 4px; background: rgba(255,255,255,.035); border: 1px solid var(--edge); border-radius: 14px; padding: 12px; font-size: 14px; line-height: 1.45; }
.check.terms a { color: var(--cyan); }
.check.terms:has(input:checked) { border-color: rgba(34,211,230,.45); background: rgba(34,211,230,.06); }
.check.terms.nudge { border-color: #ff8a80; animation: lab-nudge .38s; }
@keyframes lab-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
#si-terms-err, #tm-terms-err { margin: 2px 0 8px; font-size: 14px; }
.si-google { position: relative; }
.si-google.gate > * { opacity: .38; filter: grayscale(1); }
.si-google.gate::after { content: ""; position: absolute; inset: 0; cursor: pointer; z-index: 2; }
#tm-go { margin-top: 8px; }

/* Learn: members' reads */
.lr-list { display: grid; gap: 10px; }
.lr-row { display: grid; gap: 5px; width: 100%; text-align: left; background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--edge); border-radius: 18px; padding: 14px 16px; color: var(--text); font: inherit; cursor: pointer; margin: 0 0 10px; }
.lr-list .lr-row { margin: 0; }
.lr-row:hover { border-color: rgba(255,255,255,.18); }
.lr-row b { font: 700 17px/1.25 var(--display); }
.lr-k { color: var(--cyan); font: 650 11.5px/1.2 var(--display); letter-spacing: .07em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.lr-lock { margin-left: auto; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 600; }
.lr-lock .ic { width: 13px; height: 13px; }
.lr-t { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.learn-card { display: flex; gap: 12px; align-items: center; }
.learn-card > span:nth-child(2) { flex: 1; display: grid; gap: 3px; }
.lc-i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(34,211,230,.12); color: var(--cyan); flex: none; }
.learn-card > .ic { color: var(--muted); }
.lread { padding-top: 4px; }
.lread > h1 { font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.3rem); margin: 8px 0 16px; line-height: 1.12; }
.lr-body { font-size: 16.5px; line-height: 1.62; color: #e4e1d9; }
.lr-body p, .lr-body ul { margin: 0 0 14px; }
.lr-body ul { padding-left: 1.15em; }
.lr-body li { margin: 7px 0; }
.lr-body h3 { font-size: 1.08rem; margin: 24px 0 8px; color: var(--text); }
.lr-body .lr-note { color: var(--muted); font-size: 14px; border-top: 1px solid var(--edge); padding-top: 14px; margin-top: 24px; }
.lr-body .lr-more { font-size: 14.5px; background: var(--glass); border: 1px solid var(--edge); border-radius: 16px; padding: 12px 14px; }
.lr-more a { color: var(--cyan); font-weight: 600; }
.lr-sh { font-size: 1rem; margin: 22px 0 8px; color: #cfccc4; }
.lr-src { padding-left: 1.2em; font-size: 13.5px; color: var(--muted); display: grid; gap: 8px; margin: 0 0 8px; }
.lr-src a { color: #cfccc4; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); word-break: break-word; }
.lr-tease { font-size: 17px; line-height: 1.5; color: #d7d4cc; margin: 0 0 16px; }
.lr-gate { display: grid; gap: 12px; background: rgba(34,211,230,.07); border: 1px solid rgba(34,211,230,.3); border-radius: 18px; padding: 16px; font-size: 15px; }
.lr-gate > .ic { color: var(--cyan); width: 24px; height: 24px; }
