:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --ink: #141413;
  --ink-2: #4f4d47;
  --ink-3: #6f6c64;
  --line: #e4e1d8;
  --mint: #0b9e64;
  --mint-ink: #ffffff;
  --mint-soft: #dcf3e8;
  --mint-text: #077a4c;
  --amber-soft: #fbefd9;
  --amber-text: #8a5a0b;
  --red-text: #b4352a;
  --red-soft: #fbe3df;
  --focus: #2f5bd3;
  --shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 12px 32px -18px rgba(20, 20, 19, .18);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px;
  --r-sm: 10px;
  --gutter: 24px;
  --max: 1180px;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1a1a18;
    --surface-2: #232320;
    --ink: #f2f0ea;
    --ink-2: #c4c1b8;
    --ink-3: #9a968c;
    --line: #2e2d29;
    --mint: #2fc786;
    --mint-ink: #08130e;
    --mint-soft: rgba(47, 199, 134, .14);
    --mint-text: #5fdba4;
    --amber-soft: rgba(240, 177, 76, .14);
    --amber-text: #f0b14c;
    --red-text: #f08a7d;
    --red-soft: rgba(240, 138, 125, .14);
    --focus: #8aa8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .6);
  }
}
@media (max-width: 600px) { :root { --gutter: 16px; --nav-h: 58px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); }
.usd { color: var(--ink-3); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.03em; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: none; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; margin-right: -8px; }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 420px) { .hide-xs { display: none; } .nav-inner { gap: 12px; } .logo { font-size: 19px; } }
.demo-bar { background: var(--amber-soft); color: var(--amber-text); font-size: 13px; text-align: center; padding: 7px var(--gutter); border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 14px; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; }
  .nav-links a { border-radius: 0; padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: none; }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ---------------- buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, opacity .15s, background .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.mint { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { border-color: var(--ink-3); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) { .cta-row { flex-direction: column; } .cta-row .btn { width: 100%; } }

.field { display: grid; gap: 7px; }
.field > span:first-child { font-size: 13.5px; font-weight: 600; }
.field small { color: var(--ink-3); font-size: 12.5px; }
.input, .select, .textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.input[aria-invalid="true"] { border-color: var(--red-text); }
.input-prefix { position: relative; }
.input-prefix > b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 500; pointer-events: none; }
.input-prefix .input { padding-left: 30px; }
.input-suffix { position: relative; }
.input-suffix > b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 500; font-size: 14px; pointer-events: none; }
.input-suffix .input { padding-right: 52px; }
.select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }
.err-text { color: var(--red-text); font-size: 13px; }
.err-text:empty { display: none; }
.check-card .err-text:not(:empty) { margin: 10px 0 0; }

/* ---------------- badges, avatar */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.claimed { background: var(--mint-soft); color: var(--mint-text); }
.badge.unclaimed { background: var(--amber-soft); color: var(--amber-text); }
.avatar { width: var(--s); height: var(--s); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 calc(var(--s) * .42)/1 var(--display); flex: none; }

/* ---------------- type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: .96; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.04; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.lede { font-size: 18.5px; color: var(--ink-2); max-width: 540px; margin: 20px 0 30px; text-wrap: pretty; }
@media (max-width: 600px) { .lede { font-size: 17px; } }

/* ---------------- sections */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 560px; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

/* ---------------- hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding: 48px 0 60px; } }
.hero h1 .hl { color: var(--mint); }
.crowd { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.crowd-faces { display: flex; }
.crowd-faces .avatar { border: 2px solid var(--bg); margin-left: -8px; }
.crowd-faces .avatar:first-child { margin-left: 0; }

/* ---------------- card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.check-card { padding: 26px; }
.check-card h3 { margin-bottom: 6px; }
.check-row { display: flex; gap: 8px; margin-top: 18px; }
.check-row .input-prefix { flex: 1; min-width: 0; }
@media (max-width: 420px) { .check-row { flex-direction: column; } .check-row .btn { width: 100%; } }
.result { margin-top: 18px; border-radius: var(--r-sm); background: var(--surface-2); padding: 18px; display: none; }
.result.show { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.result-top { display: flex; align-items: center; gap: 12px; }
.result-top .who { min-width: 0; flex: 1; }
.result-top .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-amount { font: 800 32px/1.1 var(--display); letter-spacing: -.03em; margin: 14px 0 4px; }
.result .btn { margin-top: 14px; }

/* ---------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stat { padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 28px/1.1 var(--display); letter-spacing: -.03em; margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stat { padding: 18px; } .stat b { font-size: 23px; } }

/* ---------------- collection grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.cc { display: block; text-decoration: none; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.cc:hover { transform: translateY(-3px); }
.cc-art { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--surface-2); }
.cc-art svg { width: 100%; height: 100%; }
.cc-art .badge { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(6px); }
.cc-body { padding: 16px 18px 18px; }
.cc-for { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 6px; min-width: 0; }
.cc-for span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; }
.cc-meta b { font-weight: 600; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--mint); border-radius: inherit; }

/* ---------------- feed + leaderboard */
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.list-card { overflow: hidden; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.list-head h3 { font-size: 17px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; min-width: 0; }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; }
.row-main > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main a { text-decoration: none; font-weight: 600; }
.row-main a:hover { text-decoration: underline; }
.row-side { text-align: right; flex: none; }
.row-side b { display: block; font-weight: 600; }
.rank { width: 22px; font: 600 13px/1 var(--mono); color: var(--ink-3); flex: none; }
.feed-new { animation: rise .4s ease; }

/* ---------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 26px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-text); display: inline-flex; align-items: center; justify-content: center; font: 800 16px/1 var(--display); margin-bottom: 18px; }
.step p { color: var(--ink-2); margin: 8px 0 0; font-size: 15px; }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font-size: 14.5px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--ink-3); }

/* ---------------- FAQ */
.faq { max-width: 800px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--ink); }
.faq details p { margin: -4px 0 20px; color: var(--ink-2); padding-right: 40px; }
@media (max-width: 600px) { .faq summary { font-size: 16px; } .faq details p { padding-right: 0; } }

/* ---------------- page layouts (launch / collection / claim) */
.page-head { padding-top: 48px; padding-bottom: 28px; }
.page-head p { color: var(--ink-2); margin: 12px 0 0; max-width: 620px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; padding-bottom: 88px; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } }
.form-card { padding: 28px; display: grid; gap: 22px; }
@media (max-width: 600px) { .form-card { padding: 20px; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.fieldset-title { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding-top: 6px; border-top: 1px solid var(--line); padding-top: 22px; }
.fieldset-title:first-child { border-top: 0; padding-top: 0; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg.seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 10px 6px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); }
.sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
.preview .cc-art { aspect-ratio: 1; }
.summary { display: grid; gap: 10px; padding: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary span:first-child { color: var(--ink-3); }

.mint-art { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.mint-art svg, .mint-art img { width: 100%; height: 100%; object-fit: cover; }
.mint-panel { padding: 26px; display: grid; gap: 20px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-line b { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 46px; }
.qty button { width: 46px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 999px; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; }
.mint-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mint-row .btn { flex: 1 1 180px; }
@media (max-width: 600px) { .mint-panel { padding: 20px; } }
h1, h2, h3 { overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.kv > div { background: var(--surface); padding: 14px 16px; }
.kv span { display: block; font-size: 12.5px; color: var(--ink-3); }
.kv b { font-weight: 600; }
.status-box { padding: 16px 18px; border-radius: var(--r-sm); font-size: 14.5px; }
.status-box.unclaimed { background: var(--amber-soft); color: var(--amber-text); }
.status-box.claimed { background: var(--mint-soft); color: var(--mint-text); }
.tx-status { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.tx-status:empty { display: none; }
.tx-status a { color: var(--mint-text); }

.claim-steps { display: grid; gap: 12px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.claim-steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.claim-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.claim-steps b { display: block; }
.claim-steps span { color: var(--ink-2); font-size: 14.5px; }
.x-btn { background: #000; border-color: #000; color: #fff; }
@media (prefers-color-scheme: dark) { .x-btn { background: #fff; border-color: #fff; color: #000; } }
.x-btn svg { width: 18px; height: 18px; }

/* ---------------- footer + toast */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer p { margin: 12px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 13px 16px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow); animation: rise .2s ease; }
.toast.err { background: var(--red-text); color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------------- art picker */
.art-gen { display: grid; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.chip label:hover { border-color: var(--ink-3); }
.chip input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.art-controls { display: flex; gap: 10px; align-items: flex-end; }
@media (max-width: 480px) { .art-controls { flex-direction: column; align-items: stretch; } }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--mint); }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.art-opt { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface-2); transition: transform .15s, border-color .15s; }
.art-opt:hover { transform: translateY(-2px); }
.art-opt svg { width: 100%; height: 100%; display: block; }
.art-opt[aria-checked="true"] { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.art-opt[aria-checked="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.art-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }

/* ---------------- nav search, wallet chip */
.nav-search { position: relative; flex: 1; max-width: 340px; margin-left: auto; }
.nav-search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.nav-search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px 0 38px; font-size: 14px; }
.nav-search input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.nav-search + .nav-right { margin-left: 0; }
.icon-btn { display: none; width: 40px; height: 40px; border-radius: 999px; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface-2); }
#wallet-btn .avatar { margin-left: -6px; }
@media (max-width: 1080px) { .nav-search { display: none; } .search-link { display: inline-flex; } .nav-right { margin-left: auto; } }
.qty-badge { position: absolute; top: 12px; right: 12px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.cc-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- profile + search */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head .avatar { box-shadow: 0 0 0 4px var(--surface); }
.profile-head h1 { font-size: clamp(28px, 4vw, 40px); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 32px 0 24px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button .count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); }
.empty .btn { margin-top: 16px; }
.big-search { position: relative; max-width: 640px; }
.big-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.big-search input { width: 100%; height: 54px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 18px 0 46px; font-size: 16px; }
.big-search input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; }
.acct b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct > div { min-width: 0; flex: 1; }
.results-title { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 32px 0 14px; }
.sort { display: inline-flex; align-items: center; gap: 10px; }
.sort .select { width: auto; min-width: 190px; height: 42px; }
@media (max-width: 600px) { .sort { width: 100%; } .sort .select { flex: 1; } }
.earn-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; margin-bottom: 18px; flex-wrap: wrap; }
.earn-box b { display: block; font: 800 26px/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 4px; }
.earn-box > div { min-width: 0; flex: 1 1 260px; }
#earn-status { margin: -6px 0 16px; }
.claim-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .claim-options { grid-template-columns: minmax(0, 1fr); } }
.claim-opt { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.claim-opt h3 { font-size: 26px; }
.claim-opt p { margin: 0; }
.claim-opt .claim-steps { flex: 1; }
.claim-opt .btn svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .claim-opt { padding: 20px; } .claim-opt .btn { white-space: normal; height: auto; min-height: 52px; padding: 12px 20px; } }
@media (max-width: 360px) {
  .nav-inner { gap: 6px; }
  .logo { font-size: 17px; gap: 6px; }
  .logo svg { width: 24px; height: 24px; }
  #wallet-btn { padding: 0 12px; }
  .icon-btn { width: 36px; }
}

/* ---------------- collection page (OpenSea-style) */
.col-hero { position: relative; }
.col-banner { height: 220px; overflow: hidden; position: relative; background: var(--surface-2); }
.col-banner > * { position: absolute; left: 0; top: 50%; width: 100%; height: auto; min-height: 100%; object-fit: cover; transform: translateY(-50%) scale(1.15); filter: blur(30px) saturate(1.2); opacity: .9; }
.col-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--bg)); }
.col-head { position: relative; display: flex; align-items: flex-end; gap: 22px; margin-top: -84px; flex-wrap: wrap; }
.col-avatar { width: 148px; height: 148px; border-radius: 22px; overflow: hidden; border: 4px solid var(--bg); box-shadow: var(--shadow); background: var(--surface); flex: none; }
.col-avatar > * { width: 100%; height: 100%; object-fit: cover; }
.col-title { flex: 1; min-width: 240px; padding-bottom: 4px; }
.col-title h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 10px 0 8px; }
.col-by { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.col-by .cc-for { margin: 0; }
.col-actions { display: flex; gap: 6px; padding-bottom: 6px; }
.col-actions .icon-btn { border: 1px solid var(--line); background: var(--surface); }
.col-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 28px 0 8px; }
.col-stats > div { background: var(--surface); padding: 16px 18px; min-width: 0; }
.col-stats b { display: block; font: 800 21px/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-stats span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 480px) { .col-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .col-stats b { font-size: 18px; } }
.col-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 88px; }
.col-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 14px; margin-top: 32px; }
@media (max-width: 980px) {
  .col-layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; order: -1; margin-top: 16px; }
}
@media (max-width: 600px) {
  .col-banner { height: 150px; }
  .col-head { margin-top: -60px; gap: 14px; }
  .col-avatar { width: 104px; height: 104px; border-radius: 18px; }
  .col-actions { width: 100%; }
}
.mint-card { padding: 22px; display: grid; gap: 14px; }
.mint-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mint-card .progress { margin-top: 0; }
.split-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; }
.split-bar i { min-width: 10px; }
.split-bar i:nth-child(1) { background: var(--mint); }
.split-bar i:nth-child(2) { background: #6c5ce7; }
.split-bar i:nth-child(3) { background: #f0a020; }
.split-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.split-legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.a { background: var(--mint); } .sw.b { background: #6c5ce7; } .sw.c { background: #f0a020; }
.status-box a { color: inherit; font-weight: 600; }

.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tool-search { position: relative; flex: 1; min-width: 180px; }
.tool-search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-3); }
.tool-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px 0 38px; font-size: 14px; }
.tool-search input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.toolbar .select { width: auto; height: 42px; min-width: 190px; border-radius: 999px; }
@media (max-width: 480px) { .toolbar .select { flex: 1; } }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.item { overflow: hidden; transition: transform .15s; }
.item:hover { transform: translateY(-2px); }
.item-art { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--surface-2); }
.item-art > :first-child { width: 100%; height: 100%; object-fit: cover; }
.item-id { position: absolute; left: 8px; top: 8px; background: rgba(20,20,19,.75); color: #fff; font: 600 11.5px/1 var(--mono); padding: 5px 8px; border-radius: 99px; }
.item-body { padding: 10px 12px 12px; display: grid; gap: 2px; min-width: 0; }
.item-body b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.act { overflow: hidden; }
.act-row { display: grid; grid-template-columns: 90px 1.2fr 1.2fr 1fr 90px; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.act-row:last-child { border-bottom: 0; }
.act-head { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--surface-2); }
.act-row a { color: inherit; }
@media (max-width: 640px) {
  .act-head { display: none; }
  .act-row { grid-template-columns: auto 1fr auto; grid-template-areas: "ev items price" "ev to time"; row-gap: 4px; }
  .act-row > :nth-child(1) { grid-area: ev; } .act-row > :nth-child(2) { grid-area: items; } .act-row > :nth-child(3) { grid-area: price; text-align: right; }
  .act-row > :nth-child(4) { grid-area: to; font-size: 13px; color: var(--ink-3); } .act-row > :nth-child(5) { grid-area: time; text-align: right; font-size: 13px; }
}
.about { display: grid; gap: 16px; }
.about-card { padding: 22px; }
.about-card h3 { margin-bottom: 12px; }
.about-card p { margin: 0; }
@media (max-width: 600px) { .col-by .sep { display: none; } .col-by { gap: 4px 10px; } }
.art-preview-head { display: grid; gap: 2px; }
.art-preview-head b { font-size: 14px; }
.art-opt { cursor: default; }
.art-opt:hover { transform: none; }
.attr-rows { display: grid; gap: 8px; }
.attr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.attr-row .icon-btn { width: 40px; height: 40px; }
@media (max-width: 420px) { .attr-row { grid-template-columns: minmax(0, 1fr) 40px; } .attr-row input:nth-child(2) { grid-column: 1; } .attr-row .icon-btn { grid-row: 1 / span 2; grid-column: 2; } }
.file-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; text-align: center; color: var(--ink-2); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.file-drop:hover { border-color: var(--ink-3); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.field code { font: 12px/1.5 var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; display: inline-block; margin-top: 4px; }
/* items: buttons, ranks, filters, dialog */
button.item { padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.item-rank { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.92); color: #141413; font: 600 11px/1 var(--sans); padding: 5px 8px; border-radius: 99px; }
.filter-btn { height: 42px; padding: 0 16px; }
.filter-btn .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 12px; }
.filters { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 14px; columns: 3 200px; column-gap: 0; overflow: hidden; }
.filters details { border-bottom: 1px solid var(--line); break-inside: avoid; }
.filters summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.filters summary::-webkit-details-marker { display: none; }
.filter-values { display: grid; gap: 6px; padding: 0 14px 12px; max-height: 220px; overflow: auto; }
.filter-values .check { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; font-size: 13.5px; }
.fv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.chip-x { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink); }
.link-btn { border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: 13px; }
.item-dialog { border: 0; padding: 0; border-radius: 18px; width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); display: none; }
.item-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.item-dialog::backdrop { background: rgba(10,10,10,.55); backdrop-filter: blur(3px); }
.dlg-art { aspect-ratio: 1; background: var(--surface-2); }
.dlg-art > :first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.dlg-info { padding: 26px; display: grid; gap: 12px; align-content: start; position: relative; overflow: auto; }
.dlg-info h2 { font-size: 34px; }
.dlg-close { position: absolute; top: 14px; right: 14px; }
.dlg-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trait-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trait { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; background: var(--bg); min-width: 0; }
.trait > span:first-child { font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.trait b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .item-dialog[open] { grid-template-columns: minmax(0, 1fr); overflow: auto; } .dlg-art { max-height: 50vh; } .dlg-info { padding: 20px; } }
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.view-toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: 700 clamp(20px, 2.6vw, 28px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink-3); cursor: pointer; }
.view-toggle button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.grid.grid-nft { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .grid.grid-nft { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.grid-nft { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.nft .cc-body { padding: 12px 14px 14px; }
.nft h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft .cc-for { font-size: 13px; }
.nft .cc-meta { margin-top: 8px; font-size: 13px; }

/* ---------------------------------------------------------------- marketplace */
.badge.sale { background: color-mix(in srgb, #6c5ce7 14%, transparent); color: #5a4bd1; }
.live-dot.off { background: var(--ink-3); box-shadow: none; animation: none; }
.input-prefix.eth-input > b { left: auto; right: 14px; font-size: 13px; }
.input-prefix.eth-input .input { padding-right: 52px; }
.input-prefix { display: block; }
.trade { display: grid; gap: 12px; margin-top: 20px; }
.trade-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.trade-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.trade-top .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.trade-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.trade-price > .muted { flex-basis: 100%; }
.trade-price b { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; }
.trade-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.trade-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 420px) { .trade-fields { grid-template-columns: minmax(0, 1fr); } }
.mini-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.mini-tabs button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.mini-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.offer-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: 14px; }
.offer-list .offer-row + .offer-row { border-top: 1px solid var(--line); }
.offer-row .btn.sm { height: 32px; padding: 0 12px; }
.chip-s { display: inline-block; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.receive:empty { display: none; }
.receive { margin: 0; }
.item-price { display: block; font-weight: 700; font-size: 14px; }
.item-price.auction { color: #5a4bd1; }
.col-offer { display: grid; gap: 10px; padding: 16px 18px; }
.col-offer .mint-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.col-offer .offer-row { padding: 0; }
.dlg-art { align-self: start; }
.dlg-info { max-height: calc(100vh - 32px); }
@media (max-width: 720px) { .dlg-info { max-height: none; } }
@media (prefers-color-scheme: dark) { .badge.sale { color: #b3a8ff; } .item-price.auction { color: #b3a8ff; } }

/* ---------------------------------------------------------------- portal */
.portal-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 26px; }
.portal-stats > div { background: var(--surface); padding: 16px 18px; min-width: 0; }
.portal-stats b { display: block; font: 800 22px/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-stats span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 900px) { .portal-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .portal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .portal-stats b { font-size: 18px; } }
.credit-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--mint-soft); color: var(--mint-text); font-size: 14.5px; }
.p-list { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.p-row { display: grid; grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; font-size: 14.5px; min-width: 0; }
.p-row + .p-row { border-top: 1px solid var(--line); }
.p-row.p-head { padding: 10px 16px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; background: var(--bg); }
.p-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: block; }
.p-thumb > :first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-name { display: grid; min-width: 0; }
.p-name b, .p-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.p-actions .btn { height: 36px; padding: 0 14px; font-size: 14px; }
.p-actions .select { height: 36px; width: auto; min-width: 0; font-size: 14px; padding-left: 10px; }
.subtabs { margin-bottom: 16px; display: inline-flex; }
.item-status { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.94); color: #141413; font: 700 11.5px/1 var(--sans); padding: 6px 9px; border-radius: 99px; }
.item-status.auction { background: #6c5ce7; color: #fff; }
.input-prefix.eth-input .input { padding-left: 14px; }
.p-row { grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 230px; }
.subtabs button { white-space: nowrap; padding: 8px 14px; }
@media (max-width: 900px) { .portal-stats > div:nth-child(5):last-child { grid-column: span 2; } }
@media (max-width: 520px) { .portal-stats > div:nth-child(5):last-child { grid-column: 1 / -1; } }
.item-dialog[open] .dlg-art { position: sticky; top: 0; }

@media (max-width: 720px) {
  .p-row { grid-template-columns: 52px minmax(0, 1fr) auto; row-gap: 6px; }
  .p-row.p-head { display: none; }
  .p-row > .p-c3, .p-row > .p-c4 { grid-column: 2 / 3; font-size: 13.5px; }
  .p-row > .p-actions { grid-column: 1 / -1; justify-content: stretch; }
  .p-row > .p-actions .btn, .p-row > .p-actions .select { flex: 1; }
}

/* ---------------------------------------------------------------- uploads */
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 28px 18px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--mint); background: var(--mint-soft); outline: none; }
.dropzone b { color: var(--ink); font-size: 15.5px; }
.dropzone.compact { padding: 14px; grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 12px; }
.dropzone.compact > svg { grid-row: span 2; }
.dropzone.compact .muted { display: none; }
.dropzone.compact .cta-row { grid-column: 1 / -1; justify-content: flex-start !important; margin-top: 0 !important; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-sm { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; padding: 14px 16px; position: relative; }
.dz-sm .dz-text { display: grid; gap: 2px; min-width: 0; }
.dz-sm .dz-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dz-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.dz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-alt summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); margin: 4px 0; }
.link-alt[open] summary { margin-bottom: 8px; }
.link-alt .input { margin-bottom: 4px; }
.bulk-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.bulk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bulk-item { position: relative; }
.bulk-open { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; position: relative; }
.bulk-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bulk-open .item-id { left: 4px; top: 4px; font-size: 10px; padding: 3px 6px; }
.bulk-open:hover, .bulk-open:focus-visible { border-color: var(--mint); outline: none; }
.bulk-tcount { position: absolute; left: 4px; bottom: 4px; background: var(--mint); color: #fff; font: 700 10px/1 var(--sans); padding: 3px 6px; border-radius: 99px; }
.bulk-x { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(20,20,19,.75); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.bulk-item:hover .bulk-x, .bulk-x:focus-visible { opacity: 1; }
@media (hover: none) { .bulk-x { opacity: 1; } }
#bulk-more:empty { display: none; }
.bulk-traits { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.upload-progress { display: grid; gap: 6px; margin-top: 12px; }
.upload-progress .progress { margin-top: 0; }
.trait-dialog { border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.trait-dialog::backdrop { background: rgba(10,10,10,.55); }
.trait-form { display: grid; gap: 14px; padding: 22px; }
.trait-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.trait-head img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.trait-head > div { display: grid; min-width: 0; }
.trait-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { position: relative; }

/* ---------------------------------------------------------------- wallet menu */
.wallet-wrap { position: relative; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.14); display: grid; }
.wallet-menu .wm-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wallet-menu .wm-head > div { display: grid; min-width: 0; }
.wallet-menu a, .wallet-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: 500 14.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.wallet-menu a:hover, .wallet-menu button:hover, .wallet-menu a:focus-visible, .wallet-menu button:focus-visible { background: var(--surface-2); outline: none; }
.wallet-menu .wm-danger { color: var(--red-text); }
.claim-steps b span { font: inherit; color: inherit; display: inline; }
