/* Shared styles for what site-sections.js renders on both concepts: the header, Live, a coin's page, share, the use cases.
   The rules live in DESIGN.md (the Night Survey, quiet and restrained). */

/* browser surfaces belong to the design too */
::selection { background: rgba(82,24,178,.5); color: #fff; }
html { scrollbar-color: #2C2C33 #08080A; }


/* ---------- Live (DESIGN.md, Operate): quiet and restrained. One thin outline, regions split by space and single lines, every action but one is text ---------- */
.lv { --ink: #08080A; --graphite: #0E0E12; --raised: #16161B; --line: #26262B; --bone: #EDEDF0; --ash: #8E8E98; --signal: #5218b2; --up: #3ECF8E; --down: #F0616D; --caution: #E6C27E;
  margin-top: 48px; border-radius: 18px; overflow: hidden; background: #0A0A0C; color: var(--bone); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lv ::selection { background: rgba(82,24,178,.5); color: #fff; }
.lv button { font: inherit; }
.lv button:focus-visible, .lv a:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

/* the top line: search and what the radar covers */
.lv-top { display: flex; align-items: center; gap: 28px; padding: 8px 24px; border-bottom: 1px solid var(--line); }
/* one field style for search, the chat and the share link: a soft well, the action sits inside it */
.lv-field, .sh .lv-field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px; border-radius: 12px; background: rgba(255,255,255,.035); color: #8E8E98;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: background-color .2s cubic-bezier(.16,1,.3,1), box-shadow .2s cubic-bezier(.16,1,.3,1); }
.lv-field:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); }
.lv-field:focus-within { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 0 0 4px rgba(255,255,255,.035); }
.lv-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #EDEDF0; font: 400 14.5px/1 var(--sans); caret-color: #9b7cf0; }
.lv-field input::placeholder { color: #8E8E98; }
.lv-search { flex: 1; min-width: 0; max-width: 600px; margin: 6px 0; }
.lv-search svg { width: 16px; height: 16px; flex: none; }
/* every action except Add to Chrome is text: ash at rest, bone and underlined on hover */
.lv-search button, .lv-btn, .lv-qs button, .lv-in button { border: 0; padding: 0; background: none; cursor: pointer; color: var(--ash); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: color .15s var(--e), text-decoration-color .15s var(--e); }
.lv-search button:hover, .lv-btn:hover, .lv-qs button:hover, .lv-in button:hover { color: var(--bone); text-decoration-color: rgba(237,237,240,.4); }
/* the action inside a field: a small soft key that lights up when there is something to send */
.lv .lv-search button, .sh-copy { flex: none; height: 34px; padding: 0 14px; border-radius: 8px; background: rgba(255,255,255,.09); color: #EDEDF0; font: 500 13.5px/1 var(--sans); text-decoration: none;
  transition: background-color .15s cubic-bezier(.16,1,.3,1), transform .15s cubic-bezier(.16,1,.3,1), color .15s; }
.lv .lv-search button:hover, .sh-copy:hover { background: rgba(255,255,255,.15); color: #EDEDF0; }
.lv .lv-search button:active, .sh-copy:active, .lv .lv-in button:active { transform: scale(.96); }
.lv-search:focus-within button { background: #EDEDF0; color: #0A0A0B; }
.lv-scope { margin-left: auto; font: 400 13px/1.3 var(--sans); color: var(--ash); white-space: nowrap; }
.lv-note { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 400 13.5px/1.4 var(--sans); color: var(--ash); }

.lv-main { display: grid; grid-template-columns: 460px minmax(0, 1fr); height: 820px; }
/* the landing shows up to 12 coins: 12 rows of 64px with 2px gaps, the column heads (36px) and the list padding (16px) fit without a scrollbar */
@media (min-width: 1181px) { .lv-preview .lv-main { height: 848px; } }

/* radar */
.lv-list { min-width: 0; min-height: 0; overflow: auto; padding: 4px 8px 12px; border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #2C2C33 transparent; }
.lv-lh, .lv-list ol button { display: grid; grid-template-columns: 48px minmax(0, 1fr) 80px 84px; gap: 14px; align-items: center; }
.lv-lh { position: sticky; top: 0; z-index: 1; padding: 14px 10px 10px; background: #0A0A0C; font: 500 12px/1 var(--sans); color: var(--ash); }
.lv-lh span:first-child { grid-column: 1 / 3; } .lv-lh span:last-child { text-align: right; }
.lv-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lv-list ol button { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background-color .15s var(--e); }
.lv-list ol button:hover { background: rgba(255,255,255,.02); }
.lv-list ol button[aria-pressed="true"] { background: rgba(255,255,255,.035); }
.lv-list ol button .r-t b { color: #B8B8C0; transition: color .15s var(--e); }
.lv-list ol button:hover .r-t b, .lv-list ol button[aria-pressed="true"] .r-t b { color: var(--bone); }
.r-img { width: 48px; height: 48px; border-radius: 10px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.r-id { min-width: 0; display: grid; gap: 6px; }
.r-t { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.r-t b { font: 600 14.5px/1.1 var(--sans); }
.r-t small { font: 400 13px/1.1 var(--sans); color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-meta { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ash); }
.r-pin { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--sans); color: var(--bone); white-space: nowrap; }
.r-pin::before, .lv-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.r-age { font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.r-meta i { width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-web { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E"); }
.ic-x { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h4.5l11.5 16h-4.5zM19.5 4L13.6 10.6M4.6 20l5.9-6.6' stroke='%23000' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); }
.r-sp { width: 80px; height: 30px; overflow: visible; color: var(--up); }
.r-sp.down { color: var(--down); }
.r-sp .a { fill: currentColor; opacity: .12; }
.r-sp .l { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.r-mc { display: grid; gap: 5px; justify-items: end; font: 500 14px/1 var(--mono); font-variant-numeric: tabular-nums; }
.r-mc small { font-size: 12px; }
.lv .up { color: var(--up); } .lv .down { color: var(--down); }
.r-mc b { font-weight: 500; }
.r-mc b.up { color: inherit; animation: lvup 1.2s var(--e); } .r-mc b.down { color: inherit; animation: lvdown 1.2s var(--e); }
@keyframes lvup { from { color: var(--up); } } @keyframes lvdown { from { color: var(--down); } }

/* the chosen coin */
.lv-detail { min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lv-dh { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; padding: 24px 28px 20px; border-bottom: 1px solid var(--line); }
.lv-tt { display: flex; align-items: center; gap: 14px; }
.d-img { width: 64px; height: 64px; border-radius: 12px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lv-t { margin: 0; font: 500 48px/1 var(--sans); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the ticker column may shrink, so a long ticker is fitted (fitTicker in site-sections.js) instead of running over the chart */
.lv-id, .lv-tt, .lv-tn { min-width: 0; }
.lv-tt .lv-img { flex: none; }
.lv-tn { flex: 1 1 auto; }
.lv-name { margin: 7px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 400 14px/1.3 var(--sans); color: var(--ash); }
.lv-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--bone); }
.lv-nums { margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 24px; }
.lv-nums dt { font: 400 13px/1 var(--sans); color: var(--ash); white-space: nowrap; }
.lv-nums dd { margin: 8px 0 0; font: 500 16px/1 var(--mono); font-variant-numeric: tabular-nums; }
.lv-acts { margin-top: 22px; display: flex; gap: 24px; }
.lv-btn { display: inline-flex; align-items: center; gap: 8px; height: 28px; font: 500 14px/1 var(--sans); }
.lv-btn svg { width: 15px; height: 15px; }

/* the coin's day, with the moments of its story pinned on the line */
.lv-chart { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 56px; grid-template-rows: auto auto; column-gap: 10px; color: var(--up); }
.lv-chart.down { color: var(--down); }
.c-plot { position: relative; height: 230px; }
.c-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lv-chart .grid path { stroke: rgba(255,255,255,.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lv-chart .l { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; }
.lv-chart.in .l { animation: lvdraw 1.1s var(--e) both; }
.lv-chart.in .a, .lv-chart.in .c-pin { animation: lvfade .9s var(--e) .35s both; }
@keyframes lvdraw { from { stroke-dashoffset: 1; } }
@keyframes lvfade { from { opacity: 0; } }
.lv-chart .cross { stroke: rgba(255,255,255,.3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0; }
.c-pin { position: absolute; width: 0; height: 0; pointer-events: none; }
.c-pin i { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--bone); box-shadow: 0 0 0 3px var(--graphite); }
.c-pin.first i { background: var(--graphite); box-shadow: 0 0 0 1.5px var(--bone), 0 0 0 4px var(--graphite); }
.c-pin span { position: absolute; left: 0; bottom: 10px; padding-bottom: 14px; border-left: 1px solid rgba(237,237,240,.35); padding-left: 7px; white-space: nowrap; font: 500 12px/1 var(--sans); color: var(--bone); text-shadow: 0 1px 6px var(--graphite); }
.c-pin.left span { left: auto; right: 0; border-left: 0; border-right: 1px solid rgba(237,237,240,.35); padding-left: 0; padding-right: 7px; }
.c-dot { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; }
.c-tip { position: absolute; left: 0; top: 0; padding: 6px 8px; border-radius: 8px; background: #121216; box-shadow: 0 0 0 1px rgba(255,255,255,.08);
  font: 500 12px/1 var(--mono); color: var(--bone); white-space: nowrap; opacity: 0; pointer-events: none; }
.lv-chart.hov .cross, .lv-chart.hov .c-dot, .lv-chart.hov .c-tip { opacity: 1; }
.lv-chart.hov .c-pin { opacity: .35; }
.c-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 12px; text-align: center; color: var(--ash); }
.c-empty[hidden] { display: none; }
.c-y { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 0; font: 500 12px/1 var(--mono); color: var(--ash); }
.c-x { grid-column: 1; grid-row: 2; display: flex; justify-content: space-between; margin-top: 8px; font: 400 12px/1 var(--sans); color: var(--ash); }

/* the agent's reading: prose first */
.lv-body { position: relative; min-height: 0; overflow: auto; padding: 24px 28px 24px; scrollbar-width: thin; scrollbar-color: #2C2C33 transparent; }
.lv-reading { list-style: none; margin: 0; padding: 0; display: none; gap: 12px; font: 400 14px/1 var(--sans); color: #4A4A52; }
.lv-reading li { display: flex; align-items: center; gap: 10px; }
.lv-reading li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.lv-reading.on { display: grid; }
.lv-reading.on li { animation: lvsrc .25s var(--e) forwards; }
.lv-reading.on li:nth-child(2) { animation-delay: .15s; } .lv-reading.on li:nth-child(3) { animation-delay: .3s; } .lv-reading.on li:nth-child(4) { animation-delay: .45s; } .lv-reading.on li:nth-child(5) { animation-delay: .6s; }
@keyframes lvsrc { to { color: var(--bone); } }
.rd-s { max-width: 72ch; margin: 0 0 22px; opacity: 0; transition: opacity .25s var(--e); }
.rd-s.on { opacity: 1; }
.rd-s h3 { margin: 0 0 6px; font: 500 16px/1.3 var(--sans); color: var(--bone); }
.rd-s p { margin: 0; font: 400 16.5px/1.6 var(--sans); color: #C9C9D0; text-wrap: pretty; }
.lv-post { margin: 14px 0 0; padding: 2px 0 2px 16px; border-left: 1px solid var(--line); }
.lv-post .who { font: 500 13px/1.3 var(--sans); color: var(--ash); }
.lv-post .o { margin-top: 6px; color: var(--ash); }
.lv-post .t { margin-top: 4px; color: var(--bone); }
.lv-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lv-checks li { display: flex; align-items: flex-start; gap: 10px; font: 400 14.5px/1.45 var(--sans); color: #C9C9D0; }
.lv-checks svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lv-checks .ok svg { color: var(--up); } .lv-checks .warn svg { color: var(--caution); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lv-betas { margin-top: 14px !important; font-size: 14.5px !important; color: var(--ash) !important; }
.lv-betas button { border: 0; padding: 0; background: none; color: var(--bone); cursor: pointer; text-decoration: underline; text-decoration-color: #4A4A52; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.lv-betas button:hover { text-decoration-color: var(--bone); }
.rd-src { margin: 4px 0 0 !important; font: 400 13px/1.5 var(--sans) !important; color: var(--ash) !important; }

/* the chat */
.lv-chat { display: grid; gap: 6px; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 68ch; }
.lv-chat:empty { display: none; }
.msg { margin: 0; max-width: 64ch; font: 400 15px/1.55 var(--sans); }
.msg.q { margin-top: 12px; font-weight: 500; color: var(--bone); }
.msg.q:first-child { margin-top: 0; }
.msg.a { color: #C9C9D0; }
.msg.wait { color: var(--ash); }
.lv-ask { display: grid; gap: 6px; padding: 14px 28px 16px; border-top: 1px solid var(--line); }
.lv-qs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 4px; }
.lv-qs:empty { display: none; }
.lv-qs button { padding: 4px 0; font: 400 14px/1.3 var(--sans); text-align: left; }
.lv-in { height: 50px; }
.lv-in input:disabled { opacity: .5; }
.lv .lv-in button { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.07); color: #8E8E98; text-decoration: none;
  transition: background-color .15s cubic-bezier(.16,1,.3,1), color .15s, transform .15s cubic-bezier(.16,1,.3,1); }
.lv .lv-in button svg { width: 17px; height: 17px; }
.lv .lv-in input:not(:placeholder-shown) + button { background: #EDEDF0; color: #0A0A0B; }
.lv .lv-in input:disabled + button { opacity: .4; pointer-events: none; }
.lv-left { margin-top: 4px; font: 400 13px/1.4 var(--sans); color: var(--ash); }
.lv-left a { color: var(--bone); text-underline-offset: 3px; }

/* between tablet and laptop the coin's numbers and its chart stack, so neither squeezes the other */
@media (max-width: 1180px) {
  .lv-dh { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lv-main { height: 940px; }
}
@media (max-width: 900px) {
  .lv-main { grid-template-columns: minmax(0, 1fr); height: auto; }
  .lv-list { max-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lv-scope { display: none; }
  .lv-dh { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px; }
  .lv-body { max-height: 560px; padding: 20px; }
  .lv-ask { padding: 14px; }
}
@media (max-width: 520px) {
  .lv-lh, .lv-list ol button { grid-template-columns: 40px minmax(0, 1fr) 76px; gap: 10px; }
  .lv-lh span:nth-child(2), .r-sp { display: none; }
  .r-img { width: 40px; height: 40px; }
  .lv-nums { grid-template-columns: repeat(2, auto); }
  .lv-t { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-chart.in .l, .lv-chart.in .a, .lv-chart.in .c-pin, .r-mc b.up, .r-mc b.down, .lv-reading.on li { animation: none; }
  .rd-s, .lv-search button, .lv-btn, .lv-qs button, .lv-in button { transition: none; }
}

/* ---------- the Live page: the tool takes the screen ---------- */
.lv-full { margin-top: 0; }
.lv-full .lv-main { height: max(640px, calc(100vh - 230px)); height: max(640px, calc(100svh - 230px)); }
@media (max-width: 1180px) { .lv-full .lv-main { height: 940px; } }

/* ---------- a coin's own page: the reading on the left, the chat beside it ---------- */
.lv-coin { margin-top: 0; overflow: clip; }
.lv-coin .lv-main { grid-template-columns: minmax(0, 1fr); height: auto; }
.lv-coin .lv-detail { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); grid-template-rows: auto auto; overflow: visible; }
.lv-coin .lv-dh { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 32px 24px; }
.lv-coin .lv-body { grid-column: 1; grid-row: 2; }
.lv-coin .c-plot { height: 240px; }
.lv-coin .lv-body { overflow: visible; padding: 28px 32px 32px; }
.lv-side { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 84px; align-self: start; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100vh - 110px); max-height: 860px; border-left: 1px solid var(--line); }
.lv-sh { margin: 0; padding: 24px 24px 12px; font: 500 15px/1.3 var(--sans); color: var(--bone); }
.lv-side .lv-chat, .lv-side .lv-chat:empty { margin: 0; border-top: 0; max-width: none; padding: 4px 24px 16px; display: grid; align-content: start; gap: 12px; overflow: auto; scrollbar-width: thin; scrollbar-color: #2C2C33 transparent; }
.lv-side .lv-chat:empty::before { content: "The agent answers from what it read about this coin, and says when it cannot confirm something."; max-width: 36ch; font: 400 14px/1.5 var(--sans); color: var(--ash); }
.lv-side .msg { max-width: 100%; }
.lv-side .lv-ask { padding: 14px 24px 18px; }

/* ---------- share: the button copies the coin's link ---------- */
.lv-share { transition: color .2s var(--e); }
.lv-share.done { color: #3ECF8E; }

/* ---------- the Live and coin pages around the tool ---------- */
.app-body { margin: 0; min-height: 100vh; background: #08080A; color: #EDEDF0; font: 15px/1.55 var(--sans); }
.app-body ::selection { background: rgba(82,24,178,.5); color: #fff; }
.app-bg { position: fixed; left: 0; right: 0; top: 0; height: 70vh; width: 100%; z-index: 0; pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.app { position: relative; z-index: 1; max-width: 1648px; margin: 0 auto; padding: 104px max(24px, env(safe-area-inset-right, 0px)) 48px max(24px, env(safe-area-inset-left, 0px)); }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.app-head h1 { margin: 0; font: 500 clamp(36px, 3.6vw, 60px)/1 var(--sans); letter-spacing: -.04em; }
.app-head p { margin: 0; max-width: 52ch; font: 400 15px/1.5 var(--sans); color: #8E8E98; }
.app-backlink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 500 14px/1 var(--sans); color: #8E8E98; text-decoration: none; transition: color .2s; }
.app-backlink svg { width: 15px; height: 15px; }
.app-backlink:hover { color: #EDEDF0; }
.app-foot { position: relative; z-index: 1; max-width: 1648px; margin: 0 auto; padding: 20px max(24px, env(safe-area-inset-right, 0px)) 32px max(24px, env(safe-area-inset-left, 0px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.06); font: 400 13px/1.5 var(--sans); color: #8E8E98; }

@media (max-width: 900px) {
  .lv-full .lv-main { height: auto; }
  .lv-coin .lv-detail { grid-template-columns: minmax(0, 1fr); }
  .lv-side { grid-column: 1; grid-row: auto; }
  .lv-coin .lv-dh { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .lv-coin .lv-body { padding: 20px; max-height: none; }
  .lv-side { position: static; height: auto; min-height: 360px; border-left: 0; border-top: 1px solid var(--line); }
  .app-head h1 { font-size: 2rem; }
}
@media (max-width: 520px) {
  .lv-acts .lv-open { display: none; }
}

/* ---------- use cases: three columns, each a real piece of the terminal, then the verdict and the agent's words ---------- */
/* subgrid keeps the shots, verdicts and answers of the three cases on the same lines */
.cs3 { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: clamp(20px, 2vw, 32px); }
.c3 { min-width: 0; display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
.c3-shot { margin: 0; display: grid; align-content: start; gap: 14px; padding: 20px; border-radius: 18px; background: #0A0A0C; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.c3-shot figcaption { display: flex; justify-content: space-between; font: 500 13px/1 var(--sans); color: #8E8E98; }
.c3-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 64px auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.035); }
.c3-img { width: 40px; height: 40px; border-radius: 10px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.c3-id { min-width: 0; display: grid; gap: 4px; }
.c3-id b { font: 600 14.5px/1.1 var(--sans); color: #EDEDF0; }
.c3-id small { font: 400 12.5px/1.1 var(--sans); color: #8E8E98; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3-age { font: 500 12px/1 var(--mono); color: #8E8E98; }
.c3-sp { width: 64px; height: 26px; overflow: visible; color: #3ECF8E; }
.c3-sp.down { color: #F0616D; }
.c3-sp .a { fill: currentColor; opacity: .12; } .c3-sp .l { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.c3-mc { display: grid; gap: 5px; justify-items: end; font: 500 14px/1 var(--mono); font-variant-numeric: tabular-nums; color: #EDEDF0; }
.c3-mc b { font-weight: 500; } .c3-mc small { font-size: 12px; }
.c3-mc .up { color: #3ECF8E; } .c3-mc .down { color: #F0616D; }
.c3-post { margin: 4px 0 0; padding: 0 4px; }
.c3-post .who { margin: 0; font: 400 13.5px/1.3 var(--sans); color: #8E8E98; }
.c3-post .who b { font-weight: 500; color: #EDEDF0; }
.c3-post .txt { margin: 10px 0 0; font: 400 17px/1.5 var(--sans); color: #EDEDF0; }
.c3-post .txt.ko { font-size: 22px; line-height: 1.4; }
.c3-post .tr { margin: 8px 0 0; font: 400 15px/1.5 var(--sans); color: #C9C9D0; }
.c3-post .tr span { color: #8E8E98; }
.c3-post .att { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.035); font: 400 13.5px/1 var(--sans); color: #8E8E98; }
.c3-post .att svg { width: 16px; height: 16px; }
.c3-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c3-list li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.035);
  transition: background-color .5s var(--e), box-shadow .5s var(--e), opacity .5s var(--e); }
.c3-list .c3-img { width: 32px; height: 32px; border-radius: 8px; }
.c3-list b { font: 600 13.5px/1 var(--sans); color: #EDEDF0; }
.c3-list span { font: 500 12.5px/1 var(--mono); color: #8E8E98; }
.c3-ok { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .4s var(--e) .5s, transform .4s var(--e) .5s; }
.c3-ok svg { width: 12px; height: 12px; }
.cs3.in .c3-list li:not(.pick) { opacity: .45; }
.cs3.in .c3-list li.pick { background: rgba(82,24,178,.22); box-shadow: inset 0 0 0 1px rgba(155,124,240,.55); }
.cs3.in .c3-ok { opacity: 1; transform: none; }
.c3-v { margin: 28px 0 0; font: 500 clamp(24px, 2vw, 32px)/1.12 var(--sans); letter-spacing: -.03em; color: #EDEDF0; text-wrap: balance; }
.c3-m { margin: 10px 0 0; font: 400 14.5px/1.4 var(--sans); color: #8E8E98; }
.c3-m b { font: 500 14.5px/1 var(--mono); color: #EDEDF0; }
.c3-a { margin: 18px 0 0; font: 400 16px/1.6 var(--sans); color: #D4D4DA; text-wrap: pretty; }
.c3-why { margin: 14px 0 0; font: 400 15px/1.55 var(--sans); color: #8E8E98; }
.c3-why b { font-weight: 500; color: #EDEDF0; }
@media (max-width: 1100px) { .cs3 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; max-width: 640px; row-gap: 56px; } .c3 { grid-row: auto; grid-template-rows: none; } }
@media (max-width: 560px) { .c3-list { grid-template-columns: minmax(0, 1fr); } .c3-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .c3-age, .c3-sp { display: none; } }
@media (prefers-reduced-motion: reduce) { .c3-list li, .c3-ok { transition: none; } }

/* ---------- landing sections: one wide grid like the hero's, each section composed for what it shows ---------- */
:root { --accent: #5218b2; --accent-hi: #9b7cf0; }
.rest .wrap { max-width: 1776px; padding-left: max(clamp(24px, 4.5vw, 88px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(24px, 4.5vw, 88px), env(safe-area-inset-right, 0px)); }
.rest .sec h2 { margin: 0; font-weight: 500; font-size: clamp(44px, 5vw, 92px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.rest .sec h2 em { font-style: normal; color: inherit; }
.rest .sec .lead { margin: 0; max-width: 44ch; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.5; color: #9A9AA4; }
.sx-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; }
.sx-head > h2 { grid-column: 1 / span 7; }
.sx-side { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; }
.rest .live { padding-block: clamp(120px, 18vh, 200px) clamp(72px, 10vh, 120px); }
.rest .cases { padding-block: clamp(72px, 10vh, 120px); }
.rest .faq { padding-block: clamp(72px, 10vh, 120px) clamp(120px, 18vh, 200px); }
#livePreview .lv { margin-top: 56px; }
/* how to use Live, under the tool */
.sx-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.sx-steps li { position: relative; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.sx-steps li::before { content: ""; position: absolute; left: 0; top: -3.5px; width: 6px; height: 6px; border-radius: 50%; background: #EDEDF0; }
.sx-steps li:first-child::before { background: var(--accent-hi); }
.sx-steps b { display: block; font: 500 21px/1.25 var(--sans); letter-spacing: -.015em; color: #EDEDF0; }
.sx-steps span { display: block; margin-top: 8px; max-width: 40ch; font: 400 15.5px/1.55 var(--sans); color: #9A9AA4; }
/* FAQ: the heading and a way out on the left, the questions across the rest */
.rest .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); }
.rest .faq-grid > div:first-child { display: grid; gap: 24px; justify-items: start; position: sticky; top: 110px; }
.rest .qa > button { padding: 28px 4px; font-size: clamp(18px, 1.45vw, 23px); font-weight: 500; letter-spacing: -.015em; }
.rest .qa .ans p { font-size: 16.5px; max-width: 68ch; }
@media (max-width: 900px) {
  .sx-head > h2, .sx-side { grid-column: 1 / -1; }
  .sx-steps { grid-template-columns: minmax(0, 1fr); }
  .rest .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .rest .faq-grid > div:first-child { position: static; }
}

/* ---------- header (DESIGN.md: a graphite bar, Live as a link with the meta in data type, one primary button) ---------- */
.hd { --e: cubic-bezier(.16,1,.3,1); position: fixed; z-index: 40; top: 0; left: 0; right: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 8px max(24px, env(safe-area-inset-left, 0px));
  pointer-events: none; transition: transform .5s var(--e), opacity .35s var(--e); }
.hd[hidden] { display: none; }
.hd-in { pointer-events: auto; max-width: 1600px; height: 56px; margin: 0 auto; display: flex; align-items: center; gap: 36px; }
/* away from the top, content scrolls under it: a dark strip with one line, the width of the page */
.hd::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,8,10,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.07);
  opacity: 0; transition: opacity .3s var(--e); }
.hd[data-state="bar"]::before, .hd.app::before { opacity: 1; }
.hd[data-state="hide"] { transform: translate3d(0, -130%, 0); opacity: 0; }
.hd-logo { display: flex; align-items: center; gap: 10px; color: #EDEDF0; text-decoration: none; font: 600 17px/1 var(--sans); letter-spacing: .06em; }
.hd-logo img { display: block; width: 30px; height: 30px; flex: none; mix-blend-mode: screen; }
.hd-nav { display: flex; align-items: center; gap: 28px; }
.hd-nav > a { color: #8E8E98; text-decoration: none; font: 500 14px/1 var(--sans); padding: 8px 0; transition: color .2s var(--e); }
.hd-nav > a:hover, .hd-nav > a[aria-current="page"] { color: #EDEDF0; }
.hd-nav > .hd-live { display: inline-flex; align-items: baseline; gap: 10px; color: #EDEDF0; }
.hd-meta { display: inline-flex; align-items: baseline; gap: 6px; font: 500 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; color: #8E8E98; }
.hd-meta em { font-style: normal; }
.hd-meta em.up { color: #3ECF8E; } .hd-meta em.down { color: #F0616D; }
.hd-live:hover .hd-mt { color: #EDEDF0; }
.hd-cta { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #EDEDF0; color: #0A0A0B; text-decoration: none; font: 500 14px/1 var(--sans);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 18px -10px rgba(0,0,0,.9); transition: transform .15s var(--e), background-color .2s var(--e); }
.hd-cta:hover { background: #FFFFFF; }
.hd-cta:active { transform: scale(.97); }
.hd-x { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: -26px; border-radius: 999px; color: #EDEDF0; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: transform .15s var(--e), background-color .2s var(--e); }
.hd-x svg { width: 16px; height: 16px; display: block; }
.hd-x:hover { background: rgba(255,255,255,.08); }
.hd-x:active { transform: scale(.94); }
.hd a:focus-visible { outline: 2px solid #EDEDF0; outline-offset: 4px; border-radius: 6px; }
@media (max-width: 960px) {
  .hd-nav > a:not(.hd-live) { display: none; }
}
@media (max-width: 560px) {
  .hd { padding-left: 16px; padding-right: 12px; }
  .hd-in { gap: 18px; height: 52px; }
  .hd-cta { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .hd-x { width: 38px; height: 38px; margin-left: -10px; }
  .hd-cw { display: none; }
}
@media (max-width: 420px) {
  .hd-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hd, .hd-in, .hd-cta, .hd-x { transition: none; } }
/* Live and a coin's page: a solid bar the width of the screen. The header also carries the class "app", which picked up the page
   container's max-width (1648px): on wider screens the bar stopped short while the background lines ran on past it. */
.hd.app { max-width: none; margin: 0; background: #08080A; box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.hd.app::before { display: none; }

/* The live recorder lists peak and current cap. The tracked-wallet count is internal and is not shown. */
.lv-recorder .lv-lh, .lv-recorder .lv-list ol button {
  grid-template-columns: 40px minmax(0, 1fr) 66px 66px;
  gap: 8px;
}
.lv-recorder .lv-lh { padding-inline: 12px; }
.lv-recorder .lv-lh span { display: block; text-align: right; }
.lv-recorder .lv-lh span:first-child { text-align: left; }
.lv-recorder .r-img { width: 40px; height: 40px; }
.lv-recorder .r-ath {
  text-align: right; font: 500 13px/1.2 var(--mono); font-variant-numeric: tabular-nums;
}
.lv-recorder .r-ath { color: var(--bone); }
.lv-recorder .r-t b { flex-shrink: 0; max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-recorder .r-meta { overflow: hidden; }
.lv-recorder .lv-acts .lv-open { display: inline-flex; }
.lv-detail[hidden] { display: none; }
.lv-story, .lv-chat .msg.a {
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.lv-story {
  margin: 0; max-width: 72ch; font: 400 16.5px/1.6 var(--sans); color: #C9C9D0;
}
.lv-story a, .lv-chat .msg.a a { color: #D2B9FF; }
.lv-source-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.lv-source-links a {
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: #D2B9FF;
  font: 400 13px/1.4 var(--sans); text-decoration: none; overflow-wrap: anywhere;
}
.lv-source-links a:hover { text-decoration: underline; }
.lv-source-post { color: var(--ash); }
.lv-source-post summary { cursor: pointer; }
.lv-source-post p { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .lv-recorder .lv-lh, .lv-recorder .lv-list ol button {
    grid-template-columns: 26px minmax(0, 1fr) 48px 48px;
    gap: 5px;
    padding-inline: 6px;
  }
  .lv-recorder .r-img { width: 26px; height: 26px; border-radius: 5px; }
  .lv-recorder .r-ath, .lv-recorder .r-mc, .lv-recorder .r-mc small { font-size: 11px; }
  .lv-recorder .r-pin { display: none; }
}

/* the overview video: with a poster the frame shows a still from the video, not the map drawing */
.vid-frame.has-poster video { opacity: 1; }
.vid-frame.has-poster .vid-art { display: none; }
.vid-frame.has-poster::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); transition: opacity .5s; }
.vid-frame.has-poster .vid-meta { color: #C9C9D1; z-index: 1; }
.vid-frame.has-poster .vid-play { z-index: 1; }
.vid-frame.playing::after { opacity: 0; }
