/* Jevity AI Bloodwork Reader — upload a lab report, AI reads it into the twin. */
:root { --lb-teal: #2dd4a7; --lb-teal-soft: #7cf0cf; --lb-ink: #f3f6f5; --lb-soft: #a9b3b8; --lb-faint: #6a747a;
  --lb-line: rgba(255,255,255,.09); --lb-card: rgba(255,255,255,.03);
  --lb-optimal: #2dd4a7; --lb-normal: #f4b64e; --lb-watch: #f0806a; }

.lab { color: var(--lb-ink); font-family: "Inter", system-ui, sans-serif; padding-bottom: 5rem; }
.lab-hero { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 2rem) 1rem; text-align: center; }
.lab-kicker { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lb-teal); font-weight: 600; }
.lab-hero h1 { font-family: "Fraunces", Georgia, serif; font-weight: 400; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(2.3rem, 6.5vw, 4rem); margin: .7rem 0 1rem; }
.lab-hero h1 em { font-style: italic; color: var(--lb-teal); }
.lab-sub { color: var(--lb-soft); max-width: 52ch; margin: 0 auto 2rem; font-size: 1.02rem; line-height: 1.7; }

.lab-drop { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: clamp(2rem, 6vw, 3.4rem); border: 1.5px dashed rgba(45,212,167,.4); border-radius: 24px; background: radial-gradient(120% 120% at 50% 0%, rgba(45,212,167,.07), rgba(255,255,255,.015)); cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.lab-drop:hover, .lab-drop.drag { border-color: var(--lb-teal); background: radial-gradient(120% 120% at 50% 0%, rgba(45,212,167,.14), rgba(255,255,255,.02)); transform: translateY(-2px); }
.lab-drop__icon { font-size: 2.4rem; }
.lab-drop__title { font-size: 1.1rem; font-weight: 500; }
.lab-drop__title b { color: var(--lb-teal-soft); }
.lab-drop__hint { font-size: .84rem; color: var(--lb-faint); }
.lab-privacy { font-size: .78rem; color: var(--lb-faint); max-width: 48ch; margin: 1.1rem auto 0; line-height: 1.6; }

.lab-stage { max-width: 820px; margin: 1.5rem auto 0; padding: 0 clamp(1.2rem, 5vw, 2rem); }
.lab-loading { text-align: center; padding: 3rem 1rem; color: var(--lb-soft); }
.lab-spin { display: inline-block; width: 30px; height: 30px; border: 3px solid rgba(45,212,167,.25); border-top-color: var(--lb-teal); border-radius: 50%; animation: lbspin .8s linear infinite; margin-bottom: 1rem; }
@keyframes lbspin { to { transform: rotate(360deg); } }

.lab-result__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.lab-result h2 { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.lab-date { font-size: .82rem; color: var(--lb-faint); display: inline-flex; align-items: center; gap: .5rem; }
.lab-date input { background: var(--lb-card); border: 1px solid var(--lb-line); color: var(--lb-ink); border-radius: 10px; padding: .4rem .6rem; font: inherit; color-scheme: dark; }
.lab-result__count { color: var(--lb-soft); font-size: .9rem; margin-bottom: 1.2rem; }

.lab-markers { display: grid; gap: .6rem; }
.lab-marker { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; background: var(--lb-card); border: 1px solid var(--lb-line); border-left-width: 3px; border-radius: 14px; padding: .9rem 1.1rem; animation: lbIn .4s cubic-bezier(.16,.84,.34,1) both; }
.lab-marker.s-optimal { border-left-color: var(--lb-optimal); } .lab-marker.s-normal { border-left-color: var(--lb-normal); } .lab-marker.s-watch { border-left-color: var(--lb-watch); } .lab-marker.s-unmapped { border-left-color: var(--lb-faint); }
@keyframes lbIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lab-marker__l .n { font-weight: 600; }
.lab-marker__l .r { font-size: .78rem; color: var(--lb-faint); }
.lab-marker__r { text-align: right; display: flex; align-items: baseline; gap: .6rem; }
.lab-marker__val { font-family: "Fraunces", serif; font-size: 1.3rem; }
.lab-marker__val small { font-family: "Inter"; font-size: .8rem; color: var(--lb-faint); }
.lab-pill { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill-optimal { background: rgba(45,212,167,.14); color: var(--lb-teal-soft); } .pill-normal { background: rgba(244,182,78,.14); color: var(--lb-normal); } .pill-watch { background: rgba(240,128,106,.14); color: var(--lb-watch); }

.lab-extra { margin-top: 1rem; }
.lab-extra h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lb-faint); margin-bottom: .5rem; }
.lab-extra__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.lab-extra__chips span { font-size: .8rem; color: var(--lb-soft); border: 1px solid var(--lb-line); padding: .3rem .6rem; border-radius: 999px; }

.lab-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.lab-cta { background: var(--lb-teal); color: #04130d; border: none; font: 600 1rem "Inter"; padding: .9rem 1.8rem; border-radius: 999px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.lab-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(45,212,167,.6); }
.lab-cta:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.lab-ghost { color: var(--lb-soft); text-decoration: none; font-size: .92rem; border-bottom: 1px solid transparent; }
.lab-ghost:hover { color: var(--lb-ink); border-color: var(--lb-line); }
.lab-note { margin-top: 1rem; font-size: .88rem; color: var(--lb-teal-soft); min-height: 1em; }
.lab-disclaim { margin-top: 1.4rem; font-size: .74rem; color: var(--lb-faint); line-height: 1.6; }
.lab-empty { text-align: center; padding: 2.5rem 1rem; color: var(--lb-soft); }

@media (max-width: 520px) { .lab-marker__val { font-size: 1.1rem; } }
