:root {
  --bg0: #000000;
  --bg1: #0a0a0a;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --acid: #c41212;
  --hot: #e10600;
  --sol-a: #c41212;
  --sol-b: #ffffff;
  --line: rgba(255, 255, 255, 0.14);
  --font-display: "Syne", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

a,
button,
.plate-card,
.adm-trigger {
  touch-action: manipulation;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: #000000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 8% -12%, rgba(225, 6, 0, 0.12), transparent 52%),
    radial-gradient(800px 520px at 92% 8%, rgba(255, 255, 255, 0.04), transparent 48%),
    linear-gradient(180deg, #0a0a0a, #000000 58%, #000000);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Dark scrollbars (Firefox + Chromium/WebKit) — profile panels, pages */
* {
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a #0a0a0a;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #0a0a0a;
}

*::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 6px;
  border: 2px solid #0a0a0a;
}

*::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}

*::-webkit-scrollbar-corner {
  background: #0a0a0a;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.11;
  z-index: 40;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 41;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: max(0.7rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px)) 0.7rem
    max(1rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.mark img {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(52vw, 220px);
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--acid);
}

.dim {
  color: var(--muted);
  opacity: 0.55;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 7.5rem);
  min-height: calc(100dvh - 7.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  max-width: 56rem;
}

.leet {
  margin: 0 0 0.75rem;
  color: var(--acid);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.75;
}

.glitch::before {
  color: var(--hot);
  transform: translate(2px, -1px);
  clip-path: inset(0 0 55% 0);
  animation: glitch-a 3.2s infinite linear alternate-reverse;
}

.glitch::after {
  color: #ffffff;
  transform: translate(-2px, 1px);
  clip-path: inset(45% 0 0 0);
  animation: glitch-b 2.4s infinite linear alternate-reverse;
}

@keyframes glitch-a {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(3px, -2px);
  }
  96% {
    transform: translate(-2px, 1px);
  }
}

@keyframes glitch-b {
  0%,
  88%,
  100% {
    transform: translate(0);
  }
  91% {
    transform: translate(-3px, 1px);
  }
  95% {
    transform: translate(2px, -1px);
  }
}

.tag {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cta-row {
  margin-top: 2rem;
}

.link-brutal {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 0.85rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.link-brutal:hover {
  background: var(--hot);
  color: #ffffff;
  border-color: var(--hot);
}

.hint {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  opacity: 0.8;
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem max(1.5rem, env(safe-area-inset-right, 0px))
    max(1.35rem, env(safe-area-inset-bottom, 0px))
    max(1.5rem, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
}

.foot a:hover {
  color: var(--ink);
}

.sep {
  opacity: 0.4;
}

/* —— collection shell —— */
.page-collection .shell {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1rem max(1.15rem, env(safe-area-inset-right, 0px)) 2.5rem
    max(1.15rem, env(safe-area-inset-left, 0px));
}

.collection-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.collection-kicker {
  margin: 0 0 0.4rem;
  color: var(--hot);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.collection-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.collection-blurb {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.wallet-panel {
  min-width: min(100%, 16.5rem);
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.wallet-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.btn-phantom {
  width: 100%;
  border: 1px solid var(--hot);
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  background: #111111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: filter 160ms ease, transform 160ms ease, background 160ms ease;
}

.btn-phantom:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-phantom:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.wallet-status {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
}

.physi-card {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: none;
}

.physi-card.visible {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.physi-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #111;
}

.physi-meta {
  font-size: 0.75rem;
  line-height: 1.4;
}

.physi-meta strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.folder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1rem;
}

.folder-bar button {
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--muted);
  cursor: pointer;
}

.folder-bar button[aria-selected="true"] {
  border-color: var(--hot);
  color: #ffffff;
  background: #140404;
}

.folder-count {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.grid.grid-density-comfortable {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.grid.grid-density-cozy {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.grid.grid-density-dense {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.4rem;
}

.grid.grid-density-dense .plate-card-meta {
  padding: 0.35rem 0.4rem 0.4rem;
}

.grid.grid-density-dense .plate-card-title {
  font-size: 0.58rem;
}

.cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(225, 6, 0, 0.1), transparent 40%),
    linear-gradient(320deg, rgba(255, 255, 255, 0.04), transparent 45%),
    #0a0a0a;
  display: grid;
  place-items: end start;
  padding: 0.55rem;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.cell:nth-child(3n) {
  background:
    linear-gradient(200deg, rgba(225, 6, 0, 0.08), transparent 50%),
    #0a0a0a;
}

/* Plate cards — never crop art; title below artwork */
.plate-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #0a0a0a;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.plate-card:hover,
.plate-card:focus-visible {
  border-color: var(--hot);
  outline: none;
  transform: translateY(-2px);
}

.plate-card-art {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f1ea;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.plate-card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.plate-card-meta {
  padding: 0.55rem 0.65rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.plate-card-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #f2f2f2;
  font-weight: 600;
}

.plate-card-sub {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Plate profile lightbox */
.plate-profile {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 3, 8, 0.92);
  padding: 1rem;
}

.plate-profile.open {
  display: flex;
}

.pp-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  background: #0b0910;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pp-close:hover {
  border-color: var(--hot);
}

.pp-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 6, 14, 0.72);
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
}

.pp-nav:hover {
  border-color: var(--hot);
  color: #ffffff;
}

.pp-nav-prev {
  left: 0.55rem;
}

.pp-nav-next {
  right: 0.55rem;
}

.btn-phantom.is-connected {
  opacity: 0.95;
  background: #1a0505;
  color: #fff;
  border: 1px solid var(--hot);
}

.mint-preview {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 3, 8, 0.94);
  padding: 1rem;
}

.mint-preview.open {
  display: flex;
}

.mint-preview-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(94vh, 920px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #0b0910;
  padding: 1rem 1.1rem 1.25rem;
}

.mint-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.mint-preview-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
}

.mint-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.mint-preview-art img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #05040a;
  border: 1px solid var(--line);
}

.mint-preview-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mint-preview-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.mint-preview-fields input,
.mint-preview-fields textarea {
  border: 1px solid var(--line);
  background: #05040a;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.45rem 0.55rem;
  resize: vertical;
}

.mint-preview-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.mint-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

@media (max-width: 860px) {
  .pp-nav {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.9rem;
  }

  .mint-preview-grid {
    grid-template-columns: 1fr;
  }
}

.pp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  width: min(1100px, 100%);
  max-height: min(92vh, 900px);
  align-items: stretch;
}

.pp-art {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #05040a;
  min-height: 240px;
  overflow: hidden;
}

.pp-art img {
  max-width: 100%;
  max-height: min(84vh, 820px);
  object-fit: contain;
  display: block;
}

.pp-meta {
  overflow: auto;
  border: 1px solid var(--line);
  background: #0b0910;
  padding: 1rem 1.1rem 1.25rem;
  max-height: min(84vh, 820px);
}

.pp-kicker {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff2d6a;
  margin-bottom: 0.35rem;
}

.pp-title {
  font-family: Syne, sans-serif;
  font-size: 1.55rem;
  margin: 0 0 0.85rem;
  color: #fff;
}

.pp-cell {
  margin-bottom: 1rem;
}

.pp-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.35rem;
}

.pp-label .pp-sub {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

.pp-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  max-height: 9.5rem;
  overflow: auto;
}

.pp-audio-player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.pp-scrub {
  flex: 1 1 8rem;
  min-width: 6rem;
  accent-color: var(--hot);
  height: 0.35rem;
}

.pp-audio-time {
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
}

.pp-awaken-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.btn-awaken,
.btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: #ffffff;
  background: #1a0505;
  border-color: var(--hot);
  font-weight: 600;
}

.btn-mint:disabled,
.btn-awaken:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pp-audio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.pp-commentary {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #d8d8d8;
  white-space: pre-wrap;
  max-height: 8rem;
  overflow: auto;
  border-left: 2px solid var(--hot);
  padding-left: 0.65rem;
}

.pp-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pp-trait {
  font-size: 0.68rem;
  border: 1px solid var(--line);
  padding: 0.25rem 0.4rem;
  color: #e8e8e8;
  max-width: 100%;
  word-break: break-word;
}

.pp-trait-k {
  color: #9a9a9a;
}

.pp-chat-note,
.pp-mint-note,
.pp-pipx-status {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.pp-pipx {
  border: 1px solid rgba(225, 6, 0, 0.4);
  padding: 0.75rem 0.7rem 0.85rem;
  background: linear-gradient(
    165deg,
    rgba(225, 6, 0, 0.08),
    rgba(255, 255, 255, 0.03)
  );
}

.pp-pipx-bin {
  margin-bottom: 0.65rem;
}

.pp-pipx-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.pp-pipx-row strong {
  font-size: 0.95rem;
  color: var(--hot);
  letter-spacing: 0.02em;
}

.pp-pipx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pp-pipx-sublabel {
  margin-top: 0.75rem;
}

.pp-pipx-offers,
.pp-solar-list {
  font-size: 0.72rem;
  color: #d8d8d8;
  max-height: 6.5rem;
  overflow: auto;
  margin-bottom: 0.45rem;
}

.pp-offer-row,
.pp-solar-row {
  border-bottom: 1px solid var(--line);
  padding: 0.3rem 0;
  word-break: break-word;
}

.pp-solar-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #05040a;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.45rem 0.55rem;
  resize: vertical;
  margin-bottom: 0.4rem;
}

.pp-physi-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--hot);
  text-decoration: none;
}

.pp-physi-link:hover {
  text-decoration: underline;
}

.pp-chat-row {
  display: flex;
  gap: 0.4rem;
}

.pp-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #05040a;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.45rem 0.55rem;
}

.pp-hint {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .pp-stage {
    grid-template-columns: 1fr;
    max-height: none;
    height: auto;
    overflow: auto;
    width: 100%;
  }

  .pp-art img {
    max-height: min(42vh, 42dvh);
  }

  .pp-meta {
    max-height: none;
  }
}

/* Top bar shell + ADM */
.shell-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-link:hover {
  color: var(--acid);
}

.icon-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1;
}

.icon-gear:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.adm-wrap {
  position: relative;
}

.btn-connect-sm {
  border: 1px solid var(--hot);
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #ffffff;
  background: #111111;
}

.adm-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #0b0910;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  min-height: 2.5rem;
  touch-action: manipulation;
}

.adm-trigger img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  background: #1a1524;
}

.adm-trigger img[hidden] {
  display: none;
}

.adm-chip-addr {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.adm-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(20rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  background: #0b0910;
  z-index: 60;
  padding: 0.85rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.adm-id {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.adm-id img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: #1a1524;
}

.adm-id img[hidden] {
  display: none;
}

.adm-id-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.adm-id-meta strong {
  font-size: 0.9rem;
}

.adm-muted {
  font-size: 0.68rem;
  color: var(--muted);
}

.adm-addr-btn {
  border: none;
  background: transparent;
  color: var(--acid);
  font: inherit;
  font-size: 0.68rem;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.adm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.adm-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.68rem;
  padding: 0.5rem 0.4rem;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.adm-btn:hover {
  border-color: var(--hot);
}

.adm-btn.dimmed {
  opacity: 0.55;
}

.adm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}

.adm-foot-gear {
  font-size: 1.1rem;
  padding: 0.25rem 0.4rem;
}

.adm-logout {
  border: 1px solid rgba(255, 45, 106, 0.45);
  background: transparent;
  color: #ff6b8a;
  font: inherit;
  font-size: 0.7rem;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.settings-shell {
  padding-top: 2rem;
  padding-bottom: 4rem;
  padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
}

.settings-card {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
  background: rgba(11, 9, 16, 0.85);
}

.settings-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.settings-dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.settings-dl > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.settings-dl dt {
  color: var(--muted);
  margin: 0;
}

.settings-dl dd {
  margin: 0;
  word-break: break-all;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.settings-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.btn-ghost.dimmed {
  opacity: 0.55;
}

@media (max-width: 1023px) {
  .top {
    flex-wrap: nowrap;
    align-items: center;
  }

  .shell-nav-right {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-tez {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--ink);
  padding: 0.15rem 0.2rem;
  border: 1px solid transparent;
}

.nav-tez:hover {
  color: var(--hot);
  border-color: var(--line);
}

.nav-tez .tez-sym {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 600;
}

.nav-tez .nav-easel {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  background: #050505;
  border-radius: 10px;
}

.gt-density {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  background: #000;
}

.gt-density button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.gt-density button[aria-pressed="true"] {
  background: rgba(225, 6, 0, 0.22);
  color: var(--hot);
}

.gt-density button:hover {
  color: #fff;
}

.gt-density svg {
  display: block;
}

.gt-count {
  font-size: 0.78rem;
  color: var(--muted);
}

.gt-sort-wrap,
.gt-gear-wrap {
  position: relative;
}

.gt-sort,
.gt-gear,
.gt-play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #000;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  border-radius: 10px;
  cursor: pointer;
}

.gt-sort {
  padding: 0.4rem 0.7rem;
}

.gt-gear,
.gt-play {
  width: 2.15rem;
  height: 2.15rem;
  justify-content: center;
  padding: 0;
}

.gt-play {
  border-color: rgba(225, 6, 0, 0.55);
  color: var(--hot);
  background: rgba(225, 6, 0, 0.1);
  margin-left: auto;
}

.gt-play:hover,
.gt-sort:hover,
.gt-gear:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.gt-sort-menu,
.gt-gear-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  min-width: 11rem;
  border: 1px solid var(--line);
  background: #0a0a0a;
  padding: 0.35rem 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.gt-sort-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.gt-sort-menu button[aria-selected="true"] {
  color: var(--hot);
  background: rgba(225, 6, 0, 0.12);
}

.gt-gear-pop {
  padding: 0.55rem 0.7rem;
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 14rem;
}

.eg-show {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: #000;
}

.eg-show.open {
  display: flex;
}

.eg-show-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.eg-show-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.eg-show-bar {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.82);
  color: #eee;
  font-size: 0.8rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.eg-show-bar button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.eg-show-bar button:hover {
  color: var(--hot);
}

.eg-show-sep {
  opacity: 0.35;
}

.eg-show-bar.is-hidden {
  opacity: 0;
  pointer-events: none;
}

html:has(.plate-profile.open),
html:has(.eg-show.open),
html:has(.mint-preview.open),
body:has(.plate-profile.open),
body:has(.eg-show.open),
body:has(.mint-preview.open) {
  overflow: hidden;
  overscroll-behavior: none;
}

.plate-profile.open:not([hidden]),
.mint-preview.open:not([hidden]),
.eg-show.open:not([hidden]) {
  display: flex;
}

.plate-profile,
.mint-preview {
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
}

.eg-show {
  height: 100%;
  height: 100dvh;
  width: 100%;
}

.eg-show-bar {
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px), var(--vv-bottom, 0px));
  max-width: calc(100% - 1.5rem);
  flex-wrap: wrap;
  justify-content: center;
}

@media (pointer: coarse) {
  .eg-show-bar.is-hidden {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (hover: none) {
  .plate-card:hover,
  .plate-card:focus-visible {
    transform: none;
  }

  .btn-phantom:hover {
    transform: none;
  }
}

@media (max-width: 1023px) {
  .mark img {
    height: 26px;
    max-width: min(38vw, 148px);
  }

  .nav-link {
    display: none;
  }

  .nav-tez,
  .icon-gear,
  .gt-density button,
  .gt-gear,
  .gt-play,
  .folder-bar button {
    min-width: 44px;
    min-height: 44px;
  }

  .nav-tez {
    padding: 0.35rem 0.4rem;
  }

  .icon-gear {
    width: 44px;
    height: 44px;
  }

  .btn-connect-sm {
    min-height: 44px;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
  }

  .adm-trigger {
    min-height: 44px;
  }

  .adm-panel {
    position: fixed;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    top: 4.25rem;
    max-height: min(32rem, calc(100dvh - 5.5rem));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    width: min(20rem, calc(100% - 1.5rem));
  }

  .page-collection .wallet-panel {
    display: none;
  }

  .collection-head {
    margin-bottom: 0.65rem;
  }

  .collection-title {
    font-size: clamp(1.55rem, 8vw, 2.4rem);
  }

  .collection-blurb {
    font-size: 0.74rem;
    max-width: none;
  }

  .gallery-toolbar {
    padding: 0.35rem 0.45rem;
    gap: 0.4rem 0.5rem;
    border-radius: 12px;
  }

  .gt-play {
    margin-left: 0;
  }

  .gt-sort,
  .gt-count {
    min-height: 44px;
    align-items: center;
  }

  .gt-sort {
    padding: 0.35rem 0.65rem;
  }

  .folder-bar {
    gap: 0.3rem;
  }

  .folder-count {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .grid.grid-density-comfortable {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid,
  .grid.grid-density-cozy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .grid.grid-density-dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .pp-close {
    top: max(0.5rem, env(safe-area-inset-top, 0px));
    right: max(0.5rem, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }

  .pp-nav {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .pp-nav-prev {
    left: max(0.25rem, env(safe-area-inset-left, 0px));
  }

  .pp-nav-next {
    right: max(0.25rem, env(safe-area-inset-right, 0px));
  }

  .pp-stage {
    max-height: none;
  }

  .pp-meta,
  .mint-preview-card {
    -webkit-overflow-scrolling: touch;
  }

  .pp-chat-input,
  .pp-solar-input,
  .mint-preview-fields input,
  .mint-preview-fields textarea {
    font-size: 16px;
  }

  .hero {
    padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) 2rem
      max(1rem, env(safe-area-inset-left, 0px));
    max-width: none;
  }

  .brand {
    font-size: clamp(2.35rem, 14vw, 4.2rem);
    overflow-wrap: anywhere;
  }

  .eg-show-bar button {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .grid,
  .grid.grid-density-cozy {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .grid.grid-density-comfortable {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .grid.grid-density-dense {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}
