/* Cedent. Hyperliquid's colours: deep green ground, mint accent. Mobile first. */
:root { --bg: #041F1A; --s1: #082A24; --s2: #0D352E; --line: rgba(151,252,228,.14); --line-2: rgba(151,252,228,.3); --ink: #F2FBF8; --ink-2: rgba(242,251,248,.74); --ink-3: rgba(242,251,248,.52); --mint: #97FCE4; --on-mint: #04201B; --neg: #F58A9A; --warn: #F5C875;
  --head: "Newsreader", "Iowan Old Style", Georgia, serif; --sans: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace; --ease: cubic-bezier(.2,.8,.2,1); --pad: 20px; --A: 2.2026; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* film grain over everything, so flat colour and bright paint are softer on the eyes */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: .42; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: var(--mint); color: var(--on-mint); } :focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; } p { margin: 0; } img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--on-mint); padding: 8px 12px; z-index: 90; border-radius: 8px; } .skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--head); font-weight: 300; letter-spacing: -.025em; line-height: 1.02; font-optical-sizing: auto; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 13vw, 66px); } h2 { font-size: clamp(34px, 9.4vw, 46px); line-height: 1.04; } h3 { font-size: 26px; font-weight: 400; letter-spacing: -.015em; line-height: 1.1; }
.lede { color: var(--ink-2); max-width: 32em; }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px; transition: background-color .3s; }
.top.solid { background: rgba(4,31,26,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 400; font-size: 25px; letter-spacing: -.02em; text-decoration: none; } .logo svg { width: 24px; height: 24px; }
.top nav { display: none; } .sp { flex: 1; }
.net { display: none; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); } .net i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.btn { font: inherit; font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 10px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); } .btn[disabled] { opacity: .45; cursor: default; }
.btn.a { background: var(--mint); color: var(--on-mint); } .btn.a:hover { background: #BBFFF0; }
.btn.b { background: rgba(151,252,228,.08); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); } .btn.b:hover { background: rgba(151,252,228,.16); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 8px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .stats > div { padding: 16px var(--pad); } .stats > div:nth-child(odd) { border-right: 1px solid var(--line); } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--mono); font-weight: 500; font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .stats span { font-size: 13.5px; color: var(--ink-2); }
.toast { position: fixed; left: var(--pad); right: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateY(30px); opacity: 0; background: var(--ink); color: var(--bg); padding: 13px 16px; border-radius: 12px; font-size: 15.5px; font-weight: 500; transition: transform .35s var(--ease), opacity .25s; z-index: 85; pointer-events: none; } .toast.show { opacity: 1; transform: none; } .toast.bad { background: var(--neg); color: #2A070D; }
.pos { color: var(--mint); } .neg { color: var(--neg); } .warn { color: var(--warn); }
@media (min-width: 900px) { :root { --pad: clamp(28px, 4.4vw, 80px); } body { font-size: 18px; } h1 { font-size: clamp(72px, 7.6vw, 128px); } h2 { font-size: clamp(46px, 4.4vw, 76px); }
  .top { gap: 28px; padding: 16px var(--pad); } .top nav { display: flex; gap: 26px; } .top nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color .2s; } .top nav a:hover { color: var(--mint); } .net { display: inline-flex; } .logo { font-size: 23px; }
  .stats { grid-template-columns: repeat(4, 1fr); } .stats > div { padding: 22px var(--pad); border-top: 0 !important; border-right: 1px solid var(--line); } .stats > div:last-child { border-right: 0; } .stats b { font-size: 34px; }
  .toast { left: 50%; right: auto; max-width: 560px; transform: translate(-50%, 30px); } .toast.show { transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.app { padding: calc(74px + env(safe-area-inset-top)) 0 40px; max-width: 1400px; margin: 0 auto; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--pad) 18px; } .app-head h1 { font-size: clamp(40px, 10vw, 64px); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 16px var(--pad) 4px; scrollbar-width: none; } .filters::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-size: 15px; font-weight: 600; min-height: 42px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color .2s, color .2s; } .chip.on { background: var(--mint); color: var(--on-mint); box-shadow: none; }
.grid { display: grid; gap: 12px; padding: 14px var(--pad) 0; } .empty { color: var(--ink-3); }
.pcard { background: var(--s1); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 18px; display: flex; flex-direction: column; opacity: 0; animation: rise .5s var(--ease) forwards; transition: box-shadow .25s; } .pcard:hover { box-shadow: inset 0 0 0 1px var(--line-2); } @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pcard header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .pcard h3 { font-size: 28px; } .pcard small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.tag { flex: none; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; } .tag.sale { color: var(--mint); } .tag.armed { color: var(--warn); box-shadow: inset 0 0 0 1px rgba(245,200,117,.4); } .tag.live { color: var(--neg); box-shadow: inset 0 0 0 1px rgba(245,138,154,.5); }
.pcard dl { margin: 16px 0 0; } .pcard dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); } .pcard dt { font-size: 14.5px; color: var(--ink-2); } .pcard dd { margin: 0; font-family: var(--mono); font-size: 14.5px; font-variant-numeric: tabular-nums; text-align: right; }
.hbar { position: relative; height: 4px; border-radius: 4px; background: var(--s2); margin-top: 4px; } .hbar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--mint); transition: width .8s var(--ease); } .hbar.mid i { background: var(--warn); } .hbar.low i { background: var(--neg); } .hbar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.pcard footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 16px; } .pcard footer .p { font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .pcard footer .p small { font-family: var(--sans); font-size: 13px; letter-spacing: 0; margin-top: 2px; } .pcard footer .btn { min-height: 46px; }
.pcard dl + footer, .hbar + footer { margin-top: 16px; }
.fine { padding: 30px var(--pad) 0; font-size: 13px; color: var(--ink-3); } .fine span { font-family: var(--mono); overflow-wrap: anywhere; }
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; background: rgba(2,14,12,.72); } .sheet[hidden] { display: none; }
.sheet-box { background: var(--s1); padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; box-shadow: 0 -1px 0 var(--line-2); } .sheet-box h3 { font-size: 26px; margin-bottom: 8px; } .sheet-box p { color: var(--ink-2); margin-bottom: 16px; font-size: 16px; } .sheet-box label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; } .sheet-box input { width: 100%; font: inherit; font-family: var(--mono); font-size: 20px; padding: 13px 14px; border: 0; border-radius: 10px; background: var(--s2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); } .sheet-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .app { padding-top: 110px; } .stats { margin: 0 var(--pad); border: 1px solid var(--line); border-radius: 14px; } .grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; } .sheet { align-items: center; justify-items: center; } .sheet-box { width: min(100%, 440px); border-radius: 18px; padding: 28px; } }

/* live figures as one quiet line, not a grid */
.stats { display: flex; flex-wrap: wrap; gap: 6px 22px; border: 0 !important; margin: 0 var(--pad) !important; padding: 0; border-radius: 0 !important; } .stats > div { padding: 0 !important; border: 0 !important; display: flex; align-items: baseline; gap: 7px; } .stats b { font-size: 16px !important; display: inline; } .stats span { font-size: 14px; }

.logo img { width: 28px; height: 28px; display: block; }

/* logo: the mark matches the height of the capital C and sits on the same line */
.logo { line-height: 1; align-items: baseline; gap: 7px; } .logo img { width: auto; height: .82em; transform: translateY(.08em); align-self: auto; }

/* header shows the mark alone; the name appears in the hero */
.logo img { height: 32px; transform: none; } .logo { padding: 4px 0; }

/* forms in the sheet */
.sheet-text { color: var(--ink-2); font-size: 15.5px; margin-bottom: 16px; } .sheet-text code { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; color: var(--ink); } .sheet-text a { color: var(--mint); } .sheet-text b { color: var(--ink); font-weight: 500; } .warn { color: var(--warn) !important; }
#sheet-fields { display: grid; gap: 6px; } #sheet-fields label { font-size: 14px; color: var(--ink-2); margin-top: 8px; } #sheet-fields small { font-size: 12.5px; color: var(--ink-3); }
#sheet-fields input:not([type=radio]), #sheet-fields select { width: 100%; font: inherit; font-family: var(--mono); font-size: 18px; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--s2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-appearance: none; appearance: none; }
#sheet-fields select { font-family: var(--sans); font-size: 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--s2); margin-top: 4px; } .seg label { margin: 0 !important; } .seg input { position: absolute; opacity: 0; pointer-events: none; } .seg span { display: block; text-align: center; padding: 10px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; } .seg input:checked + span { background: var(--mint); color: var(--on-mint); } .seg input:focus-visible + span { outline: 2px solid var(--mint); }
.menu { display: grid; gap: 8px; } .menu .btn { width: 100%; justify-content: flex-start; }
.sheet-box { max-height: 92svh; overflow-y: auto; } .sheet-acts .btn[hidden] { display: none; } .sheet-acts:has(#sheet-ok[hidden]) { grid-template-columns: 1fr; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; } .acts .btn { min-height: 44px; padding: 0 8px; font-size: 14.5px; }
.pcard .note { margin-top: 10px; font-size: 13px; } .acct a { color: var(--ink-2); font-family: var(--mono); }
.pcard dl > div dt .pos, .pcard dl > div dt .neg { font-weight: 500; }
.pcard .acct { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); } .pcard .acct a { font-size: 12.5px; color: var(--ink-2); text-underline-offset: 3px; } .pcard .hbar + .acct, .pcard footer + .acct, .pcard .acts + .acct { margin-top: 14px; }
.tag.lockd { color: #BFD8FF; box-shadow: inset 0 0 0 1px rgba(191,216,255,.45); }
