/* ---------- Carrying an answer into the real world: the Lab Shot card's states (js/labshot.js) and the partner desk
   (#/lab-partners, js/views/labpartners.js). A calm, serious instrument with a warm heart. ---------- */

/* ===== Lab Shot: who stands behind the test, the pledge goal, and the result coming home ===== */
.lb-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lb-people li { position: relative; padding: 14px 16px 14px 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 0.94rem; line-height: 1.55; color: var(--ink-2); }
.lb-people li::before { content: "✓"; position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 0.8rem/1 var(--sans); color: #fff; background: var(--pine); }
.lb-people li + li::before { content: "$"; background: var(--brass); }
.lb-people b { display: block; margin-bottom: 2px; font: 600 0.98rem/1.35 var(--serif); color: var(--ink); }

.lb-goal { display: grid; gap: 8px; }
.lb-goal-bar { position: relative; height: 14px; border-radius: 999px; background: #efe7d2; overflow: hidden; box-shadow: inset 0 1px 2px rgba(80, 55, 10, 0.12); }
.lb-goal-bar i { display: block; height: 100%; border-radius: 999px; background: var(--brass); transition: width 1.2s var(--ease); }
.lb-goal p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.lb-goal p b { font: 600 1.35rem/1 var(--serif); color: var(--brass-ink); }

/* ready to fund and fully pledged: the card warms up */
.lb.lb-ready { border-color: #d9c07c; box-shadow: 0 2px 4px rgba(80, 55, 10, 0.06), 0 24px 54px -20px rgba(116, 83, 15, 0.45); }
.lb.lb-full { border: 2px solid var(--pine); box-shadow: 0 2px 4px rgba(11, 74, 55, 0.06), 0 24px 54px -20px rgba(11, 74, 55, 0.45); }
.lb.lb-full .lb-goal-bar i { background: var(--pine); }
.lb.lb-full .lb-kicker { color: #fff; background: var(--pine); }

/* the result is home */
.lb-result { display: grid; gap: 12px; padding: clamp(18px, 3vw, 26px); border-radius: 18px; }
.lb-result p { margin: 0; line-height: 1.6; }
.lb-result-mark { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.lb-result-mark b { display: block; font: 600 1.35rem/1.2 var(--serif); }
.lb-result-mark small { display: block; margin-top: 3px; font-size: 0.92rem; line-height: 1.45; }
.lb-honest-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font: 700 1.4rem/1 var(--serif); }

/* confirmed: the biggest moment on the site, a lab confirming a family's answer */
.lb.lb-confirmed { padding: 0; overflow: hidden; border: 2px solid var(--pine); box-shadow: 0 2px 4px rgba(11, 74, 55, 0.08), 0 30px 70px -24px rgba(11, 74, 55, 0.55); }
.lb.lb-confirmed > * { margin-inline: clamp(18px, 3vw, 30px); }
.lb.lb-confirmed > .lb-head { margin: 0; padding: clamp(22px, 3.5vw, 34px) clamp(18px, 3vw, 30px) 6px; background: var(--pine-deep); color: #fff; }
.lb.lb-confirmed > .lb-head h2 { color: #fff; }
.lb.lb-confirmed > .lb-head p:not(.lb-kicker) { color: #d7e9e0; font-size: 1.02rem; }
.lb.lb-confirmed > .lb-head .lb-icon { background: #c49a3a; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08); }
.lb.lb-confirmed .lb-kicker { color: var(--pine-deep); background: #e9d6a0; }
.lb.lb-confirmed .lb-kicker i { background: var(--pine-deep); }
.lb.lb-confirmed > .lb-result { margin: 0; padding: 4px clamp(18px, 3vw, 30px) clamp(20px, 3vw, 30px); border-radius: 0; background: var(--pine-deep); color: #eaf4ee; }
.lb.lb-confirmed > .lb-result .small { color: #b9d8c8; }
.lb.lb-confirmed .lb-result-mark { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(233, 214, 160, 0.4); }
.lb.lb-confirmed .lb-result-mark b { color: #f3e3b4; font-size: 1.6rem; }
.lb.lb-confirmed .lb-result-mark small { color: #d7e9e0; }
.lb.lb-confirmed .lb-result-seal .sm { animation: lbSeal 0.9s var(--ease) both; }
.lb.lb-confirmed > :last-child { margin-bottom: clamp(18px, 3vw, 28px); }
@keyframes lbSeal { from { transform: scale(0.6) rotate(-25deg); } to { transform: none; } }

/* not confirmed: honest and dignified, never a failure */
.lb-result.not_confirmed { background: #f5f7f8; border: 1px solid #d8dee3; border-left: 5px solid #6f7d91; color: var(--ink-2); }
.lb-result.not_confirmed .lb-honest-mark { color: #4f5a63; background: #fff; border: 2px solid #8f9aa3; }
.lb-result.not_confirmed .lb-result-mark b { color: #3f4b5c; }
/* not decided yet: calm and open */
.lb-result.inconclusive { background: var(--cream, #faf6ec); border: 1px solid #ece3cd; border-left: 5px solid var(--brass); color: var(--ink-2); }
.lb-result.inconclusive .lb-honest-mark { color: var(--brass-ink); background: #fff; border: 2px dashed #d9bd7b; }
.lb-result.inconclusive .lb-result-mark b { color: var(--brass-ink); }
@media (max-width: 640px) {
  .lb-people li { padding: 12px 12px 12px 46px; }
  .lb-people li::before { left: 12px; top: 12px; width: 24px; height: 24px; }
  .lb-result-mark { gap: 12px; }
  .lb-result-seal .sm { width: 60px; height: 60px; }
  .lb-honest-mark { width: 46px; height: 46px; }
  .lb.lb-confirmed .lb-result-mark b { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .lb.lb-confirmed .lb-result-seal .sm { animation: none; } .lb-goal-bar i { transition: none; } }

/* ===== #/lab-partners: the partner desk ===== */
.lp-hero { position: relative; overflow: hidden; background: var(--pine-deep); color: #fff; }
.lp-hero::after { content: ""; position: absolute; right: -140px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025); pointer-events: none; }
.lp-hero .wrap { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; padding-block: clamp(44px, 6vw, 84px); }
.lp-hero .lp-kicker { margin: 0; font: 600 0.95rem/1.3 var(--sans); color: #e9d6a0; }
.lp-hero h1 { margin: 0; max-width: 20ch; font: 600 clamp(2rem, 4.4vw, 3.3rem)/1.1 var(--serif); color: #fff; text-wrap: balance; }
.lp-lede { margin: 0; max-width: 64ch; font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.7; color: #d7e9e0; }
.lp-hero .tb.tb-compact { background: rgba(255, 255, 255, 0.08); border-color: rgba(233, 214, 160, 0.35); color: #f2ead2; }

.lp-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: lp; }
.lp-steps li { position: relative; display: grid; align-content: start; gap: 12px; padding: 20px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); counter-increment: lp; }
.lp-steps li::after { content: counter(lp); position: absolute; top: 16px; right: 16px; font: 600 0.8rem/1 var(--sans); color: var(--brass-ink); }
.lp-step-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--pine); background: var(--pine-wash); border: 1px solid #d6e9de; }
.lp-steps b { display: block; font: 600 1.05rem/1.3 var(--serif); color: var(--ink); }
.lp-steps p { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }

.lp-panel { display: grid; gap: 18px; padding: clamp(20px, 3.4vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(20, 40, 59, 0.04), 0 26px 60px -30px rgba(20, 40, 59, 0.35); }
.lp-panel + p { margin-top: 18px; }
.lp-panel[hidden], .lp-gate[hidden] { display: none; }
/* the gate: one key, kept only if asked */
.lp-gate { display: grid; gap: 14px; max-width: 520px; }
.lp-field { display: grid; gap: 6px; min-width: 0; }
.lp-field > span { font: 600 0.86rem/1.3 var(--sans); color: var(--ink); }
.lp-field > small { font-size: 0.8rem; line-height: 1.4; color: var(--sub); }
.lp-field input, .lp-field select, .lp-field textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font: 400 0.98rem/1.4 var(--sans); color: var(--ink); }
.lp-field textarea { resize: vertical; min-height: 84px; }
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus { outline: 3px solid rgba(18, 107, 80, 0.22); border-color: var(--pine); }
.lp-gate input[type="password"] { font-family: var(--mono, ui-monospace, monospace); letter-spacing: 0.04em; }
.lp-remember { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; }
.lp-remember input { width: 18px; height: 18px; accent-color: var(--pine); }
.lp-gate .btn-primary { justify-self: start; min-height: 48px; padding: 12px 24px; }

/* the desk */
.lp-desk { display: grid; gap: 18px; }
.lp-desk:empty { display: none; }
.lp-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.lp-who .lp-kicker { margin: 0 0 4px; font: 600 0.84rem/1.3 var(--sans); color: var(--pine); }
.lp-who h2 { margin: 0; font: 600 1.6rem/1.2 var(--serif); color: var(--ink); }
.lp-who .small { margin: 2px 0 0; }
.lp-shots { display: grid; gap: 16px; }
.lp-shot { display: grid; gap: 14px; padding: clamp(18px, 2.6vw, 26px); border-radius: 20px; background: var(--paper, #fafaf7); border: 1px solid var(--line); }
.lp-shot-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.lp-shot-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--brass); }
.lp-shot-head .lp-kicker { display: inline-block; margin: 0 0 4px; padding: 2px 10px; border-radius: 999px; font: 600 0.76rem/1.4 var(--sans); color: var(--brass-ink); background: var(--brass-soft); }
.lp-shot-head .lp-kicker::first-letter { text-transform: uppercase; }
.lp-shot-head h3 { margin: 0; font: 600 1.12rem/1.3 var(--serif); }
.lp-design { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lp-design > b { font: 600 1.02rem/1.35 var(--serif); color: var(--ink); }
.lp-design > p { margin: 0; }
.lp-ok { color: var(--pine-deep); font-weight: 600; }
.lp-act { margin-top: 4px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.lp-act > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; list-style: none; font: 600 0.95rem/1.3 var(--sans); color: var(--pine-deep); }
.lp-act > summary::-webkit-details-marker { display: none; }
.lp-act > summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--pine); font: 600 1rem/1 var(--sans); }
.lp-act[open] > summary::before { content: "–"; }
/* the forms: grouped, generous, and the lock note given real weight */
.lp-form { display: grid; gap: 16px; padding-top: 8px; }
.lp-form > p.small.sub:first-child { position: relative; margin: 0; padding: 14px 16px 14px 50px; border-radius: 14px; background: var(--brass-soft); border: 1px solid #ead9b0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
/* a small padlock, drawn: the body and the shackle */
.lp-form > p.small.sub:first-child::before { content: ""; position: absolute; left: 18px; top: 24px; width: 18px; height: 14px; border-radius: 3px; background: var(--brass); }
.lp-form > p.small.sub:first-child::after { content: ""; position: absolute; left: 21px; top: 14px; width: 12px; height: 13px; box-sizing: border-box; border: 2.5px solid var(--brass); border-bottom: 0; border-radius: 7px 7px 0 0; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.lp-arms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-arm { display: grid; gap: 12px; margin: 0; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper, #fafaf7); min-width: 0; }
.lp-arm legend { padding: 0 6px; font: 600 0.92rem/1.3 var(--serif); color: var(--pine-deep); }
.lp-form > .btn-primary { justify-self: start; min-height: 48px; padding: 12px 24px; }
/* the signed receipt: a small certificate, not a status line */
.lp-form > p[aria-live]:not(:empty) { margin: 0; padding: 14px 16px 14px 54px; position: relative; border-radius: 14px; background: var(--pine-wash); border: 1px solid #cfe5d8; font: 500 0.95rem/1.5 var(--sans); color: var(--pine-deep); }
.lp-form > p[aria-live]:not(:empty)::before { content: "✓"; position: absolute; left: 14px; top: 50%; margin-top: -14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--pine); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brass); font: 700 0.85rem/1 var(--sans); }
.lp-result { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--pine-deep); color: #eaf4ee; line-height: 1.55; }
.lp-result b { color: #f3e3b4; }
@media (max-width: 980px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lp-steps li { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px; }
  .lp-arms { grid-template-columns: minmax(0, 1fr); }
  .lp-field input, .lp-field select, .lp-field textarea { font-size: 16px; }
  .lp-gate .btn-primary, .lp-form > .btn-primary { width: 100%; justify-content: center; }
  .lp-panel { border-radius: 20px; }
}
/* confirmed: header and result are one continuous dark band */
.lb.lb-confirmed { gap: 0; }
.lb.lb-confirmed > * { margin-top: 18px; }
.lb.lb-confirmed > .lb-head, .lb.lb-confirmed > .lb-result { margin-top: 0; }
.lb.lb-confirmed > .lb-result + * { margin-top: 22px; }

/* the signed receipt, kept in view after the desk refreshes: a small certificate */
.lp-receipt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--pine-wash); border: 1px solid #cfe5d8; border-left: 5px solid var(--pine); animation: lpIn 0.5s var(--ease) both; }
.lp-receipt b { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--pine-deep); }
.lp-receipt p { margin: 3px 0 0; font-size: 0.94rem; color: var(--ink-2); }
.lp-receipt code { font-size: 0.86rem; color: var(--pine-deep); }
@keyframes lpIn { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-receipt { animation: none; } }
/* phones: fewer nested margins, so the forms keep a comfortable width */
@media (max-width: 640px) {
  .lp-panel { padding: 16px 12px; }
  .lp-shot { padding: 14px 10px; border-radius: 16px; }
  .lp-design { padding: 14px 12px; }
  .lp-form > p.small.sub:first-child { padding: 12px 12px 12px 42px; }
  .lp-form > p.small.sub:first-child::before { left: 13px; }
  .lp-form > p.small.sub:first-child::after { left: 16px; }
  .lp-arm { padding: 12px; }
  .lp-receipt { padding: 14px; gap: 12px; }
}

/* ===== #/learned: "What we learned together", the month as a warm community report ===== */
.lw-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(90% 120% at 100% 0%, #fbe9c2 0%, rgba(251, 233, 194, 0) 60%), linear-gradient(180deg, var(--cream), #fbf8f1); border-bottom: 1px solid #efe3c6; }
.lw-hero::before { content: ""; position: absolute; z-index: -1; right: -150px; top: -190px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(169, 123, 31, 0.18); box-shadow: 0 0 0 70px rgba(169, 123, 31, 0.045), 0 0 0 150px rgba(169, 123, 31, 0.03); pointer-events: none; }
.lw-hero-in { display: grid; gap: 18px; justify-items: start; padding-block: clamp(44px, 6vw, 86px) clamp(104px, 10vw, 138px); }
.lw-kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 12px; border-radius: 999px; background: #fff; border: 1px solid #ead9b0; font: 600 0.9rem/1.2 var(--sans); color: var(--brass-ink); box-shadow: 0 1px 2px rgba(116, 83, 15, 0.06); }
.lw-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(169, 123, 31, 0.16); }
.lw-hero h1 { max-width: 15ch; font-size: clamp(2.45rem, calc(4.6vw + 1.1rem), 4.4rem); line-height: 1.03; letter-spacing: -0.018em; }
.lw-lede { margin: 0; max-width: 60ch; font-size: clamp(1.04rem, 1.45vw, 1.2rem); line-height: 1.7; color: var(--ink-2); }

/* the big numbers sit up on the cover like a report's first page */
.lw-sec { padding-block: clamp(26px, 3.4vw, 46px); }
.lw-tiles-sec { position: relative; z-index: 2; margin-top: calc(clamp(104px, 10vw, 138px) * -1 + 34px); padding-top: 0; }
.lw-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lw-tile { position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px; min-width: 0; padding: 22px 24px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(20, 40, 59, 0.04), 0 24px 54px -32px rgba(20, 40, 59, 0.38); }
.lw-tile-ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 13px; color: var(--pine); background: var(--pine-wash); border: 1px solid #d6e9de; }
.lw-tile > b { font: 600 clamp(2.5rem, 4.2vw, 3.5rem)/1 var(--serif); color: var(--pine-deep); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.lw-tile > span:last-child { font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.lw-tile:first-child { background: radial-gradient(120% 140% at 100% 0%, #13684d 0%, rgba(19, 104, 77, 0) 60%), var(--pine-deep); border-color: transparent; color: #fff; }
.lw-tile:first-child::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.025); pointer-events: none; }
.lw-tile:first-child .lw-tile-ic { color: #e9d6a0; background: rgba(255, 255, 255, 0.08); border-color: rgba(233, 214, 160, 0.35); }
.lw-tile:first-child > b { color: #fff; font-size: clamp(3.4rem, 7vw, 5.6rem); }
.lw-tile:first-child > span:last-child { position: relative; z-index: 1; color: #d7e9e0; font: 400 clamp(1.06rem, 1.5vw, 1.26rem)/1.5 var(--serif-text); max-width: 40ch; }
@media (min-width: 641px) {
  .lw-tile:first-child { grid-column: span 2; }
  .lw-tile:only-child { grid-column: 1 / -1; }
  /* no tile left alone at the end of a row */
  .lw-tile:last-child:nth-child(3n + 1):not(:first-child) { grid-column: span 2; }
  .lw-tile:last-child:nth-child(3n):not(:first-child) { grid-column: 1 / -1; }
  .lw-tile:last-child:nth-child(3n + 1):not(:first-child), .lw-tile:last-child:nth-child(3n):not(:first-child) { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 18px; }
  .lw-tile:last-child:nth-child(3n + 1):not(:first-child) .lw-tile-ic, .lw-tile:last-child:nth-child(3n):not(:first-child) .lw-tile-ic { margin: 0; }
}

/* section heads: a short brass rule, then the words */
.lw-sec > h2::before { content: ""; display: block; width: 38px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--brass); }
.lw-sec > h2 { margin-bottom: 18px; }
.lw-sec > h2:has(+ .lw-sub) { margin-bottom: 8px; }
.lw-sub { margin: 0 0 22px; max-width: 62ch; font-size: 1.02rem; line-height: 1.6; color: var(--sub); }

/* lab results, predictions and modules as calm cards */
.lw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.lw-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 14px; row-gap: 4px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 40, 59, 0.04); }
.lw-list > li > :not(.lw-li-ic) { grid-column: 2; min-width: 0; }
.lw-li-ic { grid-row: span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--pine); background: var(--pine-wash); border: 1px solid #d6e9de; }
.lw-list > li > a { color: var(--ink); text-decoration: none; }
.lw-list > li > a:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.lw-list > li > a b, .lw-pred > a { font: 600 1.12rem/1.35 var(--serif); color: var(--ink); }
.lw-list > li > p { margin: 2px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.lw-list > li > small { display: block; font-size: 0.88rem; line-height: 1.45; color: var(--sub); }
.lw-list > li > small a { color: var(--pine); font-weight: 600; }
.lw-pred { grid-template-columns: minmax(0, 1fr) !important; row-gap: 8px !important; border-top: 4px solid var(--pine) !important; }
.lw-pred > * { grid-column: 1 !important; }
.lw-pred.refuted { border-top-color: #9aabb8 !important; }
.lw-verdict { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 600 0.8rem/1.3 var(--sans); background: var(--pine-soft); color: var(--pine-deep); }
.lw-verdict::before { content: "✓"; font-weight: 700; }
.lw-pred.refuted .lw-verdict { background: #edf1f4; color: #3b4f60; }
.lw-pred.refuted .lw-verdict::before { content: "○"; font-weight: 400; }

/* how we know it's working: one deep pine panel */
.lw-measures { list-style: none; margin: 0; padding: clamp(24px, 3.6vw, 42px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 26px 40px; border-radius: 26px; color: #fff; background: radial-gradient(100% 140% at 0% 0%, #13684d 0%, rgba(19, 104, 77, 0) 55%), var(--pine-deep); box-shadow: 0 30px 60px -36px rgba(11, 74, 55, 0.6); }
.lw-measures > li { display: grid; align-content: start; gap: 8px; min-width: 0; }
.lw-measures .lw-tile-ic { color: #e9d6a0; background: rgba(255, 255, 255, 0.08); border-color: rgba(233, 214, 160, 0.35); margin-bottom: 6px; }
.lw-measures b { font: 600 clamp(2.1rem, 3.8vw, 3rem)/1.05 var(--serif); color: #fff; letter-spacing: -0.015em; }
.lw-measures > li > span:last-child { max-width: 46ch; font-size: 1rem; line-height: 1.6; color: #d7e9e0; }

/* thank you: given its own warm page, every name with the same dignity */
.lw-thanks { position: relative; isolation: isolate; display: grid; justify-items: center; text-align: center; margin-block: clamp(14px, 2vw, 26px); padding: clamp(48px, 6vw, 76px) clamp(14px, 3vw, 40px); }
.lw-thanks::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 30px; background: radial-gradient(70% 90% at 50% 0%, #fdf1d6 0%, rgba(253, 241, 214, 0) 70%), var(--cream); border: 1px solid #ecdcb5; }
.lw-thanks > h2::before { margin-inline: auto; }
.lw-thanks > h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
.lw-thanks .lw-sub { margin-inline: auto; color: var(--ink-2); }
.lw-thanks-ic { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%; background: #fff; border: 1px solid #ead9b0; box-shadow: 0 8px 20px -10px rgba(116, 83, 15, 0.35); }
.lw-thanks-ic svg { fill: var(--brass); }
.lw-thanks > h2::before { display: none; }
.lw-people { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 920px; }
.lw-people > li { position: relative; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 12px; padding: 9px 20px 9px 9px; border-radius: 999px; background: #fff; border: 1px solid #ecdcb5; box-shadow: 0 1px 2px rgba(116, 83, 15, 0.06), 0 10px 24px -18px rgba(116, 83, 15, 0.45); text-align: left; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.lw-people > li:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(116, 83, 15, 0.06), 0 16px 30px -18px rgba(116, 83, 15, 0.5); }
.lw-av { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 1.2rem/1 var(--serif); color: var(--pine-deep); background: var(--pine-soft); }
.lw-people > li:nth-child(3n + 2) .lw-av { color: var(--brass-ink); background: var(--brass-soft); }
.lw-people > li:nth-child(3n + 3) .lw-av { color: #2f4a66; background: #e7eef6; }
.lw-people a { font: 600 1.06rem/1.25 var(--serif); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.lw-people a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lw-people a:focus-visible { outline: none; }
.lw-people > li:has(a:focus-visible) { outline: 3px solid rgba(18, 107, 80, 0.3); outline-offset: 2px; }
.lw-people small { font-size: 0.82rem; color: var(--sub); }

/* one card or one measure alone: a calm full-width row instead of a lonely box */
.lw-list > li:only-child { grid-column: 1 / -1; max-width: 780px; }
@media (min-width: 641px) {
  .lw-measures:has(> li:only-child) { padding-block: clamp(22px, 3vw, 32px); }
  .lw-measures > li:only-child { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 26px; }
  .lw-measures > li:only-child .lw-tile-ic { margin: 0; width: 48px; height: 48px; }
  .lw-measures > li:only-child > span:last-child { max-width: 52ch; }
}

/* other months */
.lw-months { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; }
.lw-months > span { font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.lw-months a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--pine-deep); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.lw-months a:hover { border-color: var(--pine); }

@media (max-width: 640px) {
  .lw-hero::before { right: -220px; top: -250px; }
  .lw-hero-in { gap: 14px; padding-block: 30px 96px; }
  .lw-tiles-sec { margin-top: -62px; }
  .lw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lw-tile { padding: 16px 16px 18px; border-radius: 18px; gap: 4px; }
  .lw-tile-ic { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 8px; }
  .lw-tile > b { font-size: 2.3rem; }
  .lw-tile > span:last-child { font-size: 0.88rem; line-height: 1.45; }
  .lw-tile:first-child { grid-column: 1 / -1; padding: 20px 20px 22px; }
  .lw-tile:first-child > b { font-size: 3.6rem; }
  .lw-tile:first-child > span:last-child { font-size: 1.06rem; }
  .lw-tile:last-child:nth-child(2n):not(:first-child) { grid-column: 1 / -1; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .lw-tile:last-child:nth-child(2n):not(:first-child) .lw-tile-ic { margin: 0; }
  .lw-list > li { padding: 16px; column-gap: 12px; }
  .lw-li-ic { width: 36px; height: 36px; }
  .lw-measures { border-radius: 22px; gap: 22px; }
  .lw-measures > li + li { padding-top: 22px; border-top: 1px solid rgba(233, 214, 160, 0.18); }
  .lw-thanks > h2 { font-size: 2.3rem !important; }
  .lw-hero h1 { font-size: clamp(2.2rem, 10.4vw, 2.9rem) !important; line-height: 1.06 !important; }
  .lw-people { gap: 10px; }
  .lw-people > li { padding: 7px 16px 7px 7px; column-gap: 10px; }
  .lw-av { width: 40px; height: 40px; font-size: 1.1rem; }
  /* the closest questions swipe sideways, as on the home page */
  .lw-closest .dc-close-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none !important; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .lw-closest .dc-close-grid::-webkit-scrollbar { display: none; }
  .lw-closest .dc-close-grid > * { scroll-snap-align: start; min-width: 0; }
}
@media (max-width: 359px) {
  .lw-tiles { grid-template-columns: minmax(0, 1fr); }
  .lw-tiles .lw-tile:not(:first-child) { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .lw-tiles .lw-tile:not(:first-child) .lw-tile-ic { grid-row: span 2; margin: 2px 0 0; }
  .lw-tiles .lw-tile:not(:first-child) > b { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .lw-people > li { transition: none; } }

/* ===== #/status "The machine, right now": a calm heartbeat monitor for a living machine ===== */
.st-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(90% 140% at 100% 0%, #13684d 0%, rgba(19, 104, 77, 0) 60%), var(--pine-deep); color: #fff; }
.st-hero .wrap { display: grid; gap: 16px; justify-items: start; padding-block: clamp(40px, 6vw, 80px) clamp(92px, 9vw, 120px); }
/* the hero breathes: slow rings spreading from one point, like a pulse */
.st-hero::before, .st-hero::after { content: ""; position: absolute; z-index: -1; right: clamp(-60px, 8vw, 140px); top: 50%; width: 220px; height: 220px; margin-top: -110px; border-radius: 50%; border: 1px solid rgba(143, 224, 186, 0.35); animation: stRing 6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; pointer-events: none; }
.st-hero::after { animation-delay: 3s; }
@keyframes stRing { 0% { transform: scale(0.35); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.st-kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(143, 224, 186, 0.35); font: 700 0.78rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #bfe9d4; }
.st-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fe0a8; box-shadow: 0 0 0 0 rgba(95, 224, 168, 0.6); animation: stBeat 2s ease-out infinite; }
.st-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.3rem, calc(4.2vw + 1rem), 4rem); line-height: 1.05; letter-spacing: -0.015em; }
.st-lede { margin: 0; max-width: 60ch; font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.7; color: #d7e9e0; }
.st-hero .tb.tb-compact { background: rgba(255, 255, 255, 0.08); border-color: rgba(233, 214, 160, 0.35); color: #f2ead2; }

/* the living dot: a heartbeat for each running part */
.st-dot { position: relative; flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--pine-2); box-shadow: 0 0 0 0 rgba(26, 132, 99, 0.45); animation: stBeat 2.4s ease-out infinite; }
@keyframes stBeat { 0% { box-shadow: 0 0 0 0 rgba(26, 132, 99, 0.45); } 70% { box-shadow: 0 0 0 10px rgba(26, 132, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 132, 99, 0); } }
@keyframes stBeatWarm { 0% { box-shadow: 0 0 0 0 rgba(169, 123, 31, 0.4); } 70% { box-shadow: 0 0 0 9px rgba(169, 123, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 123, 31, 0); } }
.st-part.warn .st-dot, .st-sum.warn .st-dot { background: var(--brass); animation: stBeatWarm 3.2s ease-out infinite; }

/* the summary sits up on the hero, like the first line of a chart */
.st-hero + section { position: relative; z-index: 2; margin-top: calc(clamp(92px, 9vw, 120px) * -1 + 28px); padding-top: 0; }
.st-body { display: grid; gap: 18px; }
.st-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); border-radius: 24px; background: #fff; border: 1px solid #cfe5d8; box-shadow: 0 2px 4px rgba(20, 40, 59, 0.04), 0 26px 60px -32px rgba(11, 74, 55, 0.45); }
.st-sum .st-dot { width: 22px; height: 22px; margin: 0 6px; }
.st-sum.ok .st-dot { background: radial-gradient(circle at 35% 30%, #7fe8bd 0, var(--pine-2) 60%); }
.st-sum b { display: block; font: 600 clamp(1.45rem, 2.6vw, 2rem)/1.15 var(--serif); color: var(--pine-deep); }
.st-sum p { margin: 6px 0 0; color: var(--ink-2); }
.st-sum.warn { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #ead9b0; }
.st-sum.warn b { color: var(--brass-ink); }

/* every part as a calm row: its dot, what it is, and when it last finished */
.st-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-part { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 14px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.st-part .st-dot { margin-top: 6px; }
.st-parts > .st-part:nth-child(3n + 2) .st-dot { animation-delay: 0.8s; }
.st-parts > .st-part:nth-child(3n + 3) .st-dot { animation-delay: 1.6s; }
.st-part-txt { display: grid; gap: 2px; min-width: 0; }
.st-part-txt b { font: 600 1.05rem/1.3 var(--serif); color: var(--ink); }
.st-part-txt .small { color: var(--sub); line-height: 1.45; }
.st-part-when { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.st-part-when > span { font: 600 0.82rem/1.2 var(--sans); color: var(--pine-deep); }
.st-part-when > small { font-size: 0.82rem; color: var(--sub); }
.st-part.warn { background: #fffcf4; border-color: #ecdcb5; }
.st-part.warn .st-part-when > span { color: var(--brass-ink); }
.st-part.warn .st-part-when > span::after { content: " · it restarts itself"; font-weight: 400; color: var(--sub); }

/* facts about the machine: three quiet tiles */
.st-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-facts:empty { display: none; }
.st-facts > li { padding: 14px 16px; border-radius: 14px; background: var(--pine-wash); border: 1px solid #d6e9de; color: var(--ink-2); line-height: 1.5; }
.st-facts > li:empty { display: none; }
.st-facts b { font: 600 1.25rem/1 var(--serif); color: var(--pine-deep); }

@media (max-width: 760px) {
  .st-parts, .st-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .st-hero .wrap { padding-block: 30px 92px; }
  .st-hero h1 { font-size: clamp(2.1rem, 10vw, 2.7rem) !important; line-height: 1.06 !important; }
  .st-hero::before, .st-hero::after { right: -70px; top: 30%; }
  .st-hero + section { margin-top: -64px; }
  .st-sum { gap: 14px; border-radius: 20px; }
  .st-sum .st-dot { width: 18px; height: 18px; margin: 0 2px; }
  .st-part { padding: 14px 15px; }
}
@media (prefers-reduced-motion: reduce) { .st-dot, .st-kicker::before, .st-hero::before, .st-hero::after { animation: none; } }

/* ===== Lab Shot: what the Oracle already did, on the server, around the clock ===== */
.lb-now.lb-moves { display: grid; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid #cfe5d8; box-shadow: 0 1px 2px rgba(20, 40, 59, 0.04); }
.lb-now.lb-moves::before { content: none; }
.lb-moves > p { position: relative; margin: 0; padding-left: 38px; line-height: 1.6; color: var(--ink-2); }
.lb-moves > p::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; }
/* done: a pine check, the same "done" mark as the journey's stops */
.lb-moves > p.ok::before, .lb-moves > p.done::before { content: "✓"; display: grid; place-items: center; background: var(--pine); color: #fff; font: 700 0.8rem/1 var(--sans); box-shadow: 0 0 0 4px var(--pine-soft); }
.lb-moves > p.ok b, .lb-moves > p.done b { color: var(--pine-deep); }
/* happening now: a gently turning ring */
.lb-moves > p.now::before { border: 2.5px solid var(--pine-soft); border-top-color: var(--pine); animation: lbSpin 1.4s linear infinite; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lb-moves > p.again::before { border: 2px dashed var(--brass); }
.lb-moves > p.again b { color: var(--brass-ink); }
.lb-moves > .lb-moves-auto { padding: 10px 0 0 38px; border-top: 1px dashed var(--line); font-size: 0.86rem; }
.lb-moves > .lb-moves-auto::before { content: "↻"; left: 4px; top: 9px; width: auto; height: auto; font: 700 1rem/1 var(--sans); color: var(--pine-2); }
@media (prefers-reduced-motion: reduce) { .lb-moves > p.now::before { animation: none; } }

/* ===== Predictions: what would decide one, and replication ===== */
.hy-decide { display: grid; gap: 12px; justify-items: start; padding: 14px 16px; border-radius: 14px; background: var(--pine-wash); border: 1px dashed #b9d9c8; }
.hy-decide p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.hy-decide .hy-decide-go { background: var(--pine); border-color: var(--pine); color: #fff; }
.hy-decide .hy-decide-go:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }
.hy-repl { position: relative; margin: 0; padding: 14px 16px 14px 58px; border-radius: 14px; line-height: 1.55; }
.hy-repl::before { position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; box-sizing: border-box; }
/* replicated: a level above confirmed, so it gets the brass medal */
.hy-repl.replicated { background: linear-gradient(135deg, #fdf3dc, #fffaf0 60%); border: 1px solid #e3cf9d; color: var(--ink-2); box-shadow: 0 12px 28px -22px rgba(116, 83, 15, 0.6); }
.hy-repl.replicated::before { content: "★"; background: radial-gradient(circle at 35% 30%, #f3d98f 0, var(--brass) 65%); color: #fff; font: 400 1rem/1 var(--sans); box-shadow: 0 0 0 3px #f3e3b9; }
.hy-repl.replicated b { color: var(--brass-ink); }
/* not replicated: calm slate, an honest result written plainly */
.hy-repl.not_replicated { background: #f3f6f8; border: 1px solid #dbe3e9; color: var(--ink-2); }
.hy-repl.not_replicated::before { content: "○"; background: #fff; border: 1.5px solid #9aabb8; color: #5d6d7b; font: 400 0.95rem/1 var(--sans); }
.hy-repl.not_replicated b { color: #3b4f60; }

/* ===== Module: the data that would let it answer, as an open invitation ===== */
.mj-want { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; padding: clamp(18px, 2.6vw, 24px); border-radius: 20px; background: radial-gradient(90% 120% at 0% 0%, #fdf1d6 0%, rgba(253, 241, 214, 0) 60%), #fffcf5; border: 1px solid #ecdcb5; }
/* an empty socket waiting for the right dataset */
.mj-want::before { content: "+"; grid-row: span 5; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; border: 2px dashed #d9bd7b; background: #fff; color: var(--brass); font: 300 1.9rem/1 var(--sans); }
.mj-want > * { grid-column: 2; margin: 0; }
.mj-want h4 { font: 600 1.2rem/1.3 var(--serif); color: var(--ink); }
.mj-want p { color: var(--ink-2); line-height: 1.6; }
.mj-want .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 520px) {
  .mj-want { grid-template-columns: minmax(0, 1fr); }
  .mj-want::before { grid-row: auto; width: 46px; height: 46px; margin-bottom: 4px; }
  .mj-want > * { grid-column: 1; }
  .mj-want .btn { justify-self: stretch; }
}
.lb-moves > p > b:first-child { display: block; margin-bottom: 3px; font: 600 1.02rem/1.3 var(--serif); }
.lb-moves > p.ok::before, .lb-moves > p.done::before, .lb-moves > p.now::before, .lb-moves > p.again::before { top: 0; }
.mj-want::before { width: 58px; height: 58px; border-color: var(--brass); color: var(--brass-ink); font-weight: 400; font-size: 2.1rem; }
