/* Visual layer v5: colour, depth and motion on top of the Oracle house. Light only; pine, ink and brass.
   Loaded after the component sheets, so the rules here are the ones that win. */

/* ---------- type and rhythm ---------- */
body { font-size: 18px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.3rem); }
.sec { padding-block: clamp(56px, 7vw, 104px); }
.sec .sec-head { border-top: 0; padding-top: 0; position: relative; }
.sec .sec-head h2::before { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--pine); margin-bottom: 22px; }
.band { background: var(--mist); border-block: 0; }
.band.warm { background: var(--cream); }
.band.warm .sec-head h2::before { background: var(--brass); }

/* ---------- top bar ---------- */
.top { background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(20, 40, 59, 0.04); border-bottom: 0; }
.top-in { min-height: 72px; }
.brand svg { width: 34px; height: 34px; }
.nav a { border-radius: 999px; padding: 8px 14px; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: var(--mist); }
.nav a.on { background: var(--pine-soft); color: var(--pine-deep); }
.nav a.on::after { display: none; }

/* ---------- buttons ---------- */
.btn { border-radius: 12px; padding: 13px 20px; min-height: 48px; font-size: 1rem; box-shadow: 0 1px 2px rgba(20, 40, 59, 0.06); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh); }
.btn-primary { box-shadow: 0 1px 2px rgba(11, 74, 55, 0.3), 0 8px 20px rgba(18, 107, 80, 0.22); }
.btn-primary:hover { box-shadow: 0 2px 4px rgba(11, 74, 55, 0.3), 0 12px 28px rgba(18, 107, 80, 0.28); }
.btn-lg { padding: 17px 28px; min-height: 58px; font-size: 1.1rem; border-radius: 14px; }
.btn-sm { border-radius: 10px; padding: 9px 14px; min-height: 38px; font-size: 0.9rem; }
.more { transition: color 0.15s; }
.more::after { display: inline-block; transition: transform 0.2s var(--ease); }
.more:hover::after { transform: translateX(4px); }

/* ---------- surfaces ---------- */
.card { border: 1px solid var(--line); box-shadow: var(--sh); border-radius: 18px; }
a.card { transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s; }
a.card:hover { border-color: var(--pine-2); box-shadow: var(--sh-2); transform: translateY(-3px); }
a.card:hover h3 { text-decoration: none; color: var(--pine-deep); }
.card.open { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.card.open::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--pine); }
.panel { border-radius: 18px; }
.chip { border-radius: 999px; padding: 4px 11px; }
.table-wrap { border-top-width: 2px; }
.figure-box { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 22px 22px 14px; }
.field input[type="text"], .field input[type="number"], .field textarea, .field select { border-radius: 12px; padding: 13px 15px; }
.choice { border-radius: 12px; }
.keymsg { border-radius: 0 18px 18px 0; }
.empty { border-radius: 18px; }

/* ---------- numbers ---------- */
.facts { border-top: 0; border-bottom: 0; gap: 14px; }
.fact, .fact + .fact { padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); }
.fact-v { color: var(--pine-deep); font-size: clamp(2.1rem, 3.4vw, 3rem); }
.fact-v sup.ref { font-size: 0.4em; vertical-align: super; }
@media (max-width: 860px) { .fact, .fact + .fact, .fact:nth-child(even) { padding: 18px; border: 1px solid var(--line); } }

/* ---------- home hero ---------- */
.hero-band { background: var(--mist); position: relative; overflow: hidden; }
.hero { padding-block: clamp(44px, 6vw, 92px) clamp(40px, 5vw, 72px); }
.hero-grid { align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.7rem); line-height: 1.03; max-width: 13ch; letter-spacing: -0.025em; }
.hero h1 em { color: var(--pine); }
.hero .lede { font-size: clamp(1.14rem, 1.55vw, 1.34rem); color: var(--ink-2); }
.hero-actions { margin-top: 30px; }
/* the live stage beside the headline */
.hero-live { grid-template-columns: minmax(0, 10fr) minmax(0, 11fr); align-items: center; }
@media (max-width: 1020px) { .hero-live { grid-template-columns: minmax(0, 1fr); } }
.hero-words { min-width: 0; }
.hero-words .lede { margin-top: 26px; max-width: 54ch; }
.stage { --px: 0; --py: 0; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; min-width: 0; }
.stage::before { content: ""; position: absolute; inset: 10% -5% 12% 14%; border-radius: 44% 56% 50% 50% / 52% 46% 54% 48%; background: var(--pine-soft); opacity: 0.55; pointer-events: none; }
.st-card, .st-chips { animation: st-in 0.75s var(--ease) both; animation-delay: calc(var(--d) * 130ms + 120ms); transition: translate 0.5s var(--ease); }
.st-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(20, 40, 59, 0.05), 0 18px 44px rgba(20, 40, 59, 0.11); }
/* Entrances only move, never start hidden: content is readable even if an animation never runs (a background tab). */
@keyframes st-in { from { transform: translateY(16px) scale(0.99); } }
.st-live { grid-column: 1 / 12; grid-row: 1; z-index: 1; padding: 20px 20px 14px; translate: calc(var(--px) * -10px) calc(var(--py) * -8px); }
.st-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid var(--line-2); }
.st-count { font-size: 1.08rem; color: var(--ink-2); }
.st-count b { font: 700 1.6rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.st-link { margin-left: auto; font: 600 0.85rem/1 var(--sans); color: var(--pine); padding: 7px 12px; border-radius: 999px; background: var(--pine-wash); }
.st-link:hover { text-decoration: none; background: var(--pine-soft); }
.st-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #1f9d6b; flex: none; }
.st-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #1f9d6b; animation: st-ring 1.8s ease-out infinite; }
@keyframes st-ring { from { opacity: 0.7; transform: scale(0.5); } to { opacity: 0; transform: scale(1.5); } }
.st-rows { display: grid; gap: 2px; padding-top: 8px; }
.st-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 104px; gap: 14px; align-items: center; padding: 11px 8px; border-radius: 12px; color: var(--ink); transition: background 0.15s; animation: st-row 0.5s var(--ease) both; }
.st-row:hover { text-decoration: none; background: var(--mist); }
.st-row .glyph { border-radius: 10px; }
@keyframes st-row { from { opacity: 0; transform: translateX(-8px); } }
.st-who { display: grid; gap: 1px; min-width: 0; }
.st-who b { font-weight: 600; font-size: 1.06rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-who small { font-size: 0.86rem; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tries { position: relative; display: grid; gap: 5px; justify-items: end; }
.st-tries::before { content: ""; width: 100%; height: 6px; border-radius: 3px; background: var(--line-2); grid-row: 1; grid-column: 1; }
.st-tries i { grid-row: 1; grid-column: 1; justify-self: start; height: 6px; border-radius: 3px; background: var(--pine); transition: width 0.9s var(--ease); }
.st-tries small { font: 600 0.74rem/1 var(--sans); color: var(--sub); font-variant-numeric: tabular-nums; }
.st-empty { display: grid; gap: 4px; padding: 16px 8px 30px; }
.st-empty b { font-weight: 600; }
.st-empty span { font-size: 0.9rem; color: var(--sub); }
.st-toast-wrap { grid-column: 3 / 13; grid-row: 2; z-index: 3; margin-top: -20px; padding: 14px 18px; border-radius: 16px; translate: calc(var(--px) * 16px) calc(var(--py) * 12px); }
.st-toast { display: flex; align-items: center; gap: 12px; min-height: 34px; font-size: 1.02rem; color: var(--ink-2); min-width: 0; }
.st-toast > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-toast b { color: var(--ink); font-weight: 600; }
.st-toast .up { color: var(--pine-deep); }
.st-toast.in { animation: st-toast 0.55s var(--ease) both; }
@keyframes st-toast { from { opacity: 0; transform: translateY(10px); } }
.st-when { font: 600 0.72rem/1 var(--sans); color: var(--sub); white-space: nowrap; }
.st-tag { flex: none; font: 700 0.7rem/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: var(--ink-2); background: var(--line-2); }
.st-tag.ok { color: #fff; background: var(--pine); }
.st-tag.stop { color: var(--stop); background: var(--stop-soft); }
.st-tag.gold { color: var(--brass-ink); background: var(--brass-soft); }
.st-cert { grid-column: 4 / 13; grid-row: 3; z-index: 2; margin-top: 14px; display: grid; gap: 8px; padding: 18px 22px 16px; color: var(--ink); background: var(--cream); border: 1px solid #e6d6ae;
  box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 6px var(--brass), 0 18px 44px rgba(20, 40, 59, 0.12); rotate: 1.6deg; translate: calc(var(--px) * 22px) calc(var(--py) * 16px); }
.st-cert:hover { text-decoration: none; rotate: 0deg; }
.st-cert-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-cert-top small { font: 700 0.64rem/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--pine); }
.st-pioneer { flex: none; font: 700 0.78rem/1 var(--sans); color: #fff; background: var(--brass-ink); padding: 7px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(116, 83, 15, 0.3); }
.st-cert em { font: 600 clamp(1.7rem, 2.4vw, 2.2rem)/1.15 var(--serif); font-style: normal; border-bottom: 1px solid var(--ink); padding-bottom: 6px; justify-self: start; min-width: 60%; }
.st-cert-line { font-size: 0.86rem; color: var(--ink-2); }
.st-cert-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--sub); }
.st-cert-foot b { color: var(--pine-deep); font-weight: 700; }
.st-cert-foot span::before { content: "·"; margin-right: 14px; color: var(--line-strong); }
.st-chips { --d: 3; grid-column: 1 / 13; grid-row: 4; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; translate: calc(var(--px) * -6px) calc(var(--py) * -4px); }
.st-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--ink); box-shadow: var(--sh); transition: transform 0.18s var(--ease), border-color 0.18s; }
.st-chip:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--pine-2); }
.st-chip-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--ink-2); }
.st-chip-icon svg { width: 18px; height: 18px; }
.st-chip.open .st-chip-icon { background: var(--pine-soft); color: var(--pine-deep); }
.st-chip em { font: 700 0.66rem/1 var(--sans); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; color: var(--sub); background: var(--line-2); }
.st-chip.open em { color: #fff; background: var(--pine); }
@media (max-width: 1020px) { .stage { max-width: 620px; margin-top: 12px; } }
@media (max-width: 560px) {
  .st-live, .st-toast-wrap, .st-cert, .st-chips { grid-column: 1 / -1; translate: none; rotate: none; }
  .st-toast-wrap { margin-top: 10px; }
  .st-toast { flex-wrap: wrap; }
  .st-toast > span:last-child { white-space: normal; flex-basis: 100%; }
  .st-row { grid-template-columns: 36px minmax(0, 1fr) 60px; }
}
@media (prefers-reduced-motion: reduce) { .st-card, .st-chips, .st-row, .st-toast.in { animation: none; } .st-pulse::after { animation: none; } .st-card, .st-chips { translate: none; } }
.unit { margin-top: clamp(34px, 4.5vw, 60px); background: #fff; border-radius: 24px; padding: clamp(18px, 2.6vw, 34px); box-shadow: var(--sh-2); }
.unit-notes { margin-bottom: 14px; align-items: flex-end; }
.unit-note { font-size: 1rem; color: var(--ink-2); display: flex; align-items: baseline; gap: 12px; }
.unit-note b { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; color: var(--sub); }
.unit-note.on b { color: var(--pine); }
.unit-scale { height: 6px; gap: 4px; margin-bottom: 10px; }
.unit-scale i { border-radius: 3px; background: #c6d1cc; }
.unit .caption { margin-top: 16px; }

/* ---------- three ways in ---------- */
.ways { gap: clamp(16px, 2vw, 26px); margin-top: calc(-1 * clamp(20px, 3vw, 44px)); position: relative; z-index: 2; }
.way { background: #fff; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.4vw, 32px); box-shadow: var(--sh); gap: 14px; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.way:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.way-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--pine-soft); color: var(--pine-deep); }
.way-icon svg { width: 34px; height: 34px; }
.way.ink .way-icon { background: #e6eef5; color: var(--ink); }
.way.brass .way-icon { background: var(--brass-soft); color: var(--brass-ink); }
.way h3 { font-size: 1.45rem; }
.way p { font-size: 1rem; }

/* ---------- lab ---------- */
.lab-panel { border: 0; border-radius: 22px; padding: 0; overflow: hidden; box-shadow: var(--sh-2); gap: 0; }
.lab-head { background: var(--pine-deep); color: #fff; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lab-head h3 { color: #fff; font-size: 1.2rem; }
.lab-head span { font: 600 0.74rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #bfe3d3; display: inline-flex; align-items: center; gap: 8px; }
.lab-head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6fe0b0; animation: beat 2s ease-in-out infinite; }
.lab-body { display: grid; gap: 16px; padding: 20px 22px 24px; }
.lab-formula { border-radius: 12px; background: var(--mist); }
.gauge { display: block; width: 100%; height: auto; }
.gauge-track { fill: none; stroke: var(--line-2); stroke-width: 20; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: #9aa9b5; stroke-width: 20; stroke-linecap: round; transition: stroke 0.3s; }
.gauge-fill.ok { stroke: var(--pine); }
.gauge-base { stroke: var(--ink); stroke-width: 2.5; }
.gauge-need { stroke: var(--pine-deep); stroke-width: 2.5; stroke-dasharray: 4 3; }
.gauge-mark { fill: var(--brass); }
.gauge-num { font: 600 56px var(--serif); fill: var(--ink); letter-spacing: -0.02em; }
.gauge-num.ok { fill: var(--pine-deep); }
.gauge-t { font: 500 11.5px var(--sans); fill: var(--sub); }
.gauge-t.strong { fill: var(--ink); font-weight: 600; }
.lab-big { text-align: center; margin-top: -6px; }
.lab-big span { font-size: 0.9rem; }
.lab-facts { text-align: center; padding: 14px 0; border-block: 1px solid var(--line); }
.lab-facts b { font-size: 1.3rem; }
.lab-verdict { padding: 12px 14px; border-radius: 12px; background: var(--brass-soft); color: var(--brass-ink); font-size: 0.93rem; }
.lab-verdict.ok { background: var(--pine-soft); color: var(--pine-deep); }
.lab-tile { border-radius: 14px; border: 1px solid var(--line); padding: 12px 14px 10px; box-shadow: 0 1px 2px rgba(20, 40, 59, 0.04); }
.lab-tile:hover { border-color: var(--pine-2); }
.lab-tile.on { background: var(--pine-wash); border-color: var(--pine); box-shadow: 0 0 0 1.5px var(--pine); }
.lab-slider input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; border-width: 2.5px; }
.lab-outcome { border-radius: 14px; }

/* the three steps, ticking off as you go */
.coach { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.coach li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--sub); font: 600 0.92rem/1.2 var(--sans); transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.coach li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--sub); font: 700 0.82rem/1 var(--sans); font-style: normal; transition: background 0.3s, color 0.3s; }
.coach li.on { color: var(--ink); border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }
.coach li.on i { background: var(--pine); color: #fff; }
.coach li.done { color: var(--pine-deep); background: var(--pine-soft); border-color: #cfe5d8; }
.coach li.done i { background: var(--pine); color: #fff; }
.sig { display: inline-flex; gap: 3px; align-items: flex-end; }
.sig i { width: 5px; border-radius: 2px; background: var(--line-strong); }
.sig i:nth-child(1) { height: 7px; }
.sig i:nth-child(2) { height: 11px; }
.sig i:nth-child(3) { height: 15px; }
.sig i.on { background: var(--pine); }
.lab-tile-top b { font: 600 0.92rem/1.2 var(--sans); }
.lab-tile.flash { animation: flash 0.6s var(--ease); }
@keyframes flash { 0% { transform: scale(1); } 40% { transform: scale(1.04); box-shadow: 0 0 0 4px var(--pine-soft), var(--sh); } 100% { transform: scale(1); } }
.lab-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.lab-more { margin-top: 18px; border-top: 1px solid var(--line); }
.lab-more summary { cursor: pointer; padding: 14px 0; font: 600 0.95rem/1.3 var(--sans); color: var(--pine); list-style: none; }
.lab-more summary::-webkit-details-marker { display: none; }
.lab-more summary::after { content: " +"; }
.lab-more[open] summary::after { content: " \2212"; }
.lab-more .lab-under { margin-top: 0; padding-top: 4px; border-top: 0; }
.btn.ready { animation: ready 1.8s ease-in-out infinite; }
@keyframes ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(18, 107, 80, 0.45); } 60% { box-shadow: 0 0 0 10px rgba(18, 107, 80, 0); } }
.lab-body .row .btn { width: 100%; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pine); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lab-outcome.ok .stamp { animation: stamp 0.5s var(--ease); }
@keyframes stamp { 0% { transform: rotate(-3deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-3deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .btn.ready, .lab-tile.flash, .lab-outcome.ok .stamp { animation: none; } }

/* ---------- funnel: what happened to every method ---------- */
.funnel { display: grid; gap: 10px; }
.fn-row { display: grid; grid-template-columns: minmax(150px, 250px) minmax(0, 1fr) minmax(0, 300px); gap: 16px; align-items: center; }
.fn-label { font-size: 0.97rem; line-height: 1.3; color: var(--ink); font-weight: 600; }
.fn-track { height: 40px; border-radius: 10px; background: rgba(20, 40, 59, 0.06); }
.fn-fill { height: 100%; min-width: 52px; border-radius: 10px; background: var(--pine-2); display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; color: #fff; font: 700 1rem/1 var(--mono); transition: width 1s var(--ease); }
.fn-row.start .fn-fill { background: var(--ink); }
.fn-row.end .fn-fill { background: var(--pine-deep); }
.fn-out { font-size: 0.86rem; line-height: 1.3; color: #7c2f2a; display: flex; gap: 10px; align-items: baseline; }
.fn-out b { flex: none; font: 700 0.86rem/1.3 var(--mono); background: var(--stop-soft); border: 1px solid #eccfcb; border-radius: 999px; padding: 2px 9px; color: var(--stop); }
.fn-out.hold { color: var(--brass-ink); }
.fn-out.hold b { background: var(--brass-soft); border-color: #ecdcb4; color: var(--brass-ink); }
@media (max-width: 760px) {
  .fn-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fn-track { height: 32px; }
}
.points { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: clamp(26px, 3vw, 40px); }
.point { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.point h4 { font: 600 1rem/1.3 var(--sans); color: var(--pine-deep); }
.point p { font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 1000px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- live strip: what is happening right now ---------- */
.live { background: var(--ink); color: #dbe6ef; }
.live-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-block: 16px; font-size: 0.95rem; }
.live-dot { display: inline-flex; align-items: center; gap: 9px; font: 700 0.76rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #7fe3b8; }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #5fe0a8; animation: beat 2s ease-in-out infinite; }
.live-stats { display: inline-flex; flex-wrap: wrap; gap: 6px 22px; }
.live-stat b { color: #fff; font: 600 1.15rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.live-faces { display: inline-flex; align-items: center; }
.live-faces a { margin-left: 5px; border-radius: 9px; transition: transform 0.15s var(--ease); }
.live-faces a:first-child { margin-left: 0; }
.live-faces a:hover { transform: translateY(-3px); }
.live-faces .glyph { border-radius: 8px; background: #fff; }
.live-faces em { margin-left: 10px; font-style: normal; font-weight: 600; color: #fff; }
.live-last { margin-left: auto; color: #dbe6ef; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-last i { font: 700 0.7rem/1 var(--sans); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: #7fe3b8; margin-right: 10px; }
.live-last small { color: #9fb4c6; }
@media (max-width: 900px) { .live-last { margin-left: 0; max-width: 100%; white-space: normal; } }
.ways { margin-top: clamp(28px, 4vw, 52px); }

/* ---------- happening now: who is working, and what just happened ---------- */
.live-last b { color: #fff; font: 600 1.15rem/1 var(--serif); margin-right: 2px; }
.now-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.15rem; }
.desk-dot { width: 10px; height: 10px; border-radius: 50%; background: #2fbf86; flex: none; animation: beat 2s ease-in-out infinite; }
.desk, .stream { display: grid; gap: 8px; }
.desk-row { display: grid; grid-template-columns: 10px 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s; }
.desk-row:hover { text-decoration: none; transform: translateX(3px); border-color: var(--pine-2); box-shadow: var(--sh); }
.desk-row .glyph { border-radius: 9px; }
.desk-who { display: grid; gap: 2px; min-width: 0; }
.desk-who b { font-weight: 600; }
.desk-who small, .desk-tries small { font-size: 0.8rem; color: var(--sub); }
.desk-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-tries { text-align: right; font: 600 0.86rem/1.3 var(--sans); color: var(--pine-deep); display: grid; }
.desk-tries small { font-weight: 400; }
.desk-empty { padding: 26px; border: 2px dashed var(--line-strong); border-radius: 16px; display: grid; gap: 8px; justify-items: start; }
.desk-empty p { color: var(--sub); }
.stream-row { display: grid; grid-template-columns: 78px auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 0.93rem; color: var(--ink-2); }
.stream-row b { color: var(--ink); font-weight: 600; }
.stream-row b.up { color: var(--pine-deep); }
.stream-when { font-size: 0.8rem; color: var(--sub); white-space: nowrap; }
.stream-row.new { animation: arrive 0.7s var(--ease); }
@keyframes arrive { 0% { opacity: 0; transform: translateY(-14px); background: var(--pine-soft); } 60% { opacity: 1; transform: none; background: var(--pine-soft); } 100% { background: #fff; } }
@media (prefers-reduced-motion: reduce) { .stream-row.new { animation: none; } }
@media (max-width: 560px) { .stream-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .desk-row { grid-template-columns: 10px 34px minmax(0, 1fr); } .desk-tries { grid-column: 3; text-align: left; } }

/* ---------- connect your AI: three steps ---------- */
.ai-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: var(--sh); }
.ai-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; font: 700 1.1rem/1 var(--sans); box-shadow: 0 6px 16px rgba(18, 107, 80, 0.25); }
.ai-step h3 { font-size: 1.3rem; }
.ai-step p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 900px) { .ai-steps { grid-template-columns: minmax(0, 1fr); } }
.lab-what { font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); text-align: center; margin-top: -6px; }

/* ---------- fields of medicine ---------- */
.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.field-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-content: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s; }
.field-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--pine-2); box-shadow: var(--sh); }
.field-icon { grid-row: span 3; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--mist); color: var(--ink-2); transition: background 0.18s, color 0.18s; }
.field-icon svg { width: 30px; height: 30px; }
.field-card.has .field-icon, .field-card:hover .field-icon { background: var(--pine-soft); color: var(--pine-deep); }
.field-card b { font: 600 1.02rem/1.25 var(--sans); align-self: end; }
.field-card small { font-size: 0.82rem; line-height: 1.4; color: var(--sub); }
.field-card em { font: 600 0.8rem/1.3 var(--sans); font-style: normal; color: var(--sub); margin-top: 4px; }
.field-card.has em { color: var(--pine-deep); }
@media (max-width: 1000px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the banner that says a design preview is showing made-up activity ---------- */
.sample-bar { background: var(--brass); color: #fff; text-align: center; padding: 10px var(--gutter); font-size: 0.92rem; position: sticky; top: 72px; z-index: 19; }
.sample-bar a { color: #fff; text-decoration: underline; margin-left: 8px; }
.story-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; }
.story-bar .story-text { min-width: 0; }
.story-bar .story-go { margin-left: 0; text-decoration: none; font-weight: 700; color: var(--brass-ink); background: #fff; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.story-bar .story-go:hover { text-decoration: none; background: var(--cream); }
.story-bar .story-go::after { content: " \2192"; }
.story-sample { font-size: 0.82rem; opacity: 0.92; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; }
.story-sample a { margin-left: 4px; }

/* ---------- leaderboard ---------- */
.lb { display: grid; gap: 10px; }
.lb-row { display: grid; grid-template-columns: 28px 38px minmax(120px, 220px) minmax(0, 1fr) 76px; gap: 14px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-align: left; font: inherit; transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s; }
a.lb-row:hover, button.lb-row:hover { text-decoration: none; transform: translateX(4px); border-color: var(--pine-2); box-shadow: var(--sh); }
.lb-rank { font: 700 1rem/1 var(--sans); color: var(--sub); text-align: center; font-variant-numeric: tabular-nums; }
.lb-who { display: grid; gap: 2px; min-width: 0; }
.lb-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-who small { font-size: 0.8rem; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-track { position: relative; height: 22px; border-radius: 8px; background: var(--line-2); }
.lb-track::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: var(--need); border-left: 2px dashed var(--pine-deep); }
.lb-track i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--pine-2); transition: width 1s var(--ease); }
.lb-track em { position: absolute; top: 50%; height: 2px; background: var(--ink); transform: translateY(-50%); }
.lb-track em::before, .lb-track em::after { content: ""; position: absolute; top: -4px; width: 2px; height: 10px; background: var(--ink); }
.lb-track em::after { right: 0; }
.lb-gain { font: 600 1.15rem/1 var(--serif); color: var(--pine-deep); text-align: right; font-variant-numeric: tabular-nums; }
.lb-row.you { border: 2px dashed var(--pine); background: var(--pine-wash); cursor: pointer; }
.lb-you-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--pine); color: #fff; font: 600 1.4rem/1 var(--sans); }
.lb-gain.go { font: 700 0.9rem/1 var(--sans); color: #fff; background: var(--pine); border-radius: 999px; padding: 9px 12px; text-align: center; }
@media (max-width: 640px) { .lb-row { grid-template-columns: 22px 38px minmax(0, 1fr) 64px; } .lb-track { grid-column: 1 / -1; order: 5; } }

/* ---------- pledge split you can play with ---------- */
.pay-bar { display: flex; gap: 6px; }
.pay-seg { min-width: 0; padding: 18px 18px 16px; border-radius: 16px; color: #fff; display: grid; gap: 4px; transition: flex 0.4s var(--ease); }
.pay-seg b { font: 600 clamp(1.4rem, 2.4vw, 2rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.pay-seg span { font-size: 0.86rem; line-height: 1.3; }
.pay-seg:nth-child(1) { background: #7d5a14; }
.pay-seg:nth-child(2) { background: #94691a; }
.pay-seg:nth-child(3) { background: #a97b1f; }
.pay-seg:nth-child(4) { background: #f1e2bd; color: var(--brass-ink); }
.pay-line { font-size: 1rem; color: var(--ink-2); max-width: 78ch; }
.pay-line b { color: var(--brass-ink); }
@media (max-width: 700px) { .pay-bar { flex-direction: column; } }

/* ---------- pledges ---------- */
.split-bar { height: 44px; gap: 4px; }
.split-bar i { border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 1rem/1 var(--sans); font-style: normal; opacity: 1 !important; }
.split-bar i:nth-child(1) { background: #8a6418; }
.split-bar i:nth-child(2) { background: #a97b1f; }
.split-bar i:nth-child(3) { background: #bd9340; }
.split-bar i:nth-child(4) { background: #cfae6a; color: var(--brass-ink); }
.split-legend b { display: none; }
.split-legend h4 { margin-top: 2px; font-size: 1rem; }
.mini-cert { border-radius: 10px; box-shadow: var(--sh-2); transform: rotate(-1.5deg); transition: transform 0.3s var(--ease); }
.mini-cert:hover { transform: rotate(0deg) scale(1.01); }

/* ---------- inner pages: a tinted head band with the page's facts on a card ---------- */
main { overflow-x: clip; }
.phead { position: relative; padding-block: clamp(40px, 5vw, 72px) clamp(30px, 4vw, 48px); margin-bottom: clamp(8px, 2vw, 24px); }
.phead::before { content: ""; position: absolute; inset: 0 -100vw; background: var(--mist); z-index: -1; }
.phead h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); letter-spacing: -0.02em; }
.phead .lede { max-width: 66ch; }
.meta-strip { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 8px 26px; gap: 0 32px; margin-top: 12px; }
.meta-strip dd b { color: var(--pine-deep); font-size: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article > section > h2 { border-top: 0; padding-top: 0; font-size: clamp(1.5rem, 2.3vw, 1.9rem); }
.article > section > h2::before, .ref-body > section > h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--pine); margin-bottom: 16px; }
.ref-body > section > h2 { border-top: 0; padding-top: 0; }
.slip { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--sh); overflow: hidden; }
.slip-part { padding: 24px clamp(18px, 2.6vw, 30px); }
.result-big { color: var(--pine); }
.stamp { border-radius: 8px; }
.kv { border-top: 0; }
.kv dt, .kv dd { border-bottom: 1px solid var(--line-2); padding-block: 12px; }
.toc a { border-radius: 0 10px 10px 0; transition: background 0.15s; }
.toc a:hover { background: var(--mist); }
.qa summary { font-size: 1.08rem; padding-block: 18px; }
.principles { gap: 14px; }
.principle { background: #fff; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.terms { gap: 14px; }
.terms > div { background: #fff; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.path li { border-top: 3px solid var(--line-strong); padding-top: 20px; }
.path li::before { top: -8px; width: 13px; height: 13px; border: 3px solid var(--pine); background: #fff; }
.band .path li::before { background: #fff; }
.path h4 { font-size: 1.08rem; }
.path h4::before { color: var(--pine); font-weight: 700; }
.step::before { width: 40px; height: 40px; border: 0; background: var(--pine); color: #fff; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(18, 107, 80, 0.25); }
.step { grid-template-columns: 44px minmax(0, 1fr); }
.cmd { border-radius: 14px; border-width: 1.5px; }
.code { border-radius: 14px; background: var(--ink); color: #e8eef3; border: 0; padding: 16px 18px; }
.tabs { gap: 6px; border-bottom: 0; }
.tab { border-radius: 999px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.on small { color: #c9d6e2; }
.tab.on::after { display: none; }
.log-row { padding: 12px 0; }
.who .glyph { border-radius: 9px; }
.ident .glyph { border-radius: 20px; box-shadow: var(--sh); }
.level { color: var(--pine); }
.example { border-left: 4px solid var(--pine); background: #fff; border-radius: 0 14px 14px 0; padding: 14px 18px; box-shadow: var(--sh); }
.pool-v { font-size: 2.4rem; }
.welcome { background: var(--pine-deep); border-bottom: 0; }
.welcome-in, .welcome-in b, .welcome-in a { color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--pine-deep); border-top: 0; color: #d6e9e0; padding-block: 56px 60px; }
.foot .brand-name { color: #fff; }
.foot .sub, .foot .small, .foot p { color: #bcdccd; }
.foot h4 { color: #8fc7ae; }
.foot a { color: #fff; }
.foot-legal { border-top-color: rgba(255, 255, 255, 0.16); color: #a9cfbd; }

/* ---------- the Oracle on a question, and module bounties ---------- */
.oracle-panel { position: relative; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh); }
.oracle-panel h3 { font-size: 1.2rem; }
.oracle-panel.reading { display: flex; gap: 14px; align-items: flex-start; background: var(--mist); box-shadow: none; }
.oracle-panel.reading .st-pulse { margin-top: 8px; }
.oracle-panel.covered { border-left: 5px solid var(--pine); }
.oracle-panel.gap { border: 2px solid var(--brass); background: #fdf9ef; padding-right: 120px; }
.bounty-badge { position: absolute; top: 18px; right: 20px; width: 84px; height: 84px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--brass-ink); color: #fff; box-shadow: 0 8px 22px rgba(116, 83, 15, 0.3); }
.bounty-badge b { font: 700 1.7rem/1 var(--serif); }
.bounty-badge small { font: 700 0.62rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.bars { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); }
.oracle-runs { display: grid; gap: 8px; }
.oracle-run { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.oracle-run small { display: block; color: var(--sub); }
.bounties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bounty-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--sh); transition: transform 0.18s var(--ease), border-color 0.18s; }
.bounty-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brass); }
.bounty-pts { width: 64px; height: 64px; border-radius: 16px; display: grid; place-content: center; text-align: center; background: var(--brass-ink); color: #fff; }
.bounty-pts b { font: 700 1.35rem/1 var(--serif); }
.bounty-pts small { font: 700 0.62rem/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.bounty-card.won .bounty-pts { background: var(--pine); }
.bounty-q { display: grid; gap: 3px; min-width: 0; }
.bounty-q b { font-weight: 600; line-height: 1.3; }
.bounty-q small { color: var(--sub); font-size: 0.84rem; }
.empty-invite { padding: 20px 22px; border-radius: 16px; border: 1px dashed var(--line-strong); background: #fff; }
.empty-invite p { margin: 4px 0 0; color: var(--sub); }
@media (max-width: 760px) { .bounties { grid-template-columns: minmax(0, 1fr); } .oracle-panel.gap { padding-right: 24px; padding-top: 110px; } }

/* ---------- research and evidence on a question ---------- */
.rs-papers { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.rs-paper { line-height: 1.4; }
.rs-title { font-weight: 600; color: var(--ink); }
.rs-title:hover { color: var(--pine-deep); }
.rs-meta { display: block; font-size: 0.84rem; color: var(--sub); margin-top: 2px; }
.rs-open { margin-left: 8px; font: 700 0.68rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--pine-deep); background: var(--pine-soft); padding: 3px 7px; border-radius: 999px; }
.rs-wait { display: flex; align-items: center; gap: 10px; color: var(--sub); }
.rs-cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.rs-card { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--pine); }
.rs-claim { margin: 0 0 8px; font-weight: 600; }
.rs-card blockquote { margin: 0 0 8px; padding-left: 12px; border-left: 2px solid var(--line-strong); color: var(--ink-2); font-family: var(--serif-text, var(--serif)); }
.rs-source { margin: 0; font-size: 0.84rem; color: var(--sub); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-measures { margin: 0 0 8px; padding-left: 18px; font-size: 0.9rem; color: var(--ink-2); display: grid; gap: 2px; }
.rs-measures b { color: var(--pine-deep); }
.rs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rs-table th { text-align: left; font: 700 0.72rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sub); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.rs-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.rs-table td.num { font-weight: 700; color: var(--pine-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-brief { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--mist); }

/* ---------- five steps to the question's Oracle module ---------- */
.ul { padding: clamp(20px, 2.4vw, 30px); border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.ul-banner { margin: 16px 0 6px; padding: 14px 18px; border-radius: 14px; background: var(--brass-soft); color: var(--brass-ink); line-height: 1.45; }
.ul-banner b { color: var(--ink); }
.ul-banner.ready { background: var(--pine-soft); color: var(--pine-deep); }
.ul-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.ul-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 12px 0 14px; }
.ul-step:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 46px; bottom: -2px; width: 2px; background: var(--line); }
.ul-step.done:not(:last-child)::before { background: var(--pine-2); }
.ul-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 0.9rem/1 var(--sans);
  background: var(--line-2); color: var(--sub); border: 2px solid var(--line); }
.ul-step.done .ul-dot { background: var(--pine); border-color: var(--pine); color: #fff; }
.ul-step.now .ul-dot { background: #fff; border-color: var(--brass); color: var(--brass-ink); box-shadow: 0 0 0 5px var(--brass-soft); }
.ul-body { min-width: 0; display: grid; gap: 6px; }
.ul-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ul-head b { font-size: 1rem; color: var(--ink); }
.ul-step.ahead .ul-head b { color: var(--sub); }
.ul-count { font: 700 0.82rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--sub); white-space: nowrap; }
.ul-step.done .ul-count { color: var(--pine-deep); }
.ul-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.ul-bar i { display: block; height: 100%; border-radius: 3px; background: var(--line-strong); }
.ul-step.done .ul-bar i { background: var(--pine-2); }
.ul-step.now .ul-bar i { background: var(--brass); }
.ul-say { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.ul-step.ahead .ul-say { color: var(--sub); }
.ul-do { margin: 2px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--wash); font-size: 0.88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.ul-shape { margin-top: 10px; }
.ul-count small { font-weight: 600; color: var(--sub); margin-left: 3px; }
.ul-step.done .ul-count small { color: var(--pine-deep); }

/* datasets the Oracle holds that may carry the question */
.ds-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ds-row { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.ds-row.strong { border-left: 4px solid var(--pine); }
.ds-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-width: 0; }
.ds-head > a, .ds-head > b { min-width: 0; overflow-wrap: anywhere; }
.ds-head .chip { flex: none; }
.ds-why { margin: 0; font-size: 0.84rem; color: var(--sub); overflow-wrap: anywhere; }

/* the bounty panel while the module is still locked behind the evidence */
.oracle-panel.locked { border: 2px solid var(--brass); background: #fdf9ef; }
.lock-strip { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.lock-strip li { display: grid; gap: 6px; justify-items: start; padding: 10px 10px 9px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font: 600 0.78rem/1.25 var(--sans); color: var(--sub); min-width: 0; }
.lock-strip li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 0.72rem/1 var(--sans); font-style: normal;
  background: var(--line-2); color: var(--sub); }
.lock-strip li.done { border-color: var(--pine-soft); background: var(--pine-wash); color: var(--pine-deep); }
.lock-strip li.done i { background: var(--pine); color: #fff; }
.lock-strip li.now { border-color: var(--brass); color: var(--ink); box-shadow: 0 0 0 3px var(--brass-soft); }
.lock-strip li.now i { background: var(--brass); color: #fff; }
@media (max-width: 640px) { .lock-strip { grid-template-columns: 1fr; } .lock-strip li { grid-template-columns: 22px minmax(0, 1fr); align-items: center; } }

/* ---------- copy the whole job for your AI ---------- */
.ai-brief h3 { font-size: 1.15rem; }
.ai-brief .btn-lg { min-width: 0; }
.brief-key input { flex: 1 1 180px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; font: inherit; background: #fff; }
.ai-brief details summary { cursor: pointer; font-size: 0.88rem; color: var(--pine-deep); font-weight: 600; }
.brief-text { margin: 10px 0 0; max-height: 320px; overflow: auto; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font: 0.78rem/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }

/* ---------- the cancer map ---------- */
.cm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.86rem; color: var(--ink-2); }
.cm-key { display: inline-flex; align-items: center; gap: 7px; }
.cm-key b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-key i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cm-scroll { overflow-x: auto; padding-bottom: 6px; }
.cm-grid { display: grid; grid-template-columns: 150px repeat(var(--cols), minmax(18px, 1fr)); gap: 3px; align-items: center; min-width: 900px; }
.cm-col { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.72rem; color: var(--sub); height: 92px; white-space: nowrap; justify-self: center; }
.cm-row { font-size: 0.86rem; font-weight: 600; padding-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-cell { width: 100%; aspect-ratio: 1; border-radius: 5px; border: 0; padding: 0; cursor: pointer; transition: transform 0.12s var(--ease); }
.cm-cell:hover { transform: scale(1.25); position: relative; z-index: 1; }
.cm-cell.bounty { box-shadow: 0 0 0 2px var(--brass); }
.cm-s0 { background: #e9eeeb; } .cm-s1 { background: #b9d8c6; } .cm-s2 { background: #5fae86; } .cm-s3 { background: #1d8a5c; }
.cm-s4 { background: #126b50; } .cm-s5 { background: #0b4a37; } .cm-s6 { background: #062f23; }
.cm-s-1 { background: repeating-linear-gradient(45deg, #f3f3f1 0 3px, #dcdcd6 3px 5px); }
.cm-detail { min-height: 120px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.cm-detail h3 { font-size: 1.2rem; }
.cm-detail .btn { justify-self: start; }
.cm-nexts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cm-next { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); }
a.cm-next:hover { text-decoration: none; border-color: var(--pine-2); }
.cm-next.bounty { border: 2px solid var(--brass); }
.cm-next b { display: block; font-weight: 600; }
.cm-next small { color: var(--sub); }
.cm-p { font: 700 1rem/1 var(--serif); color: var(--pine-deep); text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .cm-nexts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
