:root {
  --bg: #F4F5F8; --card: #FFFFFF; --ink: #0B0B0F; --muted: #6F7480; --line: #E6E8EE; --soft: #F4F5F8;
  --solid: #0B0B0F; --on-solid: #FFFFFF; --blue: #0265AD; --green: #A6D16C; --orange: #F26B21; --danger: #C23B12; --ok: #3B7A12;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0D0F14; --card: #1A1E26; --ink: #F3F4F7; --muted: #9AA1AF; --line: #2A2F3A; --soft: #252A34; --solid: #F3F4F7; --on-solid: #0B0B0F; --blue: #4DA3E8; --danger: #FF8A5C; --ok: #A6D16C; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 500 15px/1.5 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.brand img { border-radius: 10px; }
.brand em { font-style: normal; font-weight: 500; font-size: 17px; letter-spacing: 0; color: var(--muted); }
.brand picture { display: flex; }
.brand picture img { height: 30px; width: auto; border-radius: 0; }
.grow { flex: 1; }
.chip { background: var(--card); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.chip.bad { color: var(--danger); }
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 48px; display: grid; gap: 16px; }
.hero { padding: 18px 0 6px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 22ch; }
.hero p { margin: 0; color: var(--muted); max-width: 70ch; }
.hero b { color: var(--ink); }
.card { background: var(--card); border-radius: 28px; padding: clamp(18px, 3vw, 28px); }
.card h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #0B0B0F; font-size: 14px; }
.muted { color: var(--muted); margin: 0 0 14px; }
.btn { border: 0; border-radius: 999px; padding: 0 20px; height: 44px; font-weight: 700; background: var(--soft); cursor: pointer; }
.btn:hover:not(:disabled) { filter: brightness(.95); }
.btn.dark { background: var(--solid); color: var(--on-solid); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.msg { font-size: 13px; font-weight: 700; color: var(--muted); }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--danger); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 700; font-size: 13px; }
.field i { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select { height: 44px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--card); width: 100%; }
.field input[type=file] { height: auto; padding: 10px 12px; }
.field small, .fine { color: var(--muted); font-size: 12px; font-weight: 500; }
.fine { margin: 10px 0 0; }
.count { text-align: right; }
.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.problem { min-height: 1.4em; margin: 0; color: var(--danger); font-size: 13px; font-weight: 700; }
.label { margin: 0 0 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.ad { background: var(--soft); border-radius: 24px; padding: 14px; }
.ad-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ad-head b { letter-spacing: .14em; font-size: 10px; font-weight: 700; }
.ad-img { border-radius: 16px; overflow: hidden; background: var(--line); aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-title { margin: 12px 0 6px; font-weight: 700; }
.ad-btn { color: var(--blue); font-weight: 700; font-size: 13px; }
.addr { background: var(--soft); border-radius: 12px; padding: 10px 12px; word-break: break-all; font: 500 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.result { margin-top: 18px; background: var(--soft); border-radius: 18px; padding: 14px 16px; font-size: 14px; }
.result code { word-break: break-all; font: 500 12px/1.3 ui-monospace, Menlo, monospace; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px 10px; white-space: nowrap; }
td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--soft); white-space: nowrap; }
.pill.live { background: var(--green); color: #0B0B0F; }
.pill.warn { color: var(--danger); }
.sub { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px 40px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.field { position: relative; }
.visually-hidden { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.layout-prompt { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--soft); border-radius: 18px; padding: 12px; margin: 6px 0 10px; }
.layout-prompt p { margin: 0 0 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); } .layout-prompt p b { color: var(--ink); }
.frame169 { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: repeating-linear-gradient(45deg, var(--line) 0 6px, transparent 6px 12px); display: grid; place-items: center; }
.frame169 b { font-size: 12px; background: var(--card); border-radius: 999px; padding: 2px 8px; }
.frame169 .safe { position: absolute; inset: 8%; border: 2px dashed var(--blue); border-radius: 6px; }
.drop { display: flex; align-items: center; gap: 14px; border: 2px dashed var(--line); border-radius: 18px; padding: 12px; cursor: pointer; background: var(--card); }
.drop:hover, .drop.over { border-color: var(--green); }
.drop-thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 26px; color: var(--muted); overflow: hidden; flex: none; }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drop-text { display: grid; gap: 2px; min-width: 0; } .drop-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .drop-text small { font-weight: 700; color: var(--muted); }
.drop-text small.ok { color: var(--ok); } .drop-text small.warn { color: var(--danger); }

.easy { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.btn.green { background: var(--green); color: #0B0B0F; } .btn.big { height: 50px; padding: 0 26px; font-size: 15px; }

.switch { position: relative; width: 48px; height: 28px; flex: none; display: inline-block; }
.switch input { appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .15s; }
.switch input:checked { background: var(--green); }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; pointer-events: none; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked ~ i { transform: translateX(20px); }

.sharebox { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sharebox img { width: min(100%, 600px); height: auto; border-radius: 20px; display: block; background: var(--soft); }
.sharebox .btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.sharebox .btn.green { color: #0B0B0F; }

/* the wallet picker appears only when more than one wallet extension is installed */
.walletpick { height: 44px; border: 1.5px solid var(--line); border-radius: 22px; padding: 0 14px; background: var(--card); max-width: 200px; }
.walletpick[hidden] { display: none; }

/* a link that looks like the buttons next to it (the Arkiv faucet) */
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }

/* the share card after publishing: the picture, then two clear buttons side by side */
.sharebox .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.sharebox .btn { padding: 0 22px; height: 46px; background: var(--soft); }
.sharebox .btn.green { background: var(--green); color: #0B0B0F; }
