/* dedicate - one column, one card. no masthead, no snap, no title block.
   warm black ground, one coral colour for money that belongs to the handle.
   Bricolage Grotesque for everything except addresses and amounts (IBM Plex Mono). the only circles are avatars. */

:root {
  --bg: #121110; --raise: #1b1917; --ink: #f1ede6; --ink2: #b1aca3; --dim: #6f6a62; --dim2: #3d3a36; --rule: #262320;
  --fee: #ff5c39; --ok: #6dd39a; --bad: #e0584c;
  --disp: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--disp); font-size: 15px; line-height: 1.6; font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a.l { color: var(--fee); text-decoration: underline; text-decoration-color: rgba(255,92,57,.35); text-underline-offset: 2px; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.k { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: lowercase; color: var(--dim); }

.col { width: min(920px, 100% - 64px); margin: 0 auto; padding: 28px 0 80px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-bottom: 96px; }
.wm { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.act { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; border: 0; cursor: pointer; white-space: nowrap; border-radius: 6px; }
.act:hover { background: #fff; }
.act.ghost { background: transparent; color: var(--ink2); border: 1px solid var(--dim2); font-weight: 500; }
.act.ghost:hover { color: var(--ink); border-color: var(--ink2); }
.act.sm { height: 28px; font-size: 12px; padding: 0 12px; }
.act.big { height: 50px; padding: 0 20px; font-size: 15px; }
.act[disabled] { opacity: .35; cursor: default; }

h1 { font-weight: 800; font-size: clamp(44px, 6vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 22px; }
h1 em { font-style: normal; color: var(--fee); }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 60ch; margin-bottom: 40px; }

/* the card */
.dcard { background: var(--raise); border-radius: 14px; padding: 28px 30px 26px; }
.pick { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.pick .at { font-weight: 800; font-size: 30px; padding: 0 6px 0 18px; display: flex; align-items: center; color: var(--dim); }
.pick input { flex: 1; border: 0; background: transparent; font-weight: 800; font-size: 30px; padding: 10px 6px; min-width: 0; letter-spacing: -.01em; outline: none; }
.pick input::placeholder { color: var(--dim2); font-weight: 600; }
.pick .act { height: auto; padding: 0 24px; font-size: 15px; border-radius: 0; }
.say { margin-top: 12px; font-size: 13px; color: var(--dim); }
.say a { color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.who { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.who img { width: 72px; height: 72px; border-radius: 50%; background: var(--dim2); object-fit: cover; }
.who .wh { font-weight: 800; font-size: 28px; letter-spacing: -.01em; line-height: 1.1; }
.who .wa { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.addr { cursor: pointer; word-break: break-all; }
.addr:hover { color: var(--ink2); }
.copied { color: var(--ok); margin-left: 8px; font-size: 11px; }
.who .ws { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.wn b { font-family: var(--mono); font-weight: 500; font-size: 20px; color: var(--fee); }
.wn span { display: block; font-size: 11.5px; color: var(--dim); }
.form { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 20px; }
.f { margin-bottom: 14px; }
.f > .k { display: block; margin-bottom: 6px; }
.f input[type=text], .f input[type=number], .f textarea { width: 100%; height: 40px; border: 1px solid var(--dim2); border-radius: 8px; background: var(--bg); padding: 0 12px; font-size: 15px; color: var(--ink); outline: none; }
.f textarea { height: 64px; padding: 8px 12px; resize: vertical; line-height: 1.5; }
.f input:focus, .f textarea:focus { border-color: var(--fee); }
.f input::placeholder, .f textarea::placeholder { color: var(--dim2); }
.f .h { font-size: 11.5px; color: var(--dim); margin-top: 6px; font-family: var(--mono); }
.pair { display: grid; grid-template-columns: 1fr 200px; gap: 16px; }
.pickimg { border: 1px dashed var(--dim2); border-radius: 8px; padding: 11px; text-align: center; color: var(--dim); font-size: 12.5px; cursor: pointer; }
.pickimg.has { border-style: solid; border-color: var(--rule); color: var(--ink2); }
.pickimg img { max-height: 64px; display: block; margin: 0 auto 6px; }
.go .act { width: 100%; justify-content: space-between; }
.go .act .c { font-weight: 400; opacity: .6; font-family: var(--mono); font-size: 12px; }
.status { font-size: 13px; color: var(--ink2); margin-top: 10px; min-height: 18px; }
.status.err { color: var(--bad); }
.receipt { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.receipt .f2 { display: grid; grid-template-columns: 80px 1fr; gap: 5px 12px; font-size: 12.5px; }
.receipt .f2 .k2 { font-family: var(--mono); font-size: 11px; color: var(--dim); padding-top: 2px; }
.receipt .f2 .v2 { word-break: break-all; color: var(--ink2); }

/* the flow: five stops on one line */
.flow { display: flex; align-items: flex-start; gap: 0; margin: 72px 0 0; }
.flow .st { flex: 1; min-width: 0; }
.flow .st b { display: block; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.flow .st span { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.4; margin-top: 4px; padding-right: 14px; }
.flow i { flex: 0 0 34px; height: 2px; background: var(--fee); margin: 11px 10px 0 0; position: relative; }
.flow i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--fee); }

/* the list: one card per handle, coins inside */
.board { margin-top: 80px; }
.hd { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.hd h2 { font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin: 0; }
.hd .r { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.list { display: flex; flex-direction: column; gap: 10px; }
.hc { background: var(--raise); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px 16px; align-items: center; }
.hc img { width: 44px; height: 44px; border-radius: 50%; background: var(--dim2); object-fit: cover; }
.hc .hn { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.hc .coins { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink2); }
.hc .coins span { white-space: nowrap; }
.hc .coins .st { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-left: 6px; }
.hc .coins .st.grad { color: var(--ok); }
.hc .amt { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--fee); white-space: nowrap; }
.hc .amt span { display: block; font-family: var(--disp); font-size: 11px; color: var(--dim); }
.hc a.l { font-size: 12.5px; }
.norows { color: var(--dim); padding: 18px 0; }
.norows b { color: var(--ink2); font-weight: 600; }
.tsub { margin-top: 14px; font-size: 12.5px; color: var(--dim); }

/* notes: one column of openable lines */
.notes { margin-top: 72px; border-top: 1px solid var(--rule); }
.notes details { border-bottom: 1px solid var(--rule); }
.notes summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15px; list-style: none; display: flex; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; margin-left: auto; color: var(--dim); font-weight: 500; }
.notes details[open] summary::after { content: "–"; }
.notes p { color: var(--ink2); font-size: 14px; line-height: 1.65; padding: 0 0 16px; max-width: 70ch; }

.foot { margin-top: 56px; display: flex; gap: 22px; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.foot a { color: var(--ink2); }
.xl { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.xl .xg { color: var(--fee); }
.xl:hover { color: var(--fee); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 60; }
.toast.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
