
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --panel: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --brand: #7c3aed;
  --brand-2: #3b82f6;
  --brand-text: #6d28d9;
  --brand-soft: #f5f3ff;
  --brand-soft-2: #ede9fe;
  --brand-soft-border: #c4b5fd;
  --gradient: linear-gradient(90deg, #9333ea 0%, #3b82f6 100%);
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --media-bg: #0b1020;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --topbar-h: 64px;
  --statusbar-h: 34px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #090d18; --bg-subtle: #0d1322; --panel: #121a2c; --surface: #0f1626; --border: #1e293b; --border-strong: #334155;
    --text: #e2e8f0; --text-2: #cbd5e1; --muted: #94a3b8; --faint: #64748b;
    --brand: #8b5cf6; --brand-text: #c4b5fd; --brand-soft: #1c1736; --brand-soft-2: #251d48; --brand-soft-border: #4c3a8a;
    --ok: #4ade80; --ok-soft: #0c2a19; --danger: #f87171; --danger-soft: #3a1214; --warn: #fbbf24; --warn-soft: #33240a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .35); --shadow-lg: 0 10px 40px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d18; --bg-subtle: #0d1322; --panel: #121a2c; --surface: #0f1626; --border: #1e293b; --border-strong: #334155;
  --text: #e2e8f0; --text-2: #cbd5e1; --muted: #94a3b8; --faint: #64748b;
  --brand: #8b5cf6; --brand-text: #c4b5fd; --brand-soft: #1c1736; --brand-soft-2: #251d48; --brand-soft-border: #4c3a8a;
  --ok: #4ade80; --ok-soft: #0c2a19; --danger: #f87171; --danger-soft: #3a1214; --warn: #fbbf24; --warn-soft: #33240a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .35); --shadow-lg: 0 10px 40px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--statusbar-h) + 8px);
}
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-sm { display: grid; gap: 8px; align-content: start; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* ---- top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { height: var(--topbar-h); max-width: 1440px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-weight: 800; font-size: 19px; letter-spacing: .01em; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .dot { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { display: block; width: 30px; height: 30px; flex: none; margin-right: 11px; filter: drop-shadow(0 2px 6px rgba(124, 58, 237, .28)); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 8px 10px; color: var(--text-2); font-weight: 500; font-size: 15px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--bg-subtle); text-decoration: none; }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--text); }
.search { position: relative; flex: 1 1 320px; max-width: 440px; }
form.search input { width: 100%; height: 42px; padding: 0 44px 0 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
form.search input::placeholder { color: var(--muted); }
form.search input:focus { outline: none; border-color: var(--brand-soft-border); box-shadow: 0 0 0 4px var(--brand-soft-2); }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; background: var(--bg-subtle); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: filter .15s, background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 1px 2px rgba(91, 33, 182, .25); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn-soft { background: var(--brand-soft); color: var(--brand-text); border-color: var(--brand-soft-border); }
.btn-soft:hover:not(:disabled) { background: var(--brand-soft-2); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover:not(:disabled) { border-color: var(--border-strong); background: var(--bg-subtle); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-subtle); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--bg-subtle); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-text); font: inherit; font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---- page layout */
.page { max-width: 1440px; margin: 0 auto; padding: 28px 24px 40px; display: grid; gap: 28px; align-content: start; }
.page > *, .stack > *, .with-sidebar > * { min-width: 0; }
.page-narrow { max-width: 1040px; }
.page-tight { max-width: 620px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: 6px; }
.hero { display: grid; gap: 14px; padding: 36px; border-radius: 22px; background:
  radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #9333ea 16%, transparent), transparent 55%),
  radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, #3b82f6 16%, transparent), transparent 55%), var(--bg-subtle); border: 1px solid var(--border); }
.hero h1 { font-size: 40px; max-width: 880px; }
.hero p { font-size: 17px; color: var(--text-2); max-width: 640px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--brand-text); letter-spacing: .02em; }

/* ---- cards and panels */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card-subtle { background: var(--bg-subtle); }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head .icon { color: var(--muted); }
.big-number { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big-number small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dashboard .wide { grid-column: span 2; }

/* ---- stats strip */
.stats { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats > div { flex: 1 1 140px; padding: 14px 18px; border-right: 1px solid var(--border); display: grid; gap: 2px; min-width: 0; }
.stats > div:last-child { border-right: 0; }
.stats dt, .stat-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.stats dd { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.stats .sub { font-size: 12px; color: var(--faint); }
dl { margin: 0; }

/* ---- XRP amounts */
.xrp { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xrp-mark { width: 16px; height: 16px; border-radius: 999px; background: var(--text); color: var(--bg); display: inline-grid; place-items: center; font: 800 9px/1 var(--font); flex: none; }
.xrp-mark::after { content: 'X'; }
.xrp .unit { font-weight: 500; color: var(--muted); font-size: .85em; }

/* ---- tiles (inscription cards) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 18px; }
.tiles-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.tiles-row > * { scroll-snap-align: start; }
.tile { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: box-shadow .2s, transform .2s, border-color .2s; min-width: 0; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); text-decoration: none; }
.tile-media { position: relative; display: block; aspect-ratio: 1; background: var(--media-bg); overflow: hidden; }
.tile-media img, .thumb img, .collection-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; background: #111; border: 0; }
.tile-media iframe, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.tile-media .badge { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; background: rgba(15, 23, 42, .72); color: #fff; border: 0; backdrop-filter: blur(4px); }
.tile-body { display: grid; gap: 8px; padding: 12px 14px 14px; align-content: start; }
.tile-collection { display: block; margin-top: -4px; font-size: 12px; font-weight: 600; color: var(--brand-text); }
.tile-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); min-width: 0; }
.tile-title:hover { color: var(--brand-text); text-decoration: none; }
.tile-title .badge { flex: 0 1 auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.tile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile-actions .btn { height: 34px; font-size: 13px; padding: 0 10px; }
.tile-actions.single { grid-template-columns: 1fr; }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #94a3b8; font: 12px var(--mono); padding: 14px; text-align: center; overflow-wrap: anywhere; }
.skeleton { background: linear-gradient(90deg, var(--panel), var(--bg-subtle), var(--panel)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- badges */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--panel); color: var(--text-2); border: 1px solid var(--border); }
.badge-brand { background: var(--gradient); color: #fff; border: 0; }
.badge-soft { background: var(--brand-soft); color: var(--brand-text); border-color: var(--brand-soft-border); }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* ---- tabs */
.listing-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.search-field { position: relative; display: flex; align-items: center; min-width: 0; }
.search-field .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.listing-search .search-field input { width: 100%; padding-left: 40px; }
.market-collections td { white-space: nowrap; }
.coll-cell { gap: 12px; color: var(--text); min-width: 0; }
.coll-cell:hover { text-decoration: none; color: var(--brand-text); }
.coll-cell .thumb { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.market-collections tbody tr:hover td { background: var(--bg-subtle); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a, .tabs button { flex: none; padding: 12px 16px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font: 500 14px var(--font); cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.tabs-fill > * { flex: 1; text-align: center; }
.segmented { display: inline-flex; gap: 2px; padding: 4px; background: var(--panel); border-radius: 12px; border: 1px solid var(--border); }
.segmented button, .segmented a { height: 34px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 500 14px var(--font); cursor: pointer; display: inline-flex; align-items: center; }
.segmented .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented a:hover { text-decoration: none; }

/* ---- key/value lists and attribute tiles */
.kv { display: grid; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.kv > div { display: grid; grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); gap: 14px; padding: 11px 14px; border-top: 1px solid var(--border); align-items: baseline; }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.attr { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-subtle); display: grid; gap: 4px; min-width: 0; }
.attr dt { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.attr dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* ---- item page */
.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--media-bg); border: 1px solid var(--border); }
.media iframe { pointer-events: auto; }
.price-card { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.price-card .label { font-size: 13px; color: var(--muted); }
.price-card .xrp { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.price-card .xrp-mark { width: 22px; height: 22px; font-size: 12px; }
.price-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-actions .btn { height: 46px; font-size: 15px; }
.price-actions.single { grid-template-columns: 1fr; }

/* ---- tables and feeds */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .plus { color: var(--ok); }
.table .bad { color: var(--danger); }
.feed { display: grid; }
.feed-row { display: grid; grid-template-columns: 42px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: var(--bg-subtle); text-decoration: none; }
.feed-time { color: var(--muted); font-size: 12px; }
.thumb { position: relative; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; background: var(--media-bg); }
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.feed-sub { color: var(--muted); font-size: 12px; }
.empty { display: grid; place-items: center; gap: 10px; padding: 44px 18px; color: var(--muted); text-align: center; }
.empty .icon { color: var(--faint); }

/* ---- forms */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], input[type=url], input[type=number], input[type=search], textarea, select {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 15px var(--font);
}
textarea { font-family: var(--mono); font-size: 13px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand-soft-border); box-shadow: 0 0 0 4px var(--brand-soft-2); }
select.compact { width: auto; min-height: 36px; padding: 6px 30px 6px 12px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
details > summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; }
details[open] { display: grid; gap: 12px; }
.card > details:not([open]), details.card:not([open]) { display: block; }
.dropzone { position: relative; display: grid; place-items: center; gap: 6px; min-height: 210px; padding: 24px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-subtle); color: var(--muted); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.over { background: var(--brand-soft); border-color: var(--brand-soft-border); color: var(--brand-text); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone > div { justify-items: center; }
.dropzone strong { color: var(--text); font-weight: 600; font-size: 15px; }

/* ---- messages */
.status:empty { display: none; }
.status { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-subtle); border: 1px solid var(--border); font-size: 14px; overflow-wrap: anywhere; }
.status.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.status.error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.notice strong { color: inherit; }

/* ---- status bar */
.statusbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--statusbar-h); display: flex; align-items: center; gap: 0; background: var(--bg-subtle); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); overflow-x: auto; white-space: nowrap; }
.statusbar > * { padding: 0 14px; border-right: 1px solid var(--border); height: 100%; display: inline-flex; align-items: center; gap: 6px; }
.statusbar > .spacer { border: 0; flex: 1; padding: 0; }
.statusbar > :last-child { border-right: 0; }
.statusbar a[aria-label] { color: var(--muted); }
.statusbar a[aria-label]:hover { color: var(--brand-text); }
.statusbar b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.statusbar a { color: var(--text-2); }
.live { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.live.off { background: var(--faint); box-shadow: none; }
.pill-net { text-transform: capitalize; font-weight: 600; }

/* ---- site banner and collections */
.site-banner { background: var(--gradient); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; }
.site-banner a { color: #fff; text-decoration: underline; }
.collection-chip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); border: 1px solid var(--brand-soft-border); font-size: 13px; font-weight: 600; }
.collection-chip:hover { text-decoration: none; background: var(--brand-soft-2); }
.collection-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.collection-icon { position: relative; width: 96px; height: 96px; border-radius: 20px; overflow: hidden; background: var(--media-bg); border: 1px solid var(--border); flex: none; }
.collection-icon iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.trait-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.collection-tile .tile-meta { font-size: 12px; }
.collection-tile .tile-media .badge { left: auto; right: 10px; }

/* ---- footer */
.footer { max-width: 1440px; margin: 0 auto; padding: 8px 24px 28px; color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
  .dashboard .wide { grid-column: auto; }
}
@media (max-width: 900px) {
  .item-layout { grid-template-columns: 1fr; }
  .nav a { font-size: 14px; padding: 8px; }
}
@media (max-width: 760px) {
  .topbar-inner { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px 12px; }
  .brand { font-size: 17px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  .brand-mark { margin-right: 9px; }
  .search kbd { display: none; }
  .nav { order: 4; flex: 1 1 100%; overflow-x: auto; margin: 0 -6px; }
  .nav a.active::after { bottom: -4px; }
  .page { padding: 18px 16px 32px; gap: 22px; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 30px; }
  h1 { font-size: 26px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .tile-actions { grid-template-columns: 1fr; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .grid-2 { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .stats > div { flex-basis: 45%; border-bottom: 1px solid var(--border); }
  .hide-sm { display: none !important; }
  .listing-search { grid-template-columns: minmax(0, 1fr) auto; }
  .listing-search select { grid-column: 1; }
  .footer { padding: 8px 16px 24px; }
}

/* ================================================================ wallet-only */

.page-tight { max-width: 680px; }
.stack-lg { gap: 36px; }
.stack-xs { display: grid; gap: 0; line-height: 1.2; text-align: left; }
.full { grid-column: 1 / -1; }
.card-pad { padding: 16px 16px 4px; }
.center-head { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 0 4px; }
.center-head p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pre { margin: 0; white-space: pre-wrap; max-height: 320px; overflow: auto; }
.skeleton.line { height: 16px; }
.skeleton.short { width: 60%; }
.copied { outline: 2px solid var(--ok) !important; outline-offset: 2px; }
.secret { background: var(--warn-soft); color: var(--warn); padding: 3px 8px; border-radius: 6px; }
.big-secret { font-size: 15px; display: inline-block; padding: 8px 12px; letter-spacing: .02em; }

/* ---- top bar extras */
.net-select { font-weight: 600; text-transform: capitalize; background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.net-select.mainnet { background: var(--danger-soft); color: var(--danger); }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.acct-btn:hover { background: var(--bg-subtle); }
.acct-addr { font-size: 13px; font-weight: 600; }
.acct-balance { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; z-index: 60; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg-subtle); text-decoration: none; }
.avatar { display: inline-block; border-radius: 999px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.avatar-empty { width: 44px; height: 44px; background: var(--gradient); }
.busy .nav, .busy .net-select, .busy .acct-btn { pointer-events: none; opacity: .55; }

/* ---- dialogs */
.modal { border: 1px solid var(--border); border-radius: 18px; padding: 24px; background: var(--surface); color: var(--text); width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal[open] { display: grid; gap: 16px; }
.modal::backdrop { background: rgba(9, 13, 24, .55); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-head .icon-btn { width: 34px; height: 34px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-actions .btn { min-width: 110px; }
.modal.connect .segmented { width: 100%; }
.modal.connect .segmented button { flex: 1; justify-content: center; }
.note { color: var(--muted); font-size: 14px; }
.derived:empty { display: none; }
.derived { font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.derived.ok { color: var(--ok); }
.derived.error { color: var(--danger); }
.account-line { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-subtle); border: 1px solid var(--border); }
.link-btn.center { justify-self: center; }

/* ---- toasts */
.toasts { position: fixed; right: 18px; bottom: calc(var(--statusbar-h) + 14px); z-index: 80; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .18s ease-out; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ---- wallet dashboard */
.connect-card { gap: 18px; }
.get-started { display: grid; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--brand-soft-border);
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, #9333ea 14%, transparent), transparent 60%), var(--brand-soft); }
.get-started h2 { font-size: 20px; }
.addr-copy { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); font-weight: 600; cursor: pointer; font-size: 14px; }
.addr-copy:hover { color: var(--brand-text); }
.addr-title { font-size: 20px !important; font-weight: 600; overflow-wrap: anywhere; }
.fund { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); }
.fund h3 { color: var(--warn); }
.address { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.address code { font-size: 14px; padding: 8px 10px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); }
.offer-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.offer-counts a { display: grid; gap: 2px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-subtle); color: var(--text); }
.offer-counts a:hover { border-color: var(--brand-soft-border); text-decoration: none; }
.offer-counts b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.offer-counts span { font-size: 12px; color: var(--muted); }
.connect-btn .short { display: none; }
@media (max-width: 760px) { .connect-btn .short { display: inline; } }
.tx-list { display: grid; }
.tx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.tx-row:last-child { border-bottom: 0; }
.tx-row b { font-size: 13px; font-weight: 600; }
.tx-row .delta { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.tx-row .delta.plus { color: var(--ok); }
.tx-row .delta.bad { color: var(--danger); font-size: 12px; }
.tx-row a { color: var(--muted); display: inline-grid; }
.offer-list { display: grid; gap: 8px; }
.offer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.offer-row .status { grid-column: 1 / -1; }
.page-tight-card { max-width: 620px; }

/* ---- inscribe */
.chosen { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); }
.chosen-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--media-bg); display: grid; place-items: center; color: #94a3b8; overflow: hidden; }
.chosen-thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
progress { width: 100%; height: 10px; accent-color: var(--brand); }
.progress { display: grid; gap: 6px; }

@media (max-width: 760px) {
  .acct-btn .stack-xs { display: none; }
  .acct-btn { padding: 0 8px; }
  .connect-btn { padding: 0 12px; }
  .connect-btn .long, .theme-btn { display: none !important; }
  .top-actions { gap: 6px; }
  .net-select { max-width: 104px; }
  .offer-counts b { font-size: 20px; }
  .modal { padding: 18px; }
}
.secret-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.secret-row .mono { min-width: 0; overflow-wrap: anywhere; }

/* ---- wallet button and hamburger menu */
.topbar { position: sticky; }
.menu-btn { display: none; position: relative; align-items: center; gap: 6px; height: 42px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.menu-btn:hover { background: var(--bg-subtle); }
.menu-btn[aria-expanded="true"] { border-color: var(--brand-soft-border); box-shadow: 0 0 0 4px var(--brand-soft-2); }
.menu-btn.connected > .icon:first-child { color: var(--brand-text); }
.menu-dot { position: absolute; left: 26px; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 2px var(--surface); }
.mobile-account { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mobile-account .menu-head { border-bottom: 0; margin: 0; padding: 6px 4px; }
.mobile-account nav { display: grid; gap: 2px; }
.mobile-account nav a, .mobile-account nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; border: 0; background: none; color: var(--text); font: 500 16px var(--font); text-align: left; cursor: pointer; }
.mobile-account nav a:hover, .mobile-account nav button:hover { background: var(--bg-subtle); text-decoration: none; }
.mobile-account nav a.active { background: var(--brand-soft); color: var(--brand-text); }
.mobile-account nav .icon { color: var(--muted); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; display: grid; gap: 12px; padding: 10px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); max-height: calc(100vh - 80px); overflow: auto; }
.mobile-menu nav { display: grid; gap: 2px; }
.mobile-menu nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--text); font-size: 16px; font-weight: 500; }
.mobile-menu nav a:hover { background: var(--bg-subtle); text-decoration: none; }
.mobile-menu nav a.active { background: var(--brand-soft); color: var(--brand-text); }
.mobile-menu nav a .icon { color: var(--muted); }
.mobile-menu nav a.active .icon { color: var(--brand-text); }
.market-collections tbody tr.clickable { cursor: pointer; }
.mobile-menu-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; padding-top: 12px; border-top: 1px solid var(--border); }
.mobile-menu select { text-transform: capitalize; }
@media (max-width: 1100px) {
  .topbar .nav, .topbar .net-select, .topbar .theme-btn, .topbar .acct, .topbar .connect-btn { display: none !important; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
}

.menu a.active { background: var(--brand-soft); color: var(--brand-text); }
.acct-btn[aria-expanded="true"] { border-color: var(--brand-soft-border); box-shadow: 0 0 0 4px var(--brand-soft-2); }

/* ---- collections, create, admin */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.code-block { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; max-height: 360px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 320px; overflow: auto; padding: 2px; }
.pick { display: grid; justify-items: center; gap: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pick .thumb { width: 56px; height: 56px; }
.sub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.sub-row .full-row { grid-column: 1 / -1; margin: 0; }
.thumb-row { display: flex; gap: 6px; flex-wrap: wrap; }
.problems { margin: 0; padding-left: 18px; color: var(--warn); font-size: 14px; }
.danger-text { color: var(--danger) !important; }
.trait-chip { cursor: pointer; }
td.wrap { white-space: normal; overflow-wrap: anywhere; }
.modal.wide { width: min(860px, calc(100vw - 24px)); }
.modal.wide textarea { min-height: 50vh; }
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .sub-row { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------------------------------------------------------------- docs */
.docs-page { max-width: 1240px; }
.docs-hero { gap: 16px; }
.docs-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.docs-quick-card { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); color: var(--text); transition: transform .15s, border-color .15s, box-shadow .15s; }
.docs-quick-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand-soft-border); box-shadow: var(--shadow); }
.docs-quick-card span:last-child { color: var(--muted); font-size: 13px; }
.docs-quick-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; background: var(--gradient); color: #fff; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs-toc { position: sticky; top: calc(var(--topbar-h) + 24px); display: grid; gap: 2px; padding-left: 2px; }
.docs-toc-title { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; }
.docs-toc-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; border-left: 2px solid transparent; }
.docs-toc-link .icon { color: var(--muted); }
.docs-toc-link:hover { text-decoration: none; background: var(--bg-subtle); color: var(--text); }
.docs-toc-link.active { background: var(--brand-soft); color: var(--brand-text); border-left-color: var(--brand); }
.docs-toc-link.active .icon { color: var(--brand-text); }
.docs-chips { display: none; }
.docs-body { display: grid; gap: 18px; min-width: 0; }
.docs-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scroll-margin-top: calc(var(--topbar-h) + 20px); line-height: 1.65; min-width: 0; }
.docs-section h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; letter-spacing: -.02em; }
.docs-h-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); flex: none; }
.docs-section h3 { font-size: 16px; margin-top: 8px; }
.docs-section p, .docs-section li { color: var(--text-2); }
.docs-section b { color: var(--text); }
.docs-section ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.docs-section code { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; color: var(--text); }
.docs-lead { font-size: 17px; }
.docs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: none; }
.docs-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 12px 0; position: relative; }
.docs-steps li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 48px; bottom: -4px; width: 2px; background: var(--border); }
.docs-steps p { margin: 2px 0 0; }
.docs-step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 0 0 4px var(--brand-soft-2); }
.docs-callout { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; }
.docs-callout > .icon { margin-top: 2px; }
.docs-callout b { display: block; margin-bottom: 2px; }
.docs-callout.info { background: var(--brand-soft); border-color: var(--brand-soft-border); color: var(--brand-text); }
.docs-callout.tip { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.docs-callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--warn); }
.docs-callout.info b, .docs-callout.tip b, .docs-callout.warn b { color: inherit; }
.docs-callout div div { color: var(--text-2); }
.docs-table .table td { white-space: normal; vertical-align: top; }
.docs-table .table td:first-child { white-space: nowrap; }
.docs-table { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.docs-code { position: relative; }
.docs-code pre { margin: 0; padding: 16px 48px 16px 16px; max-height: 380px; overflow: auto; border-radius: var(--radius-sm); background: #0b1020; color: #e2e8f0; border: 1px solid #1e293b; font-size: 13px; line-height: 1.55; }
.docs-code pre code { background: none; border: 0; padding: 0; color: inherit; white-space: pre; overflow-wrap: normal; }
.docs-copy { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #334155; background: #111827; color: #cbd5e1; cursor: pointer; }
.docs-copy:hover { color: #fff; border-color: #64748b; }
.docs-copy.copied { color: #4ade80; border-color: #4ade80; }
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.docs-card { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-subtle); }
.docs-card > .icon { color: var(--brand-text); }
.docs-card p { margin: 0; font-size: 14px; }
.docs-checks { list-style: none; padding: 0 !important; }
.docs-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.docs-checks .icon { color: var(--ok); margin-top: 4px; }
.docs-faq { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--bg-subtle); }
.docs-faq summary { color: var(--text); font-weight: 600; font-size: 15px; }
.docs-faq p { margin: 0; }
.docs-end { display: grid; justify-items: center; gap: 12px; padding: 32px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-soft-border); text-align: center; }
.docs-end p { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }

@media (max-width: 1100px) {
  .docs-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--docs-sticky-top, var(--topbar-h)); z-index: 30; margin: -12px -24px 0; padding: 10px 24px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .docs-chips::-webkit-scrollbar { display: none; }
  .docs-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; }
  .docs-chip:hover { text-decoration: none; }
  .docs-chip.active { background: var(--brand-soft); border-color: var(--brand-soft-border); color: var(--brand-text); }
  .docs-section { scroll-margin-top: calc(var(--docs-sticky-top, var(--topbar-h)) + 64px); }
}
@media (max-width: 760px) {
  .docs-section { padding: 20px 18px; }
  .docs-section h2 { font-size: 20px; }
  .docs-cards { grid-template-columns: minmax(0, 1fr); }
  .docs-quick-card { padding: 14px; }
  .docs-chips { margin: -12px -16px 0; padding: 10px 16px; }
}

/* ---------------------------------------------------------------- collection inscribing */
.dropzone-sm { min-height: 150px; }
.batch-files { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.batch-files:empty { display: none; }
.batch-file { display: grid; grid-template-columns: 36px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-subtle); font-size: 14px; }
.batch-thumb { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--media-bg); color: var(--muted); }
.batch-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.batch-state { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.batch-state.active { color: var(--brand-text); border-color: var(--brand-soft-border); background: var(--brand-soft); }
.batch-state.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.batch-state.done a { color: inherit; }
.icon-btn-sm { width: 28px; height: 28px; }
