/* calloutsx · terminal palette (same tokens as the CALLIT kit), JetBrains Mono (OFL, fonts/OFL.txt) */
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin-800-normal.woff2) format('woff2'); }

:root { --bg: #0A0C0D; --p1: #0E1113; --p2: #13171A; --ln: #1D2327; --ln2: #2A3237; --tx: #E4EAE6; --dim: #9AA49F; --mut: #7A857F; --g: #5CF08A; --g2: #2E7D49; --a: #FFC447; --r: #FF6B5E; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--tx); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.in { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
main.in { padding-top: 34px; padding-bottom: 80px; }

/* header */
.hdr { border-bottom: 1px solid var(--ln); position: sticky; top: 0; background: rgba(10,12,13,.92); backdrop-filter: blur(8px); z-index: 5; }
.hdr .in { height: 62px; display: flex; align-items: center; gap: 30px; }
.logo { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; text-decoration: none; }
.logo i { width: 10px; height: 19px; background: var(--g); display: inline-block; margin-left: 3px; animation: cur 1.05s steps(1) infinite; }
@keyframes cur { 50% { opacity: 0; } }
.nav { display: flex; gap: 22px; align-items: center; margin-left: auto; font-size: 13.5px; color: var(--dim); }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--tx); }
.nav a.on { color: var(--tx); border-color: var(--g); }

/* type */
h1 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.045em; }
h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.sub { color: var(--dim); margin: 8px 0 0; max-width: 640px; }
.mut { color: var(--mut); }
.g { color: var(--g); } .r { color: var(--r); } .a { color: var(--a); }
.num { font-variant-numeric: tabular-nums; }
.mono-addr { font-size: 12.5px; color: var(--dim); }

/* buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--ln2); background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.btn:hover { border-color: var(--dim); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.pri { background: var(--g); border-color: var(--g); color: #06140B; }
.btn.pri:hover:not(:disabled) { background: #7DF5A4; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12px; }
.btn.dng:hover { border-color: var(--r); color: var(--r); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--dim); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.linkbtn:hover { color: var(--tx); }
input[type=text], input[type=password], input[type=url], textarea { width: 100%; background: var(--p1); border: 1px solid var(--ln2); padding: 11px 13px; outline: none; }
input:focus, textarea:focus { border-color: var(--g2); }
textarea { resize: vertical; min-height: 150px; }
.ca-input { font-size: 16px; height: 54px; }
label.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
input[type=checkbox] { accent-color: var(--g); width: 15px; height: 15px; }

/* panels */
.panel { border: 1px solid var(--ln); background: var(--p1); }
.panel + .panel { margin-top: 18px; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ln); font-size: 11.5px; letter-spacing: .12em; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.pb { padding: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }

/* coin */
.coin { display: flex; align-items: center; gap: 14px; min-width: 0; }
.coin img, .coin .ph-img { width: 52px; height: 52px; object-fit: cover; background: var(--p2); border: 1px solid var(--ln2); flex: none; }
.coin.sm img, .coin.sm .ph-img { width: 36px; height: 36px; }
.coin b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin.sm b { font-size: 15px; }
.coin small { color: var(--mut); font-size: 12px; }
.stats { display: flex; gap: 26px; flex-wrap: wrap; }
.stat small { display: block; font-size: 11px; letter-spacing: .1em; color: var(--mut); text-transform: uppercase; }
.stat b { font-size: 16px; font-weight: 700; }

/* table */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .1em; color: var(--mut); font-weight: 700; padding: 9px 16px; border-bottom: 1px solid var(--ln); text-transform: uppercase; }
td { padding: 11px 16px; border-bottom: 1px solid var(--ln); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.off td { color: var(--mut); }
td.r-al, th.r-al { text-align: right; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; padding: 2px 7px; border: 1px solid var(--ln2); color: var(--dim); text-transform: uppercase; }
.tag.g { border-color: var(--g2); color: var(--g); }
.tag.a { border-color: #6b5521; color: var(--a); }

/* drop zone */
.drop { border: 1px dashed var(--ln2); padding: 22px; text-align: center; color: var(--dim); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.drop:hover, .drop.over { border-color: var(--g); background: rgba(92,240,138,.04); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 120px; height: 120px; border: 1px solid var(--ln2); background: var(--p2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; background: rgba(0,0,0,.75); cursor: pointer; font-weight: 700; }
.counter { font-size: 12px; color: var(--mut); }
.counter.over { color: var(--r); }

/* board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--ln); background: var(--p1); text-decoration: none; transition: border-color .15s ease, transform .15s ease; min-width: 0; }
.card:hover { border-color: var(--g2); transform: translateY(-2px); }
.card .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.card .thesis { padding: 12px 16px 0; color: var(--tx); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.card .img { margin: 14px 16px 0; aspect-ratio: 16 / 9; background: var(--p2) center / cover no-repeat; border: 1px solid var(--ln); }
.card .ft { margin-top: auto; padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--ln); margin-top: 14px; }
.empty { border: 1px dashed var(--ln2); padding: 46px 24px; text-align: center; color: var(--dim); }

/* detail */
.thesis-full { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.6; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery a { display: block; border: 1px solid var(--ln2); }
.gallery img { width: 100%; display: block; max-height: 520px; object-fit: contain; background: var(--p2); }
.steps { margin: 0; padding-left: 18px; color: var(--dim); }
.steps li + li { margin-top: 4px; }
.pumprow td:last-child { white-space: nowrap; }
.linkform { display: flex; gap: 8px; margin-top: 8px; }
.linkform input { height: 32px; padding: 4px 10px; font-size: 12.5px; }

/* misc */
.notice { border: 1px solid #6b5521; background: rgba(255,196,71,.06); color: var(--a); padding: 11px 14px; font-size: 13px; }
.err { border: 1px solid #6b2a25; background: rgba(255,107,94,.06); color: var(--r); padding: 11px 14px; font-size: 13px; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ln2); border-top-color: var(--g); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--p2); border: 1px solid var(--g2); padding: 10px 16px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 20; max-width: calc(100vw - 40px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { border-color: var(--r); color: var(--r); }
.narrow { max-width: 420px; }

@media (max-width: 720px) {
  .in { padding: 0 16px; }
  h1 { font-size: 26px; }
  .nav { gap: 12px; font-size: 12px; white-space: nowrap; overflow-x: auto; }
  .hdr .in { gap: 12px; height: 54px; }
  .logo { font-size: 17px; }
  .logo i { width: 8px; height: 16px; }
  .pumprow td { display: block; border-bottom: 0; padding: 8px 12px 0; }
  .pumprow td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--ln); text-align: left; }
  .pumprow .row { justify-content: flex-start; }
  td, th { padding: 9px 10px; }
  .hide-sm { display: none; }
  .board { grid-template-columns: 1fr; }
}

/* chains */
.tag.chain { font-size: 9.5px; padding: 1px 5px; letter-spacing: .08em; vertical-align: 1px; }
.ph em { font-style: normal; font-weight: 400; letter-spacing: .04em; text-transform: none; }

/* hand-off sites */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
td.r-al .chips { justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px dashed var(--ln2); background: transparent; color: var(--dim); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
button.chip:hover { border-color: var(--g2); color: var(--tx); }
.chip.on { border: 1px solid var(--g2); color: var(--g); cursor: default; padding-right: 4px; }
.chip.on a { text-decoration: none; }
.chip.on a:hover { text-decoration: underline; }
.chip.on button { border: 0; background: none; color: var(--mut); cursor: pointer; font-weight: 700; padding: 0 4px; }
.chip.on button:hover { color: var(--r); }
.small { font-size: 11.5px; margin-top: 6px; }
.notes { margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--mut); }
.notes li + li { margin-top: 3px; }
.notes b { color: var(--dim); }
.linkform .btn { flex: none; }

/* one call per wallet */
.drop.sm { padding: 14px; font-size: 12.5px; }
.ph a.mono-addr, .ph em { text-transform: none; letter-spacing: .02em; }
.ph a.mono-addr { text-decoration: none; }
.ph a.mono-addr:hover { color: var(--tx); }
.handoff { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--ln); padding-top: 14px; }
.handoff .linkform { margin-top: 0; max-width: 560px; }
.stack > h2 { margin: 6px 0 -2px; }
