/* pledge-kit — one stylesheet for every page */
:root {
  --ground: #e6ece9;      /* mineral grey-green */
  --surface: #f6f8f7;
  --ink: #17262e;         /* deep slate */
  --muted: #56676c;
  --rule: #c9d3d0;
  --fill: #2f9a88;        /* pledged */
  --fill-deep: #227869;
  --line: #d39a12;        /* the goal: the threshold */
  --bad: #b3412f;
  --radius-s: 4px;
  --radius-l: 10px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible", "Verdana", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 var(--body); }
a { color: var(--fill-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
header.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 10px; }
header.top .brand { font: 800 26px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
header.top nav a { margin-left: 18px; font-weight: 700; }
footer.bottom { margin-top: 70px; margin-bottom: 30px; color: var(--muted); font-size: 14px; }
footer.bottom::before { content: ""; display: block; border-top: 1px solid var(--rule); margin-bottom: 14px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ── the threshold gauge ─────────────────────────────────
   The track runs to 125% of the goal, so the goal line sits at 80%:
   you see pledges approach it, and cross it. */
.gauge { position: relative; height: 22px; margin: 30px 0 8px; }
.gauge .track { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-s); overflow: hidden; }
.gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--fill); transition: width 900ms cubic-bezier(.2,.7,.2,1); }
.gauge.crossed .fill { background: var(--fill-deep); }
.gauge .goal { position: absolute; left: 80%; top: -12px; bottom: -6px; width: 3px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.gauge .goal span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font: 700 13px/1 var(--body); color: var(--ink); padding-bottom: 5px; }
.gauge.big { height: 34px; margin-top: 40px; }
.gauge.big .goal { top: -16px; bottom: -8px; width: 4px; }
.gauge.big .goal span { font-size: 15px; }
.figures { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline; }
.figures .num { font: 800 26px/1.1 var(--display); letter-spacing: -0.01em; }
.figures .of { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .gauge .fill { transition: none; } }

/* ── campaign rows (browse) ─────────────────────────── */
.rows { margin-top: 26px; }
.row { display: grid; grid-template-columns: 96px 1fr 300px; gap: 22px; align-items: center; padding: 20px 0; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.row .thumb { width: 96px; height: 72px; border-radius: var(--radius-s); background: var(--surface) center/cover no-repeat; border: 1px solid var(--rule);
  display: grid; place-items: center; font: 800 30px/1 var(--display); color: var(--fill-deep); }
.row h3 { margin-bottom: 4px; }
.row .gauge { margin: 22px 0 6px; height: 14px; }
.row .gauge .goal { top: -9px; bottom: -4px; }
.row .gauge .goal span { font-size: 12px; }
.row .meta { font-size: 14px; color: var(--muted); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 99px; border: 1px solid currentColor; }
.badge.funded { color: var(--fill-deep); }
.badge.failed, .badge.dissolved, .badge.removed { color: var(--muted); }
.badge.live { color: var(--ink); }
.badge.pending_review, .badge.awaiting_ticket { color: var(--line); }
@media (max-width: 760px) {
  .row { grid-template-columns: 72px 1fr; }
  .row .thumb { width: 72px; height: 56px; }
  .row .right { grid-column: 1 / -1; }
}

/* ── campaign page ──────────────────────────────────── */
.campaign { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; margin-top: 18px; }
.campaign .hero-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: 560px; width: 100%; border-radius: var(--radius-l); margin-bottom: 22px; border: 1px solid var(--rule); background: var(--surface) center/cover no-repeat; }
.campaign .hero-frame::before { content: ''; position: absolute; inset: -30px; z-index: 0; background: inherit; background-size: cover; filter: blur(24px) brightness(.92); }
.campaign .hero-frame .hero-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.story { white-space: pre-wrap; max-width: 68ch; }
.panel { position: sticky; top: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 22px; }
.panel h2 { font-size: 21px; }
@media (max-width: 900px) { .campaign { grid-template-columns: 1fr; } .panel { position: static; } }

/* ── forms ──────────────────────────────────────────── */
label { display: block; font-weight: 700; margin: 18px 0 6px; }
label .hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
input, textarea { width: 100%; font: 16px/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 10px 12px; }
textarea { min-height: 200px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--fill); box-shadow: 0 0 0 3px rgba(47,154,136,.22); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.form { max-width: 680px; }

button, .button { display: inline-block; font: 700 16px/1 var(--body); padding: 13px 20px; border-radius: var(--radius-s); border: 2px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #24394a; color: #fff; }
button.quiet, .button.quiet { background: transparent; color: var(--ink); }
button.quiet:hover { background: var(--surface); color: var(--ink); }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* addresses people copy */
.addr { display: flex; gap: 8px; align-items: stretch; margin: 8px 0 12px; }
.addr code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; background: #fff;
  border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 9px 10px; }
.addr button { padding: 8px 12px; font-size: 14px; }

.note { border-left: 4px solid var(--line); padding: 8px 0 8px 14px; margin: 16px 0; max-width: 68ch; }
.note.ok { border-color: var(--fill); }
.note.bad { border-color: var(--bad); }
.err { color: var(--bad); font-weight: 700; margin-top: 12px; min-height: 1em; }
.hidden { display: none !important; }

/* admin */
table.admin { width: 100%; border-collapse: collapse; font-size: 15px; }
table.admin th, table.admin td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--rule); vertical-align: top; }
table.admin th { font-weight: 700; color: var(--muted); }
table.admin td .actions { margin-top: 6px; gap: 6px; }
table.admin td button { padding: 7px 10px; font-size: 13px; }
.scroll { overflow-x: auto; }
.mobile-only { display: none; }
@media (max-width: 900px) { .mobile-only { display: inline-block; margin-top: 18px; } }
@media (max-width: 520px) { header.top { flex-wrap: wrap; } header.top nav a { margin: 0 14px 0 0; } }

/* ── header sign-in ─────────────────────────────────── */
header.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
header.top nav a { margin-left: 0; }
.pill { padding: 8px 14px; font-size: 15px; border-radius: 99px; }
details.who { position: relative; }
details.who summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700;
  padding: 5px 12px 5px 5px; border: 1px solid var(--rule); border-radius: 99px; background: var(--surface); }
details.who summary::-webkit-details-marker { display: none; }
details.who summary img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
details.who .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 230px; background: #fff;
  border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 6px; box-shadow: 0 8px 24px rgba(23,38,46,.12); }
details.who .menu a, details.who .menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none;
  color: var(--ink); font: 15px/1.3 var(--body); text-decoration: none; border-radius: 3px; cursor: pointer; }
details.who .menu a:hover, details.who .menu button:hover { background: var(--ground); }

/* ── creator byline ─────────────────────────────────── */
.byline { display: flex; gap: 12px; align-items: center; margin: 4px 0 6px; }
.byline .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--rule); }
.byline .avatar.ph { display: grid; place-items: center; background: var(--surface); color: var(--fill-deep); font: 800 18px/1 var(--display); }
.byline .name { font-weight: 700; }
.byline .name a { color: var(--ink); }
.byline .kind, .byline .met { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.byline .met { color: var(--fill-deep); }
.byline .links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.byline.big { align-items: flex-start; }
.byline.big .avatar { width: 88px; height: 88px; }
.byline.big .avatar.ph { font-size: 36px; }
.byline.big .name { font: 800 30px/1.1 var(--display); letter-spacing: -0.02em; }
.byline .bio { margin: 10px 0 0; }

/* ── video ──────────────────────────────────────────── */
.video { position: relative; aspect-ratio: 16 / 9; margin: 30px 0 4px; border-radius: var(--radius-l); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── image upload ───────────────────────────────────── */
.drop { display: grid; place-items: center; text-align: center; gap: 6px; min-height: 150px; padding: 18px; cursor: pointer;
  border: 2px dashed var(--rule); border-radius: var(--radius-l); background: var(--surface); color: var(--muted); }
.drop:hover, .drop.over { border-color: var(--fill); color: var(--ink); }
.drop img { max-height: 260px; border-radius: var(--radius-s); }
.drop.avatar { min-height: 0; width: 140px; height: 140px; padding: 0; overflow: hidden; border-radius: 50%; }
.drop.avatar img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
.drop input { display: none; }

/* ── edits ──────────────────────────────────────────── */
details.edits { margin-top: 10px; font-size: 14px; color: var(--muted); }
details.edits summary { cursor: pointer; }
details.edits .edit { border-left: 3px solid var(--rule); padding: 6px 0 6px 12px; margin: 10px 0; }
details.edits .edit pre { white-space: pre-wrap; font: inherit; margin: 4px 0 0; max-height: 160px; overflow: auto; }

/* ── segmented choice (person / company) ────────────── */
.choice { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius-s); overflow: hidden; }
.choice label { margin: 0; padding: 9px 16px; cursor: pointer; font-weight: 700; }
.choice input { display: none; }
.choice input:checked + span { color: #fff; }
.choice label:has(input:checked) { background: var(--ink); color: #fff; }

.gate { max-width: 560px; padding: 26px 0; }
.mine { margin-top: 30px; }
.mine .row { grid-template-columns: 1fr 260px; }
@media (max-width: 760px) { .mine .row { grid-template-columns: 1fr; } }

/* ── home ───────────────────────────────────────────── */
main.home section { margin-top: 64px; }
main.home section:first-child { margin-top: 26px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1; margin-bottom: 20px; }
.lede { font-size: 20px; line-height: 1.5; }
.demo { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 26px 26px 22px; }
.demo-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.demo-head span { color: var(--muted); }
.demo .gauge { margin-top: 44px; }
.demo-foot { margin-top: 12px; color: var(--muted); }
.demo-num { font: 800 30px/1 var(--display); color: var(--ink); margin-right: 4px; }
.demo-out { display: block; margin-top: 8px; color: var(--fill-deep); font-weight: 700; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 30px; } }

.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); display: block; font: 800 34px/1 var(--display); color: var(--fill-deep); margin-bottom: 10px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.builders { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 28px; }
.builders h2 { color: #fff; }
.builders p { color: #d6e0e3; }
.builders .fees strong { color: #fff; }
.builders .button { background: var(--line); border-color: var(--line); color: var(--ink); }
.builders .button:hover { background: #e9b23a; color: var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.faq details { border-top: 1px solid var(--rule); padding: 14px 0; max-width: 760px; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { margin: 10px 0 0; }
.empty { padding: 26px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ── campaign cards (home) ──────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 22px; }
.cards > p { grid-column: 1 / -1; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l);
  overflow: hidden; color: inherit; text-decoration: none; }
.card:hover { border-color: var(--ink); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card .cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ground) center/cover no-repeat; border-bottom: 1px solid var(--rule); display: grid; place-items: center; }
/* the whole image, never cropped: a blurred copy fills the frame, the sharp one fits inside it */
.card .cover[style]::before, .card .cover[style]::after { content: ''; position: absolute; background: inherit; }
.card .cover[style]::before { z-index: 0; inset: -24px; background-size: cover; filter: blur(20px) brightness(.92); }
.card .cover[style]::after { z-index: 1; inset: 0; background-color: transparent; background-position: center; background-repeat: no-repeat; background-size: contain; }
.card .cover span { position: relative; font: 800 64px/1 var(--display); color: var(--fill-deep); }
.card .body { padding: 20px 22px 22px; }
.card h3 { font-size: 24px; margin-bottom: 6px; }
.card .meta { color: var(--muted); font-size: 15px; }
.card .gauge { margin-top: 34px; }
.card .nums { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--muted); font-size: 15px; margin-top: 4px; }
.card .nums strong { color: var(--ink); font: 800 20px/1.2 var(--display); }
.cards:has(> .card:only-child) { grid-template-columns: 1fr; }
.cards > .card:only-child { flex-direction: row; }
.cards > .card:only-child .cover { flex: 0 0 54%; aspect-ratio: 16 / 10; border-bottom: 0; border-right: 1px solid var(--rule); }
.cards > .card:only-child .body { flex: 1; align-self: center; padding: 26px 30px; }
.cards > .card:only-child h3 { font-size: 30px; }
@media (max-width: 760px) { .cards > .card:only-child { flex-direction: column; } .cards > .card:only-child .cover { border-right: 0; border-bottom: 1px solid var(--rule); } }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.hero.solo { grid-template-columns: 1fr; }
.hero.solo h1 { max-width: 14ch; }
.hero.solo .lede { max-width: 60ch; }
.funded-note { margin: 22px 0 0; color: var(--fill-deep); font-weight: 700; }

/* ── check the contract ─────────────────────────────── */
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.fpline { font-size: 13px; color: var(--muted); margin-top: 10px; }
.fpline code { font-size: 12px; }
details.verify { margin-top: 34px; border: 1px solid var(--rule); border-radius: var(--radius-l); background: var(--surface); }
details.verify > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 20px; }
details.verify > summary::-webkit-details-marker { display: none; }
details.verify > summary > span:first-child { font: 700 20px/1.2 var(--display); }
details.verify > summary > span:first-child::before { content: "+"; display: inline-block; width: 1.1em; color: var(--fill-deep); }
details.verify[open] > summary > span:first-child::before { content: "−"; }
.vbody { padding: 0 20px 20px; }
.vtabs { display: flex; gap: 6px; margin: 14px 0 6px; border-bottom: 1px solid var(--rule); }
.vtab { background: none; color: var(--muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 4px; margin-right: 14px; font-size: 15px; }
.vtab:hover { background: none; color: var(--ink); }
.vtab.on { color: var(--ink); border-bottom-color: var(--ink); }
.vfields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
@media (max-width: 760px) { .vfields { grid-template-columns: 1fr; } }
.vfield label { margin-top: 14px; }
.vfield .raw { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.vfield .raw code, .vfield .rv { color: var(--ink); }
.vfield.changed input { border-color: var(--line); box-shadow: 0 0 0 3px rgba(211,154,18,.25); }
.vfield.changed .rv { color: #8a5f00; font-weight: 700; }
.vin { position: relative; }
.vin.suffixed input { padding-right: 52px; }
.vin .suf { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.vsrc { margin-top: 26px; }
.vsrc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
textarea.src { min-height: 340px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre; overflow: auto; background: #fff; }
textarea.src[readonly] { background: #fbfcfc; }
textarea.src.changed { border-color: var(--line); box-shadow: 0 0 0 3px rgba(211,154,18,.25); }
.ok { color: var(--fill-deep); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }
ol.chain { list-style: none; padding: 0; margin: 22px 0 0; border-left: 3px solid var(--rule); }
ol.chain li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0 8px 16px; }
ol.chain .k { font-weight: 700; color: var(--muted); }
ol.chain code { overflow-wrap: anywhere; font-size: 13px; }
code.hex { display: block; margin-top: 6px; max-height: 120px; overflow: auto; overflow-wrap: anywhere; font-size: 12px; }
@media (max-width: 600px) { ol.chain li { grid-template-columns: 1fr; gap: 2px; } }
.verdict { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); border-left: 5px solid var(--rule); background: #fff; }
.verdict.ok { border-left-color: var(--fill); }
.verdict.bad { border-left-color: var(--bad); font-weight: 400; color: var(--ink); }
.verdict code { overflow-wrap: anywhere; }
.vfoot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); max-width: 72ch; }
.vfoot strong { color: var(--ink); }
.payways { align-items: center; }
.payways .way-hint { flex-basis: 100%; margin: -4px 0 4px; }
.qr { margin-top: 16px; text-align: center; }
.qr img { margin: 0 auto 8px; border-radius: var(--radius-s); background: #fff; border: 1px solid var(--rule); }

/* ── pledge in transit ──────────────────────────────── */
.transit { margin-top: 18px; padding: 14px 14px 10px; border: 1px solid var(--rule); border-radius: var(--radius-s); background: #fff; }
.transit .stops { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); }
.transit .stops li:nth-child(2) { text-align: center; }
.transit .stops li:last-child { text-align: right; }
.transit .rail { position: relative; height: 4px; margin: 10px 6px 12px; background: var(--rule); border-radius: 2px; }
.transit .dot { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--line); transition: left 700ms cubic-bezier(.3,.7,.2,1); }
.transit.stage-wallet .dot { left: 0; animation: tp-pulse 1.2s ease-in-out infinite; }
.transit.stage-network .dot { left: 50%; animation: tp-travel 1.4s ease-in-out infinite; }
.transit.stage-network .stops li:nth-child(-n+2), .transit.stage-covenant .stops li { color: var(--ink); }
.transit.stage-covenant .rail { background: var(--fill); }
.transit.stage-covenant .dot { left: 100%; background: var(--fill-deep); }
.transit.stage-timeout .dot { left: 0; background: var(--muted); }
.transit p { margin: 0; }
@keyframes tp-pulse { 50% { box-shadow: 0 0 0 7px rgba(211,154,18,.25); } }
@keyframes tp-travel { 0% { left: 18%; } 50% { left: 78%; } 100% { left: 18%; } }
@media (prefers-reduced-motion: reduce) { .transit .dot { animation: none !important; transition: none; } }

/* ── wallet picker (same choices as the KasperoPay widget; every one pays the pledge covenant) ── */
.wallet-tiles { display: grid; gap: 10px; }
.wallet-tile { font: 400 15px/1.3 var(--body); display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left; background: #fff; color: var(--ink); border: 1.5px solid var(--rule); border-radius: var(--radius-s); box-shadow: none; font-weight: 400; cursor: pointer; transition: border-color 150ms, background 150ms; }
.wallet-tile:hover, .wallet-tile:focus-visible { border-color: var(--line); background: #fafafa; color: var(--ink); }
.wallet-tile .wt-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: #f2f2f2; font-weight: 700; color: var(--muted); }
.wallet-tile .wt-icon img { width: 40px; height: 40px; object-fit: cover; }
.wallet-tile .wt-info { flex: 1; min-width: 0; }
.wallet-tile .wt-info strong { display: block; font-size: 15px; }
.wallet-tile .wt-info span { display: block; font-size: 12.5px; color: var(--muted); }
.wallet-tile .wt-arrow { color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.chips .chip { font: 700 16px/1 var(--body); padding: 12px 4px; white-space: nowrap; background: #fff; color: var(--ink); border: 1.5px solid var(--rule); border-radius: 999px; min-width: 0; text-align: center; }
.chips .chip:hover { background: #fafafa; color: var(--ink); border-color: var(--ink); }
.chips .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
input.need { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(180, 40, 40, .15); }
