/* Dewline. Graphite monochrome; colour is light. Each spider carries its own lamp (champagne Tik,
   silver Loom, violet Pip), and tiles catch that light on their borders and surfaces. */
@font-face { font-family: "Geologica"; src: url("/fonts/Geologica-300-600.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-400-600.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-400-500.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
:root {
  --bg: #070708;
  --surface: #0e0e10;
  --surface-2: #151517;
  --hair: #1d1d21;
  --hair-2: #2c2c31;
  --text: #f0efea;
  --text-2: #b5b3ac;
  --text-3: #7c7b75;
  --loom: #becbdc;
  --pip: #b8aae8;
  --accent: #d9c7a0;
  --glow: 217 199 160;
  --up: #8fc3a4;
  --down: #d98b7c;
  --display: "Geologica", "Avenir Next", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); }
/* depth: a haze of light from above, a vignette and a still grain */
body { background:
  radial-gradient(1100px 520px at 50% -14%, rgb(var(--glow) / .075), transparent 62%),
  radial-gradient(140% 110% at 50% 45%, transparent 58%, rgb(0 0 0 / .62)), var(--bg); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 19; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* each spider's light on the page, moved by transform only */
.pool { position: fixed; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none; z-index: 15; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgb(var(--tint) / .11), rgb(var(--tint) / .035) 45%, transparent); }
body { font-family: var(--body); font-size: 15px; line-height: 1.5; padding-inline: 24px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
::selection { background: rgb(var(--glow) / 0.3); color: var(--text); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; touch-action: manipulation; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { flex: 1; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--text-2); }
#bug { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }

.app { height: 100%; max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 18px; padding-block: 14px 14px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 28px; min-width: 0; padding-bottom: 12px;
  background: linear-gradient(90deg, transparent, var(--hair-2) 18%, var(--hair-2) 82%, transparent) bottom / 100% 1px no-repeat; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.brand .gap { stroke: var(--bg); } /* the thread passes over the loop: a cut in the background colour */
.tabs { position: relative; display: flex; gap: 22px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; background: none; border: 0; padding: 8px 0; font-size: 14px; font-weight: 500; color: var(--text-3); cursor: pointer; white-space: nowrap; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .tabs button:hover { color: var(--text); } }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs .cnt { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--text-3); margin-left: 4px; }
.tabs .soon { font-size: 10.5px; font-weight: 500; color: var(--text-3); margin-left: 5px; padding: 1px 6px; border: 1px solid var(--hair-2); border-radius: 999px; vertical-align: 1px; }
.soonv { max-width: 560px; }
.tabs .ind { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgb(var(--glow) / .65); transition: transform .26s var(--ease-io), width .26s var(--ease-io); }
.status { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-2); white-space: nowrap;
  padding: 4px 6px 4px 16px; border: 1px solid var(--hair); border-radius: 999px; background: linear-gradient(#111113, #0b0b0d); box-shadow: inset 0 1px 0 rgb(255 255 255 / .04); }
.status .mono { font-size: 12px; color: var(--text-3); }
.tog { background: none; border: 1px solid transparent; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: var(--text-3); cursor: pointer; transition: color .2s ease, background-color .2s ease, transform .16s var(--ease-out); }
.tog:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tog:hover { color: var(--text-2); } }
.tog[aria-pressed="true"] { color: var(--text); background: rgb(255 255 255 / .06); }
.live { font-size: 12.5px; color: var(--text-3); padding-right: 8px; }
.live.on { color: var(--up); }
.live.on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); vertical-align: 1px; }
@media (max-width: 1180px) { .status .hide-md { display: none; } }

.views { min-height: 0; position: relative; }
.view { height: 100%; min-height: 0; animation: viewIn .18s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- market view ---------- */
.home { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; }
.hero { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; letter-spacing: -0.035em; margin: 0; text-wrap: balance; max-width: 26ch; }
.stats { display: flex; gap: 0; margin: 0; }
.pitch { min-width: 0; }
.deck { margin: 10px 0 0; max-width: 54ch; color: var(--text-2); font-size: 15px; }
.stat { padding: 0 22px; border-left: 1px solid var(--hair); min-width: 0; }
button.stat { background: none; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; display: block; font: inherit; color: inherit; transition: transform .16s var(--ease-out); }
button.stat:active { transform: scale(0.97); }
.stat .dt, .stat .dd { display: block; }
.stat .dt em { font-style: normal; color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { button.stat:hover .dt em { color: var(--text-2); } }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .dt { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.stat .dd { margin: 2px 0 0; font-family: var(--display); font-weight: 450; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the crew: a lamp in each spider's colour */
.crew .dt i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.crew .tik { --c: var(--accent); } .crew .loom { --c: var(--loom); } .crew .pip { --c: var(--pip); }
.stat .dd small { font-family: var(--body); font-weight: 400; font-size: 12.5px; color: var(--text-3); letter-spacing: 0; margin-left: 8px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.tiles.single { grid-template-columns: minmax(0, 1fr); grid-template-rows: 220px; }
.tile { position: relative; text-align: left; border: 1px solid color-mix(in oklab, var(--hair), rgb(var(--glow)) calc(var(--heat, 0) * 20%)); border-radius: 14px; padding: 14px 16px 0; cursor: pointer;
  background: linear-gradient(180deg, #131315, #0c0c0e 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 1px 0 rgb(0 0 0 / .6), 0 28px 50px -30px rgb(0 0 0 / .95);
  display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; isolation: isolate;
  transition: border-color .35s ease, opacity .3s ease, transform .16s var(--ease-out); }
/* Tik's light on the border: it glows on the side facing the spider */
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(240px circle at var(--lx, -999px) var(--ly, -999px), rgb(var(--glow) / 0.85), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--lit, 0); transition: opacity .25s ease; }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(340px circle at var(--lx, -999px) var(--ly, -999px), rgb(var(--glow) / 0.12), transparent 70%); opacity: var(--lit, 0); }
@media (hover: hover) and (pointer: fine) { .tile:hover { border-color: var(--hair-2); background: linear-gradient(180deg, #161618, #0e0e10 72%); } .tile:hover .ln { stroke-opacity: 1; } .tile:hover .hl { opacity: 1; } }
.tile:active { transform: scale(0.99); }
.tile:focus-visible { outline: 1px solid var(--accent); box-shadow: 0 0 0 3px rgb(var(--glow) / 0.15); }
.tile.hit { border-color: rgb(var(--glow) / 0.55); }
.tile .r1 { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tile .sym { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.02em; color: color-mix(in oklab, var(--text-2), var(--accent) calc(var(--heat, 0) * 75%)); }
.tile .nm { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.tile .sig { font-size: 12px; color: var(--accent); opacity: 0; transition: opacity .3s ease; }
.tile.hasfly .sig { opacity: 1; }
.tile .r1 { position: relative; }
.star { color: var(--accent); font-size: 11px; line-height: 1; }
.tile .open { position: absolute; right: 0; top: 0; font-size: 12px; color: var(--text-2); opacity: 0; transition: opacity .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) { .tile:hover .open { opacity: 1; } .tile:hover .sig { opacity: 0; } .tile .open:hover { color: var(--text); } }
.tile:focus-visible .open { opacity: 1; }
@media (hover: none) { .tile .open { display: none; } }
.tile .r2 { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.tile .px { font-family: var(--display); font-weight: 450; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .px i { font-style: normal; font-weight: 350; color: var(--text-3); }
.tile .px i:first-child { font-size: .6em; vertical-align: .5em; margin-right: .08em; }
.tile .px.tick-up { animation: tickU 1.2s var(--ease-out); } .tile .px.tick-down { animation: tickD 1.2s var(--ease-out); }
.tile .px.tick-up i, .tile .px.tick-down i { color: inherit; }
@keyframes tickU { from { color: var(--up); text-shadow: 0 0 22px rgb(143 195 164 / .55); } }
@keyframes tickD { from { color: var(--down); text-shadow: 0 0 22px rgb(217 139 124 / .55); } }
.tile .ch { font-family: var(--display); font-size: 13px; font-weight: 450; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 6px; }
.tile .ch.up { background: rgb(143 195 164 / .1); } .tile .ch.down { background: rgb(217 139 124 / .1); }
.tile .r3 { font-size: 12.5px; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .r3 b { font-weight: 400; color: var(--text-2); font-family: var(--display); }
.tile .r3 b.hot { color: var(--accent); }
.tile.closed .r3 b { color: var(--text); }
.tile svg { display: block; align-self: end; width: calc(100% + 32px); margin: 8px -16px 0; height: 100%; max-height: 104px; min-height: 36px; }
.tile .ln { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-opacity: 0.85; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke-opacity .2s ease; }
.tile svg { grid-row: 5; }
.tile .meta { display: none; }
@media (min-width: 1181px) { .tile.big .meta { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 18px; font-size: 13px; color: var(--text-3); } }
.tile.big .meta b { font-family: var(--display); font-weight: 450; font-size: 16px; color: var(--text); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tile .dot, .tile .halo { stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tile .dot { stroke-width: 5; } .tile .halo { stroke-width: 16; stroke-opacity: .16; }
.tile .base { stroke: var(--text-3); stroke-opacity: 0.35; stroke-dasharray: 2 3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tile .hl { font-family: var(--mono); font-size: 10.5px; fill: var(--text-3); opacity: 0; transition: opacity .2s ease; }
.tile.halt { opacity: 0.55; } .tile.halt .ln { stroke-dasharray: 3 3; }
.tile.loading .px { color: transparent; border-radius: 6px; width: 96px; background: linear-gradient(90deg, #151517 0%, #1c1c1f 50%, #151517 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (min-width: 1181px) {
  .tiles:not(.single) { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: dense; }
  .tile.big { grid-column: span 2; grid-row: span 2; padding: 22px 26px 0; }
  .tile.big .sym, .tile.big .nm { font-size: 14px; }
  .tile.big .r2 { margin-top: 10px; }
  .tile.big .px { font-size: clamp(40px, 3.6vw, 60px); }
  .tile.big .ch { font-size: 15px; }
  .tile.big .r3 { font-size: 13.5px; margin-top: 6px; }
  .tile.big svg { max-height: none; width: calc(100% + 52px); margin: 14px -26px 0; }
  .tile.big .dot { stroke-width: 7; } .tile.big .halo { stroke-width: 22; }
}
.strip { display: flex; align-items: baseline; gap: 14px; font-size: 13px; color: var(--text-2); min-width: 0; }
.strip .k { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.strip #lastCatch { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 52ch; }
.strip .src { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.strip .larder { flex: 1; align-self: stretch; min-width: 40px; } /* the spiders' larder: cocoons are drawn here on the canvas */

/* catch card: what a spider just caught, in plain words */
.card { position: fixed; left: 24px; bottom: 44px; z-index: 25; width: min(380px, calc(100vw - 32px)); padding: 14px 16px 15px; border-radius: 14px;
  background: linear-gradient(180deg, #151517, #0f0f11); border: 1px solid var(--hair-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 24px 60px -20px rgb(0 0 0 / .9);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
.card.out { opacity: 0; transform: translateY(8px); pointer-events: none; transition-duration: .16s; }
.card-top { display: flex; align-items: center; gap: 10px; }
.card-who { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--c, var(--accent)); }
.card-who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 10px var(--c, var(--accent)); }
.card.tik { --c: var(--accent); } .card.loom { --c: var(--loom); } .card.pip { --c: var(--pip); }
.card-tm { font-size: 11.5px; color: var(--text-3); }
.card-x { margin-left: auto; background: none; border: 0; padding: 2px 0; font-size: 12.5px; color: var(--text-3); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .card-x:hover { color: var(--text); } }
.card-title { margin: 8px 0 4px; font-family: var(--display); font-weight: 450; font-size: 17px; letter-spacing: -0.015em; line-height: 1.3; }
.card-body { margin: 0; font-size: 14px; color: var(--text-2); }
.card-why { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--text-3); }
.card-why:empty { display: none; }
body.pointy { cursor: pointer; }

/* intro: tiles open outward from where Tik lands (only when JS turned the mode on) */
html.intro .tile { opacity: 0; transform: translateY(6px); }
html.intro .tile.in { opacity: 1; transform: none; transition: opacity .36s var(--ease-out), transform .36s var(--ease-out), border-color .35s ease; }

/* ---------- forms and shared parts ---------- */
h2 { font-family: var(--display); font-weight: 350; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
h3 { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -0.01em; margin: 26px 0 6px; }
.lead { color: var(--text-2); margin: 0 0 22px; max-width: 56ch; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
label, .label { font-size: 12.5px; color: var(--text-3); }
select, textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--hair); border-radius: 10px; font: inherit; font-size: 16px; padding: 11px 13px; transition: border-color .2s ease; }
select:focus, textarea:focus { outline: none; border-color: rgb(var(--glow) / 0.6); }
textarea { resize: none; height: 116px; }
textarea::placeholder { color: var(--text-3); }
.seg { justify-self: start; width: max-content; display: inline-flex; border: 1px solid var(--hair); border-radius: 10px; padding: 3px; gap: 3px; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 7px; font-size: 14px; color: var(--text-3); cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.seg button[aria-checked="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair-2); }
.seg button#dirUp[aria-checked="true"] { color: var(--up); } .seg button#dirDown[aria-checked="true"] { color: var(--down); }
.seg.small button { padding: 6px 12px; font-size: 13px; }
.actions { display: flex; align-items: center; gap: 16px; }
.primary { background: var(--text); color: var(--bg); border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .16s var(--ease-out), opacity .2s ease; }
.primary:active { transform: scale(0.97); }
.primary:disabled { opacity: .45; cursor: default; }
.quota { font-size: 13px; color: var(--text-3); }
#verdict { min-height: 1.5em; color: var(--text-2); margin: 16px 0 0; }
#verdict.good { color: var(--up); } #verdict.bad { color: var(--down); }

/* ---------- feed Tik ---------- */
.fly { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 420px); gap: 64px; align-content: start; justify-content: start; padding-top: 8px; overflow-y: auto; }
.rules { margin: 22px 0 0; display: grid; gap: 14px; }
.rules div, .moods div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.rules dt, .moods dt { font-size: 13px; color: var(--text); }
.rules dd, .moods dd { margin: 0; font-size: 14px; color: var(--text-2); }

/* ---------- catch ---------- */
.feedv { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding-top: 8px; max-width: 1080px; }
.feedhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.feedhead h2 { margin: 0; }
.feedv .feedhead .seg { margin-left: auto; } /* the spider filter sits next to the stock filter */
.feedwrap { overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li[data-sym] { cursor: pointer; }
.feed li.day { display: block; padding: 18px 0 6px; font-size: 12.5px; color: var(--text-3); border-top: 0; animation: none; }
.more { margin: 14px 0 8px; background: none; border: 1px solid var(--hair-2); border-radius: 999px; padding: 7px 16px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: color .2s ease, border-color .2s ease, transform .16s var(--ease-out); }
.more:active { transform: scale(0.97); } .more:disabled { opacity: .5; cursor: default; }
@media (hover: hover) and (pointer: fine) { .more:hover { color: var(--text); border-color: var(--text-3); } }
.feed li { display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) 128px 72px; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--hair); animation: rowIn .24s var(--ease-out); }
.feed li:first-child { border-top: 0; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px); background: rgb(var(--glow) / 0.06); } to { opacity: 1; transform: none; background: transparent; } }
.feed .tm { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.feed .tk { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.feed .hl { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.feed .vd { font-size: 13px; }
.feed .vd.c { color: var(--accent); } .feed .vd.s { color: var(--down); } .feed .vd.m { color: var(--up); } .feed .vd.h { color: var(--text-3); }
.acc { color: var(--accent); }
.feed .mv { font-family: var(--display); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.empty { color: var(--text-3); }

/* ---------- all stocks ---------- */
.allv { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding-top: 8px; max-width: 1180px; }
.search input { width: min(280px, 60vw); background: var(--surface); color: var(--text); border: 1px solid var(--hair); border-radius: 10px; font: inherit; font-size: 16px; padding: 8px 12px; transition: border-color .2s ease; }
.search input:focus { outline: none; border-color: rgb(var(--glow) / 0.6); }
.search input::placeholder { color: var(--text-3); }
.tablewrap { overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; }
table.all { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.all thead th { position: sticky; top: 0; z-index: 1; background: var(--bg); text-align: left; font-weight: 400; padding: 0 0 8px; }
.all thead th.r { text-align: right; }
.all thead button { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--text-3); cursor: pointer; }
.all thead th[aria-sort] button { color: var(--text); }
.all thead th[aria-sort="descending"] button::after { content: " ↓"; } .all thead th[aria-sort="ascending"] button::after { content: " ↑"; }
.all td { padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; white-space: nowrap; }
.all td + td, .all th + th { padding-left: 18px; }
.all td.r { text-align: right; font-family: var(--display); }
.all tbody tr[data-sym] { cursor: pointer; transition: background-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .all tbody tr[data-sym]:hover { background: rgb(255 255 255 / .025); } }
.all tbody tr[data-sym]:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.all .stk { display: flex; align-items: baseline; gap: 10px; }
.all .stk .sym { font-family: var(--mono); font-weight: 500; font-size: 13px; min-width: 52px; }
.all .stk .nm { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.all .prem { color: var(--text-3); font-size: 13px; }
.all .prem.hot { color: var(--accent); }
.all .grp th { text-align: left; font-weight: 400; font-size: 12.5px; color: var(--accent); padding: 14px 0 6px; }
#liveRows tr td { background: rgb(var(--glow) / .03); }
.all .caught { font-size: 12px; color: var(--accent); }
.all .stk .star { align-self: center; margin-left: -4px; }
.all.no-prem :is(th, td):nth-child(4), .all.no-vol :is(th, td):nth-child(5), .all.no-trades :is(th, td):nth-child(6), .all.no-holders :is(th, td):nth-child(7) { display: none; }
.fundtag { font-family: var(--body); font-size: 11px; color: var(--text-3); border: 1px solid var(--hair-2); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
.tile .fundtag { align-self: center; }

/* ---------- today ---------- */
.dayv { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 460px); gap: 32px 72px; align-items: start; align-content: start; padding-top: 8px; padding-bottom: 24px; overflow-y: auto; }
.day-main h3:first-of-type { margin-top: 22px; }
.three { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.three li { font-family: var(--display); font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; color: var(--text-2); text-wrap: pretty; }
.three li[data-sym] { cursor: pointer; }
.three b { font-weight: 450; color: var(--text); font-variant-numeric: tabular-nums; }
.three b.up { color: var(--up); } .three b.down { color: var(--down); } .three b.acc { color: var(--accent); }
.cod { margin: 4px 0 0; color: var(--text-2); max-width: 60ch; }
.cod.on { cursor: pointer; }
.who { display: inline-flex; align-items: center; gap: 6px; color: var(--c, var(--accent)); font-size: 13.5px; }
.who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); }
.who.tik { --c: var(--accent); } .who.loom { --c: var(--loom); } .who.pip { --c: var(--pip); }
.movers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; margin-top: 6px; }
.movers ol, ol.movers { list-style: none; margin: 0; padding: 0; }
.movers li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.movers li[data-sym] { cursor: pointer; }
.movers li:first-child { border-top: 0; }
.movers .tk { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.movers .nm { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movers .v { font-family: var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.movers li.none { display: block; color: var(--text-3); }
ol.movers.single { display: block; margin: 4px 0 12px; }
.closed p { color: var(--text-2); margin: 4px 0 8px; max-width: 62ch; }
.closed p.note { font-size: 13px; color: var(--text-3); }
.closed p.score { color: var(--accent); }
.closed p.empty { color: var(--text-3); }
.day-side h3:first-child { margin-top: 0; }
.day-side { position: sticky; top: 0; }
.tape { list-style: none; margin: 8px 0 0; padding: 0; }
.tape li { display: grid; grid-template-columns: 46px 58px 40px minmax(0, 1fr) 22px; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 14px; cursor: pointer; animation: rowIn .24s var(--ease-out); }
.tape li:first-child { border-top: 0; }
.tape .tm { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.tape .tk { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.tape .sd { font-size: 13px; }
.tape .us { font-family: var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.tape .tx { font-size: 12px; color: var(--text-3); text-decoration: none; text-align: right; }
@media (hover: hover) and (pointer: fine) { .tape .tx:hover { color: var(--text); text-decoration: underline; } }

/* ---------- stock page: a drawer on the right ---------- */
.drawer { position: fixed; top: 14px; right: 14px; bottom: 14px; z-index: 24; width: min(460px, calc(100vw - 28px)); display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 14px;
  background: linear-gradient(180deg, #151517, #0e0e10); border: 1px solid var(--hair-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 30px 80px -20px rgb(0 0 0 / .95);
  opacity: 0; transform: translateX(14px); transition: opacity .22s var(--ease-out), transform .26s var(--ease-out); }
.drawer.in { opacity: 1; transform: none; }
.dw-top { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--hair); min-width: 0; }
.dw-sym { font-weight: 500; font-size: 14px; color: var(--accent); }
.dw-nm { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dw-top .fundtag { align-self: center; }
.dw-top .tog { border-color: var(--hair-2); flex: none; }
.dw-top .tog[aria-pressed="true"] { color: var(--accent); }
.dw-top .card-x { margin-left: 4px; flex: none; }
.dw-scroll { overflow-y: auto; padding: 16px 20px 20px; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; }
.dw-px { display: flex; align-items: baseline; gap: 12px; }
.dw-px .px { font-family: var(--display); font-weight: 450; font-size: 40px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.dw-px .px i { font-style: normal; font-weight: 350; color: var(--text-3); }
.dw-px .px i:first-child { font-size: .6em; vertical-align: .5em; margin-right: .08em; }
.dw-px .ch { font-family: var(--display); font-size: 15px; font-weight: 450; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 6px; }
.dw-px .ch.up { background: rgb(143 195 164 / .1); } .dw-px .ch.down { background: rgb(217 139 124 / .1); }
.dw-prem { margin: 4px 0 0; font-size: 14px; color: var(--text-2); min-height: 1.5em; }
.dw-chart { display: block; width: 100%; height: 150px; margin: 14px 0 6px; }
.dw-chart polyline, .dw-chart path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dw-chart .tk { stroke: var(--text); stroke-width: 1.6; }
.dw-chart .st { stroke: var(--loom); stroke-width: 1.3; stroke-dasharray: 4 3; stroke-opacity: .85; }
.dw-legend { display: flex; gap: 18px; margin: 0; font-size: 12.5px; color: var(--text-3); }
.dw-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dw-legend .lt::before, .dw-legend .ls::before { content: ""; width: 16px; height: 0; border-top: 1.6px solid var(--text); }
.dw-legend .ls::before { border-top: 1.3px dashed var(--loom); }
.dw-note { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); }
.dw-note:empty { display: none; }
.dw-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.dw-meta b { font-family: var(--display); font-weight: 450; font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.drawer h3 { font-size: 16px; margin: 22px 0 4px; }
.dw-list { list-style: none; margin: 0; padding: 0; }
.dw-list li { display: grid; grid-template-columns: 50px 46px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 13.5px; cursor: pointer; }
.dw-list li:first-child { border-top: 0; }
.dw-list .tm { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.dw-list .who { font-size: 12.5px; }
.dw-list .hl { color: var(--text-2); min-width: 0; }
#dwTrades li { grid-template-columns: 46px 58px 40px minmax(0, 1fr) 22px; gap: 10px; }
#dwTrades .tk { font-family: var(--mono); font-weight: 500; font-size: 13px; }
#dwTrades .us { font-family: var(--display); font-variant-numeric: tabular-nums; text-align: right; }
#dwTrades .tx { font-size: 12px; color: var(--text-3); text-decoration: none; text-align: right; }
.dw-list li.none { display: block; color: var(--text-3); cursor: default; }
.dw-foot { margin: 20px 0 0; font-size: 13px; }
.dw-foot a { color: var(--text-2); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .dw-foot a:hover { color: var(--text); } .dw-list li[tabindex]:hover .hl { color: var(--text); } }

/* ---------- hunters ---------- */
.lbv { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 360px); gap: 64px; align-content: start; padding-top: 8px; overflow-y: auto; }
.tagx { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 8px; letter-spacing: 0; }
table.lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 10px; }
.lb th { text-align: left; font-weight: 400; font-size: 12.5px; color: var(--text-3); padding: 0 0 10px; }
.lb td { padding: 11px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.lb .n { width: 40px; color: var(--text-3); }
.lb .r { text-align: right; font-family: var(--display); }
.lb tfoot td { border-top: 1px solid var(--hair-2); color: var(--accent); }
.prizebox { padding-top: 4px; }
.prizebox h3 { margin-top: 0; }
.prize { font-family: var(--display); font-weight: 300; font-size: 40px; letter-spacing: -0.03em; margin: 4px 0 6px; }
.sub { color: var(--text-2); font-size: 14px; margin: 0; }
.split { margin: 18px 0 0; }
.split div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.split dt { color: var(--text-2); } .split dd { margin: 0; font-family: var(--display); }

/* ---------- how it works ---------- */
.howv { overflow-y: auto; padding-top: 8px; }
.how { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 520px); gap: 32px 72px; align-items: start; padding-bottom: 24px; }
.how p { color: var(--text-2); margin: 0 0 10px; max-width: 64ch; }
.how .how-lead { font-family: var(--display); font-size: 21px; line-height: 1.4; letter-spacing: -0.01em; color: var(--text); margin-bottom: 8px; }
.how-side { padding-top: 46px; }
.how-side h3:first-child { margin-top: 0; }
.crewlist, .readlist { margin: 10px 0 0; display: grid; gap: 16px; }
.crewlist dt i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.crewlist .pip { --c: var(--pip); } .crewlist .loom { --c: var(--loom); } .crewlist .tik { --c: var(--accent); }
.crewlist dt { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.crewlist dt em { font-style: normal; color: var(--text-3); font-size: 13.5px; }
.crewlist dd { padding-left: 15px; }
.crewlist dd, .readlist dd { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.readlist div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
.readlist dt { font-size: 13.5px; color: var(--text); }
.readlist dd { margin: 0; }
.moods { margin: 8px 0 0; display: grid; gap: 12px; }

/* ---------- short laptop screens ---------- */
@media (max-height: 800px) and (min-width: 761px) {
  .app { gap: 12px; padding-block: 10px 10px; }
  .top { padding-bottom: 8px; }
  h1 { font-size: 26px; }
  .stat .dd { font-size: 18px; }
  .stat .dd small { display: none; }
  .tile { padding-top: 10px; }
  .tile .r2 { margin-top: 2px; }
  .tile .px { font-size: 22px; }
  .tile svg { min-height: 30px; margin-top: 4px; }
  .tile.big { padding-top: 16px; }
  .strip .src { display: none; }
}
@media (max-width: 1080px) and (min-width: 761px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 0 14px; }
  .fly, .lbv { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .how { grid-template-columns: minmax(0, 1fr); } .how-side { padding-top: 0; }
  .dayv { grid-template-columns: minmax(0, 1fr); } .day-side { position: static; }
}

/* ---------- phones: tiles become rows ---------- */
@media (max-width: 760px) {
  body { padding-inline: 16px; }
  .top { flex-wrap: wrap; gap: 10px 16px; }
  .tabs { order: 3; width: 100%; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
  .status #mkt { display: none; }
  .view { overflow-y: auto; overflow-x: hidden; }
  .home { grid-template-rows: auto auto auto; align-content: start; }
  .hero { gap: 12px; }
  h1 { font-size: 24px; }
  .stats { width: 100%; }
  .deck { font-size: 14px; margin-top: 6px; }
  .card { left: 16px; bottom: 12px; }
  .stat { padding: 0 12px; flex: 1; }
  .stat .dd { font-size: 17px; } .stat .dd small { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 68px; gap: 8px; }
  .tile { grid-template-columns: minmax(0, 1fr) 76px auto; grid-template-rows: auto auto; column-gap: 12px; padding: 10px 14px; align-items: center; }
  .tile .r1 { grid-column: 1; grid-row: 1; }
  .tile .r3 { grid-column: 1; grid-row: 2; margin: 0; }
  .tile svg { grid-column: 2; grid-row: 1 / 3; width: 76px; height: 36px; min-height: 0; margin: 0; align-self: center; }
  .tile .r2 { grid-column: 3; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; gap: 0; margin: 0; }
  .tile .px { font-size: 18px; }
  .stat .dt { font-size: 11.5px; } .crew .stat .dt { white-space: normal; }
  .tile .ch { font-size: 12.5px; }
  .tile .sig { display: none; }
  .strip .src { display: none; }
  .fly, .lbv { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how { grid-template-columns: minmax(0, 1fr); } .how-side { padding-top: 0; }
  .readlist div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dayv { grid-template-columns: minmax(0, 1fr); gap: 28px; } .day-side { position: static; }
  .three li { font-size: 17px; }
  .movers { grid-template-columns: minmax(0, 1fr); }
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(86dvh, 720px); }
  .dw-px .px { font-size: 32px; }
  .strip .larder { min-width: 0; }
  .all .trades, .all .holders, .all th:nth-child(6), .all th:nth-child(7), .all .prem, .all th:nth-child(4) { display: none; }
  .all .stk .nm { max-width: 84px; }
  .all .caught, .all .stk .fundtag { display: none; } /* the "Just caught" group already says it */
  .all td + td, .all th + th { padding-left: 12px; }
  .feed li { grid-template-columns: 48px 52px minmax(0, 1fr); }
  .feed .vd { grid-column: 1 / 3; white-space: nowrap; } .feed .mv { grid-column: 3; text-align: right; }
  .all .vol, .all th:nth-child(5) { display: none; } /* phones: stock, price and 24h fit without sideways scrolling */
}

@media (prefers-reduced-motion: reduce) {
  .view, .feed li, .tape li { animation: none; }
  .drawer { transform: none; transition: opacity .2s ease; }
  html.intro .tile { opacity: 1; transform: none; }
  .tile.loading .px, .tile .px.tick-up, .tile .px.tick-down { animation: none; }
}

