/* Proof of Build — "certification office" design system.
   Paper surfaces, hairline rules, serif document titles, and one deep
   verification green reserved for verification itself. */

:root {
  --paper: #F6F8F5;          /* page background */
  --paper-2: #EDF1EC;        /* recessed panels, table heads */
  --card: #FFFFFF;
  --ink: #17221C;            /* headings and primary buttons */
  --ink-hover: #243329;
  --ink-2: #51605A;          /* secondary text */
  --ink-3: #83918A;          /* muted labels */
  --rule: #E2E8E2;           /* hairlines */
  --rule-strong: #CBD5CD;
  --accent: #0E6B43;         /* verification green */
  --accent-deep: #0A5233;
  --accent-tint: #E7F2EB;
  --amber: #96600A;
  --amber-tint: #F9EFD9;
  --bad: #B3261E;
  --bad-tint: #FBEAE8;
  --code-bg: #152019;        /* dark code sheet */
  --code-ink: #D9E5DD;
  --radius-lg: 16px;
  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(23, 34, 28, .05), 0 14px 32px -20px rgba(23, 34, 28, .22);
  --shadow-pop: 0 1px 2px rgba(23, 34, 28, .06), 0 28px 56px -28px rgba(23, 34, 28, .3);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: rgba(14, 107, 67, .18); }
a { color: var(--accent-deep); }
code, pre { font-family: var(--mono); }
code { font-size: .86em; background: var(--paper-2); padding: .12em .4em; border-radius: 5px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { flex: none; vertical-align: -3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Graded paper stage: even light wash, a soft green breath top right, and a
   faint security-paper ruling that fades out below the fold. */
.stage {
  position: relative; isolation: isolate; color: var(--ink); min-height: 70vh; padding-bottom: 88px;
  background:
    radial-gradient(1000px 460px at 92% -14%, rgba(14, 107, 67, .07), transparent 62%),
    radial-gradient(900px 420px at -8% -18%, rgba(23, 34, 28, .05), transparent 60%),
    linear-gradient(180deg, #EDF2EC 0%, var(--paper) 460px);
}
.stage::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 620px; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(23, 34, 28, .045) 0 1px, transparent 1px 28px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 92%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 92%);
}
.stage > * { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px;
  padding: 11px 18px; background: var(--ink); color: #fff; font: 600 14.5px/1.2 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 1px 2px rgba(23, 34, 28, .25);
  transition: background .15s, border-color .15s, transform .08s, box-shadow .2s;
}
.btn:hover { background: var(--ink-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn[hidden] { display: none; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--rule-strong); box-shadow: 0 1px 2px rgba(23, 34, 28, .05); font-weight: 600; }
.btn-ghost:hover { background: var(--paper); border-color: #B4C1B7; box-shadow: 0 1px 2px rgba(23, 34, 28, .05); }
.btn-quiet { background: var(--paper-2); color: var(--ink); border: 1px solid transparent; box-shadow: none; font-weight: 600; }
.btn-quiet:hover { background: #E2E9E2; box-shadow: none; }
.btn.copied, .btn.copied:hover { border-color: rgba(14, 107, 67, .55); color: var(--accent-deep); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--rule); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--serif); letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--accent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.net { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #3E5148; background: #F1F5F1; border: 1px solid var(--rule-strong); white-space: nowrap; }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(14, 107, 67, .16); }
.wallet { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule-strong); }
.wallet[hidden] { display: none; }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(14, 107, 67, .16); }
.wallet-addr { font: 500 13px var(--mono); color: var(--ink); }
.wallet-off { appearance: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); cursor: pointer; }
.wallet-off:hover { background: var(--bad-tint); color: var(--bad); }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 24px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.page-title h1 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; margin: 10px 0 0; color: var(--ink); }
.page-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; padding-top: 68px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent-deep); }
.intro h1 {
  font-family: var(--serif); font-size: clamp(36px, 4.2vw, 52px); line-height: 1.07; letter-spacing: -.018em; font-weight: 600;
  margin: 14px 0 20px; max-width: 17ch; color: var(--ink);
}
.lead { font-size: 17.5px; color: var(--ink-2); max-width: 52ch; margin: 0 0 44px; }
.small-head { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; color: var(--ink-2); }
.rubric { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 15px; }
.rubric td { padding: 12px 0; border-top: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.rubric td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 16px; color: var(--ink); }
.rubric tfoot td { border-top: 3px double #9FAEA5; font-weight: 700; color: var(--ink); }
.rubric tfoot td:last-child { color: var(--accent-deep); }
.fine { font-size: 13.5px; color: var(--ink-3); margin-top: 20px; }

.desk { background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-lg); align-self: start; box-shadow: var(--shadow-pop); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 22px 26px; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-head h2 { font-size: 15.5px; font-weight: 600; margin: 0; letter-spacing: -.005em; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13.5px; border: 1px solid var(--rule-strong); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step-hint { margin: 10px 0 0 44px; font-size: 13.5px; color: var(--ink-3); }
.step:not([data-state="locked"]) .step-hint { display: none; }
.step-body { margin: 16px 0 2px 44px; }
.step-body p { margin: 0 0 12px; }
.step[data-state="locked"] h2 { color: var(--ink-3); }
.step[data-state="locked"] .step-body { display: none; }
.step[data-state="active"] .num { background: var(--ink); border-color: var(--ink); color: #fff; }
.step[data-state="done"] .num { background: var(--accent); border-color: var(--accent); color: transparent; position: relative; }
.step[data-state="done"] .num::after { content: ""; position: absolute; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg) translate(1px, -1px); }
.step[data-state="done"] .step-body { opacity: .85; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 10px; font: 400 15px var(--sans); color: var(--ink); background: #FBFCFB; transition: border-color .15s, box-shadow .15s, background .15s; }
.field input::placeholder { color: #A4B0A9; }
.field input:focus { border-color: var(--accent); background: var(--card); outline: none; box-shadow: 0 0 0 4px rgba(14, 107, 67, .13); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--ink-2); }
.err { font-size: 14px; color: var(--bad); margin: 8px 0 0; }
.err:empty { display: none; }
.link { font-weight: 700; color: var(--accent-deep); }
.netwarn { margin-top: 12px; padding: 14px; border-radius: 10px; background: var(--amber-tint); border: 1px solid #E8D6A8; font-size: 14px; }
.netwarn[hidden] { display: none; }
.netwarn p { margin: 0 0 10px; color: #6A4A0C; }
.token-pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.token-pick:hover { border-color: #AEBDB2; }
.token-pick:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.token-pick input { accent-color: var(--accent); }
.tp-name { font-weight: 600; }
.tp-sym { color: var(--ink-2); font-weight: 400; }
.tp-meta { font-size: 13px; color: var(--ink-3); }
.file { background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; border-radius: var(--radius); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; max-height: 280px; overflow: auto; margin: 0 0 12px; }
.verdict { display: flex; align-items: center; gap: 20px; margin: 18px 0 8px; }
.verdict-line { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 4px; }
.stamp .seal { animation: press .5s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: center; filter: drop-shadow(0 10px 16px rgba(14, 107, 67, .3)); }
@keyframes press { from { transform: scale(1.7) rotate(-16deg); opacity: 0; } 70% { opacity: 1; } to { transform: scale(1) rotate(-6deg); } }
.todo { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }

/* ---------- token page ---------- */
.token-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.main-col, .side-col { display: grid; gap: 24px; min-width: 0; }
.card { background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-card); }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 0 0 14px; color: var(--ink); }
.card-title .i { color: var(--accent-deep); }

.cert { position: relative; background: var(--card); color: var(--ink); padding: 40px 44px; border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); }
.cert::before { content: ""; position: absolute; inset: 10px; border-radius: 8px; padding: 1.5px; background: linear-gradient(135deg, rgba(14, 107, 67, .55), rgba(14, 107, 67, .14) 45%, rgba(14, 107, 67, .5)); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cert-seal { position: absolute; top: 28px; right: 34px; transform: rotate(-6deg); filter: drop-shadow(0 12px 18px rgba(11, 61, 40, .22)); }
.cert-kind { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cert-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -.016em; line-height: 1.08; margin: 0 0 22px; padding-right: 150px; }
.cert-title .sym { color: var(--ink-3); font-weight: 500; }
.cert-empty { margin: 4px 0 0; }

.project { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--rule); }
.project-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: var(--paper-2); }
.project-body { min-width: 0; }
.project-type { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.project-desc { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule-strong); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--card); transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); background: var(--accent-tint); }

.evidence { display: grid; gap: 8px; margin: 0; padding: 18px 0; border-top: 1px solid var(--rule); }
.evidence div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.evidence dt { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14px; }
.evidence dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }

.ledger { width: 100%; border-collapse: collapse; font-size: 15px; border-top: 1px solid var(--rule); }
.ledger th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 14px 0 8px; border-bottom: 2px solid var(--ink); }
.ledger th:last-child, .ledger td:last-child { text-align: right; white-space: nowrap; }
.ledger td { padding: 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger tbody td:first-child { display: flex; gap: 12px; }
.ledger td small { display: block; color: var(--ink-3); font-size: 13px; }
.mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; }
.mark-ok { background: var(--accent-tint); color: var(--accent-deep); }
.mark-no { background: var(--paper-2); color: var(--ink-3); }
.ledger .got { font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.ledger .miss { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ledger tfoot td { border-bottom: 0; border-top: 3px double #9FAEA5; font-weight: 700; font-size: 18px; padding-top: 16px; }
.ledger tfoot td:last-child { color: var(--accent-deep); }
.cert-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.cert-foot .note:first-child { margin-right: auto; }

.callout { background: linear-gradient(180deg, #F1F8F3, #FFFFFF 65%); color: var(--ink); border-radius: var(--radius); padding: 24px 26px; box-shadow: 0 0 0 1px rgba(14, 107, 67, .3), var(--shadow-card); }
.callout-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.callout h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
.callout-head p { margin: 0; color: var(--ink-2); }
.howto { margin: 18px 0 0; padding: 18px 0 0 20px; border-top: 1px solid #DAE8DE; display: grid; gap: 6px; font-size: 15px; }

.record { margin: 0; display: grid; }
.rec { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.rec:first-child { border-top: 0; padding-top: 0; }
.rec dt { color: var(--ink-2); }
.rec dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.rec code { background: none; padding: 0; font-size: 13px; }
.rec a { text-decoration: none; }
.rec a:hover { text-decoration: underline; }
.copy { appearance: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; flex: none; }
.copy:hover { background: var(--paper-2); color: var(--ink); }
.copy.copied, .copy.copied:hover { color: var(--accent-deep); }
.state { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--paper-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.state-good { background: var(--accent-tint); color: var(--accent-deep); }
.loading { color: var(--ink-3); font-style: italic; }
.tiny { font-size: 12.5px; display: inline-flex; align-items: center; gap: 3px; }
.big-stat { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.big-stat strong { display: block; font-size: 30px; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dl-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; }
.dl-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.dl-list a { display: flex; gap: 6px; min-width: 0; text-decoration: none; color: var(--ink); }
.dl-list a:hover .dl-name { text-decoration: underline; }
.dl-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-sym { color: var(--ink-3); }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.pill-verified { background: var(--accent-tint); color: var(--accent-deep); }
.pill-partial { background: var(--amber-tint); color: var(--amber); }
.pill-not-verified, .pill-none { background: var(--paper-2); color: var(--ink-2); }

/* ---------- explore and admin lists ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-card); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--ink); color: #fff; }
.count { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tab[aria-current="page"] .count { background: rgba(255, 255, 255, .18); color: #fff; }
.search { position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 13px; color: var(--ink-3); pointer-events: none; }
.search input { width: 340px; padding: 10px 14px 10px 38px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); font: 400 14.5px var(--sans); box-shadow: var(--shadow-card); transition: border-color .15s, box-shadow .15s; }
.search input::placeholder { color: #A4B0A9; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 107, 67, .13); }
.table-card { background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-card); }
.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 700; padding: 11px 18px; background: var(--paper-2); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.list td { padding: 13px 18px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.list tbody tr:hover { background: #F7FAF7; }
.list tbody tr:last-child td { border-bottom: 0; }
.list code { background: none; padding: 0; font-size: 12.5px; }
.list a { text-decoration: none; }
.num-col { text-align: right; font-variant-numeric: tabular-nums; }
.tok { display: inline-flex; gap: 8px; align-items: baseline; color: var(--ink); max-width: 340px; }
.tok-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tok-sym { color: var(--ink-3); }
.tok:hover .tok-name { text-decoration: underline; }
.score-sm { font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 4px; color: var(--ink-2); }
.empty-row { text-align: center; color: var(--ink-3); padding: 44px 18px !important; white-space: normal !important; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.pager .note { color: var(--ink-3); }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); color: var(--ink-2); border-top: 1px solid var(--rule); font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 36px; }
.foot p { margin: 0; max-width: 70ch; }
.foot a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .token-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .home { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .topbar-in { gap: 12px; height: 58px; }
  .search, .search input { width: 100%; }
}
@media (max-width: 640px) {
  .nav, .net { display: none; }
  .step { padding: 20px 18px; }
  .step-body, .step-hint { margin-left: 0; }
  .cert { padding: 28px 22px; }
  .cert::before { inset: 6px; }
  .cert-seal { position: static; display: inline-block; margin-bottom: 8px; }
  .cert-title { padding-right: 0; }
  .evidence div, .rec { grid-template-columns: 1fr; gap: 2px; }
  .page-head { padding-top: 24px; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; justify-content: center; white-space: nowrap; padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 420px) {
  .tab .count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp .seal { animation: none; transform: rotate(-6deg); }
  .btn { transition: none; }
}

/* X link in the top bar and footer */
.social { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--ink-2); border: 1px solid var(--rule); background: var(--card); }
.social:hover { color: var(--ink); border-color: var(--rule-strong); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* $PROOF contract strip on the home page */
.token-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 36px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-card); }
.ts-info { min-width: 0; }
.ts-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.ts-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.ts-ca { display: flex; align-items: center; gap: 4px; margin: 0; min-width: 0; }
.ts-ca code { background: none; padding: 0; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* $PROOF logo and Buy now */
.ts-title { gap: 12px; }
.ts-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px var(--rule); }
.ts-name { font-family: var(--serif); font-size: 17px; }
.ts-info .ts-ca { margin-left: 52px; }
.btn-buy { background: var(--accent); }
.btn-buy:hover { background: var(--accent-deep); }
.buy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.buy-pill img { width: 26px; height: 26px; border-radius: 50%; }
.buy-pill:hover { border-color: var(--accent); color: var(--accent-deep); }
@media (max-width: 640px) { .buy-pill { padding-right: 10px; font-size: 12.5px; } .ts-info .ts-ca { margin-left: 0; } }

/* Phones: keep the top bar on one line (Connect wallet stays in step 1 of the page) */
.brand { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar-in { gap: 8px; }
  .topbar-right { gap: 6px; }
  .topbar .social, #connectTop { display: none; }
  .brand span { font-size: 16px; }
  .ts-ca code { max-width: 220px; }
}
