:root {
  --bg: #0c0c0d;
  --panel: #151517;
  --panel-2: #1c1c1f;
  --line: #26262a;
  --text: #f2f2f0;
  --muted: #8b8b90;
  --accent: #ff5a1f;
  --accent-dim: #ff5a1f22;
  --good: #3ddc84;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Top bar */
header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.logo-mark { display: block; width: auto; height: 32px; }
.logo em { font-style: normal; }
.logo span { color: var(--muted); font-weight: 500; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); font-weight: 500; }
nav a.on, nav a:hover { color: var(--text); }
.bar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wallet { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; }

.btn {
  background: var(--accent); color: #111; border: 0; border-radius: 8px;
  padding: 9px 14px; font-weight: 600; font-size: 13px; cursor: pointer; text-align: center;
}
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .4; cursor: default; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--accent-dim); color: var(--accent); }
.tag.light { background: #f2f2f01a; color: var(--text); }
.tag.green { background: #3ddc8420; color: var(--good); }

/* Summary strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.strip div { padding: 14px 16px; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.strip strong { font-size: 18px; font-weight: 600; }

main { padding: 20px 0 60px; display: grid; gap: 16px; }
.page-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-h h1 { font-size: 24px; letter-spacing: -0.02em; }

/* Card tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 10px; align-content: start; }
.shot { aspect-ratio: 3 / 4.2; border-radius: 8px; background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile h3 { font-size: 13px; font-weight: 600; line-height: 1.3; height: 2.6em; overflow: hidden; }
.kv { display: grid; gap: 4px; font-size: 12px; }
.kv .row span:first-child { color: var(--muted); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.actions .btn { padding: 8px 6px; font-size: 12px; }
.actions .wide { grid-column: 1 / -1; }

/* Controls */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip.on { color: var(--text); border-color: var(--text); }
.field { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 9px 12px; font: inherit; outline: none; }
.field:focus { border-color: var(--muted); }

/* Bottom sheet / modal */
.sheet-bg { position: fixed; inset: 0; background: #000a; display: none; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.sheet-bg.open { display: flex; }
.sheet { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; }
.sheet h2 { font-size: 16px; }
.sheet-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.sheet-card .shot { aspect-ratio: 3 / 4.2; }
.opts { display: grid; gap: 6px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg); text-align: left; color: var(--text); }
.opt small { color: var(--muted); font-size: 12px; grid-column: 1; }
.opt b { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 600; }
.opt.on { border-color: var(--accent); }
.summary { display: grid; gap: 6px; font-size: 13px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.summary .row span:first-child { color: var(--muted); }

.empty { padding: 40px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  nav { display: none; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .wallet { display: none; }
}

.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 20px 0; color: var(--muted); font-size: 12px; }
.site-foot a:hover { color: var(--text); }

[hidden] { display: none !important; }
