:root {
  --ink: #111111;
  --bg: #f6f8ff;
  --card: #ffffff;
  --muted: #6b7280;
  --blue: #0b4cff;
  --green: #10b981;
  --danger: #b91c1c;
  --line: rgba(17, 17, 17, 0.10);
  --radius-card: 14px;
  --radius-input: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(11,76,255,.10) 0%, rgba(11,76,255,0) 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(16,185,129,.08) 0%, rgba(16,185,129,0) 60%),
    var(--bg) !important;
  color: var(--ink) !important;
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif !important;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card) !important;
  border: 1px solid rgba(17,17,17,.08) !important;
  border-radius: var(--radius-card) !important;
  padding: 18px !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

h1, h2, h3, p {
  color: var(--ink);
}

p {
  color: var(--muted);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 12px;
  border-radius: var(--radius-input) !important;
  border: 1px solid rgba(17,17,17,.12) !important;
  font: inherit;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button,
a.button,
a.btn,
.btn {
  border: 1px solid rgba(17,17,17,.10) !important;
  border-radius: 999px !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #111111 0%, #0b4cff 130%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
  box-shadow: 0 12px 26px rgba(11,76,255,.18);
  margin-right: 8px;
  margin-bottom: 8px;
}

pre {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #101827 !important;
  color: #d4e4ff !important;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
}

.k {
  color: var(--muted) !important;
  font-weight: 700;
}

.qr-box {
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(17,17,17,.14);
  border-radius: 16px;
  background: #fafcff;
  overflow: hidden;
  padding: 12px;
}

.qr-box img,
.qr-box object {
  max-width: 100%;
  height: auto;
}

.qr-link,
.link {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue) !important;
  font-weight: 700;
  margin-top: 10px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(17,17,17,.08);
}

.list-row:last-child {
  border-bottom: 0;
}

.token-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f8ff;
  border: 1px solid rgba(17,17,17,.08);
}

.token-value,
.mono,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
