:root {
  color-scheme: dark;
  --bg: #040710;
  --bg-2: #09111d;
  --panel: rgba(10, 16, 28, 0.76);
  --panel-soft: rgba(14, 21, 36, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f7ff;
  --muted: rgba(235, 240, 255, 0.58);
  --muted-strong: rgba(235, 240, 255, 0.8);
  --accent: #7ce8dd;
  --ok: #46d6a0;
  --warn: #ffbf72;
  --danger: #ff747d;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 14% 0%, rgba(124, 232, 221, 0.07), transparent 22%),
    radial-gradient(circle at 88% 6%, rgba(118, 146, 255, 0.06), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(124, 232, 221, 0.035), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, #07101a 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
  padding:
    max(12px, env(safe-area-inset-top))
    12px
    max(16px, env(safe-area-inset-bottom))
    12px;
}

body::before {
  content: "";
  position: fixed;
  inset: -18% -12%;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.028), transparent 16%),
    radial-gradient(circle at 78% 12%, rgba(124, 232, 221, 0.025), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.016), transparent 20%);
  filter: blur(52px);
  opacity: 0.62;
}

body::after {
  content: "";
  position: fixed;
  inset: -24% -18%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(124, 232, 221, 0.11), transparent 20%),
    radial-gradient(circle at 78% 10%, rgba(120, 138, 255, 0.1), transparent 18%),
    radial-gradient(circle at 58% 82%, rgba(190, 126, 255, 0.08), transparent 22%);
  filter: blur(96px) saturate(132%);
  opacity: 0.5;
  animation: auroraShift 18s ease-in-out infinite alternate;
}

.app-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  perspective: 1400px;
}

.topbar {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-y: 0px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(7, 11, 22, 0.68);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 36px rgba(0, 0, 0, 0.2);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift-y));
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.topbar::before {
  content: "";
  position: absolute;
  top: -42%;
  left: -12%;
  width: 44%;
  height: 190%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(124, 232, 221, 0.16) 0%, rgba(124, 232, 221, 0.04) 34%, transparent 68%);
  opacity: 0.7;
  filter: blur(24px);
  mix-blend-mode: screen;
  animation: driftLight 16s ease-in-out infinite;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateZ(14px);
}

.brand-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(9, 14, 24, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(124, 232, 221, 0.06);
  overflow: hidden;
  transform: translateZ(18px);
  isolation: isolate;
}

.brand-orb::before,
.brand-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.brand-orb::before {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.2), transparent 32%),
    radial-gradient(circle at 68% 76%, rgba(124, 232, 221, 0.12), transparent 44%);
  opacity: 0.95;
  animation: orbPulse 7.4s ease-in-out infinite;
}

.brand-orb::after {
  inset: -8%;
  border: 1px solid rgba(124, 232, 221, 0.18);
  opacity: 0.68;
  filter: blur(1px);
  animation: orbRing 11s linear infinite;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.28);
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18))
    drop-shadow(0 0 14px rgba(124, 232, 221, 0.08));
  animation: brandFloat 9s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar h1,
.section-head h3,
.side-panel h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.topbar h1 {
  font-size: clamp(1.3rem, 5.2vw, 1.76rem);
  line-height: 0.98;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ghost-button,
.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  backdrop-filter: blur(10px) saturate(118%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ghost-button {
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.ghost-button-small {
  padding: 7px 11px;
  font-size: 0.8rem;
}

.ghost-button:hover,
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 232, 221, 0.32);
  background: rgba(124, 232, 221, 0.08);
}

.layout,
.workspace-main,
.workspace-side,
.filter-stack {
  display: grid;
  gap: 8px;
}

.status-strip,
.summary-card,
.collection-card,
.side-panel,
.search-shell {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-y: 0px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--panel);
  backdrop-filter: blur(14px) saturate(118%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.14);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift-y));
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
}

.status-strip::before {
  content: "";
  position: absolute;
  top: -72%;
  right: -18%;
  width: 36%;
  height: 220%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(124, 232, 221, 0.14) 0%, rgba(124, 232, 221, 0.035) 38%, transparent 68%);
  opacity: 0.62;
  filter: blur(22px);
  mix-blend-mode: screen;
  animation: driftLight 18s ease-in-out infinite reverse;
}

.status-meta,
.quick-links,
.section-head,
.board-toolbar,
.collection-summary-left,
.collection-summary-right {
  transform: translateZ(10px);
}

.status-meta {
  display: grid;
  gap: 6px;
}

.updated-at,
.panel-copy,
.collection-address,
.collection-meta,
.wallet-address,
.empty-state,
.error-state {
  margin: 0;
  color: var(--muted);
}

.updated-at,
.collection-address,
.collection-meta,
.wallet-address {
  font-size: 0.8rem;
}

.panel-copy {
  line-height: 1.5;
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.text-link.is-disabled {
  opacity: 0.52;
  pointer-events: none;
}

.meta-pill,
.section-pill,
.market-badge,
.wallet-market,
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.live-dot,
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 14px rgba(70, 214, 160, 0.55);
}

.workspace {
  display: grid;
  gap: 10px;
}

.workspace-tabs,
.workspace-view {
  display: grid;
  gap: 8px;
}

.workspace-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(7, 11, 22, 0.58);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.12);
}

.workspace-tab {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.workspace-tab:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.workspace-tab.is-active {
  background:
    linear-gradient(180deg, rgba(124, 232, 221, 0.18), rgba(124, 232, 221, 0.06)),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 22px rgba(16, 122, 116, 0.12);
}

.board-toolbar {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.composer-shell {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(124, 232, 221, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(124, 232, 221, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(8, 12, 24, 0.54);
}

.composer-grid,
.composer-row,
.composer-actions,
.composer-markets {
  display: flex;
  gap: 8px;
}

.composer-grid {
  flex-wrap: wrap;
}

.composer-grid > .search-shell {
  flex: 1 1 240px;
}

.composer-row {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.composer-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.composer-feedback {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.composer-feedback.is-error {
  color: #ffb8bd;
}

.composer-feedback.is-success {
  color: #a9ffe2;
}

.search-shell {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.search-label {
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.search-input::placeholder {
  color: rgba(235, 240, 255, 0.38);
}

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.chip.is-active {
  border-color: rgba(124, 232, 221, 0.34);
  background:
    linear-gradient(180deg, rgba(124, 232, 221, 0.12), rgba(124, 232, 221, 0.045)),
    rgba(124, 232, 221, 0.045);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 18px rgba(16, 122, 116, 0.06);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-head h3,
.side-panel h3 {
  font-size: 1.05rem;
  line-height: 1;
}

.collection-stack,
.wallet-stack {
  display: grid;
  gap: 6px;
}

.collection-card {
  overflow: hidden;
}

.collection-card::before {
  content: "";
  position: absolute;
  inset: -22% auto auto -10%;
  width: 42%;
  height: 160%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(124, 232, 221, 0.12) 0%, rgba(124, 232, 221, 0.03) 36%, transparent 70%);
  opacity: 0;
  filter: blur(26px);
  mix-blend-mode: screen;
  transition: opacity 280ms ease;
}

.collection-card[open] {
  border-color: rgba(124, 232, 221, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.18);
}

.collection-card:hover::before,
.collection-card[open]::before {
  opacity: 0.95;
}

.collection-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.92fr) auto;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  list-style: none;
  cursor: pointer;
}

.collection-summary::-webkit-details-marker {
  display: none;
}

.collection-summary-left {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.collection-summary-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.summary-floor {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.008);
  backdrop-filter: blur(12px) saturate(116%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transform: translateZ(12px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.summary-floor.is-live-card {
  border-color: rgba(70, 214, 160, 0.22);
  background:
    linear-gradient(180deg, rgba(70, 214, 160, 0.055), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
  box-shadow:
    inset 0 1px 0 rgba(70, 214, 160, 0.08),
    0 8px 18px rgba(18, 68, 52, 0.05);
}

.summary-floor.is-muted-card {
  border-style: dashed;
  opacity: 0.8;
}

.summary-floor.is-best-card {
  border-color: rgba(124, 232, 221, 0.52);
  background:
    linear-gradient(180deg, rgba(124, 232, 221, 0.16), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(124, 232, 221, 0.14),
    0 0 0 1px rgba(124, 232, 221, 0.08),
    0 10px 24px rgba(16, 122, 116, 0.12);
  transform: translateZ(18px) translateY(-1px) scale(1.01);
}

.summary-floor.is-best-card::before {
  content: "";
  position: absolute;
  inset: -20% -6%;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 78% 78%, rgba(124, 232, 221, 0.22), transparent 34%);
  opacity: 0.8;
  filter: blur(18px);
}

.summary-floor.is-best-card .summary-floor-value {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(124, 232, 221, 0.16);
}

.summary-floor.is-best-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.02) 28%, rgba(124, 232, 221, 0.1) 50%, transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.55;
  transform: translateX(-38%);
  animation: bestSweep 7.5s ease-in-out infinite;
}

.summary-floor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.summary-floor-label {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-floor-value {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.98rem, 3.8vw, 1.08rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.summary-floor-subvalue {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.summary-floor.is-muted-card .summary-floor-value {
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.summary-floor-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1;
}

.summary-floor-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.summary-floor-state.is-live {
  color: var(--ok);
}

.summary-floor-state.is-empty {
  color: var(--warn);
}

.summary-floor-state.is-muted {
  color: var(--muted);
}

.summary-floor-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(124, 232, 221, 0.28);
  background: rgba(124, 232, 221, 0.18);
  color: #dffffa;
  box-shadow: 0 0 16px rgba(124, 232, 221, 0.14);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collection-toggle {
  color: var(--muted);
  font-size: 1rem;
  transition: transform 160ms ease, color 160ms ease;
}

.collection-card[open] .collection-toggle {
  transform: rotate(180deg);
  color: var(--text);
}

.collection-panel {
  padding: 2px 10px 8px;
  border-top: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.992);
  transform-origin: top center;
  filter: blur(8px);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.2, 0.9, 0.25, 1),
    filter 320ms ease;
}

.collection-card[open] .collection-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: panelBloom 380ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.collection-rank {
  display: none;
}

.collection-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.collection-logo.fallback {
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.collection-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.collection-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.collection-title h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.98rem, 3.9vw, 1.14rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.collection-address {
  word-break: break-all;
}

.collection-meta {
  font-size: 0.75rem;
}

.collection-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.collection-spread {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(124, 232, 221, 0.1), rgba(124, 232, 221, 0.03)),
    rgba(255, 255, 255, 0.015);
  color: var(--muted-strong);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transform: translateZ(8px);
}

.collection-spread-meter {
  display: inline-grid;
  grid-template-columns: auto 42px auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateZ(8px);
}

.spread-side.is-active {
  color: #e6fffb;
}

.spread-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.spread-fill {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 19px;
  bottom: 1px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(124, 232, 221, 0.58), rgba(124, 232, 221, 0.96));
  box-shadow:
    0 0 16px rgba(124, 232, 221, 0.25),
    0 0 24px rgba(124, 232, 221, 0.1);
  transition: transform 260ms ease;
  animation: spreadDrift 6s ease-in-out infinite;
}

.collection-spread-meter.is-ebisus-best .spread-fill {
  transform: translateX(21px);
}

.favorite-mark {
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
}

.collection-markets {
  display: grid;
  gap: 0;
  margin-top: 4px;
}

.collection-panel-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 2px 0 8px;
}

.panel-tool {
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.015);
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transform: translateZ(8px);
}

.panel-tool.is-active {
  border-color: rgba(124, 232, 221, 0.34);
  background: rgba(124, 232, 221, 0.09);
  color: var(--text);
}

.panel-tool.is-danger {
  border-color: rgba(255, 116, 125, 0.18);
  color: #ffd7db;
}

.panel-tool.is-danger:hover {
  border-color: rgba(255, 116, 125, 0.32);
  background: rgba(255, 116, 125, 0.08);
}

.panel-tool.is-muted {
  color: var(--muted);
}

.panel-tool.is-compact {
  padding: 5px 9px;
  font-size: 0.68rem;
}

.panel-tool:disabled {
  opacity: 0.45;
  cursor: default;
}

@keyframes brandFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(1.01);
  }
}

@keyframes auroraShift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.42;
  }

  50% {
    transform: translate3d(2%, 2%, 0) scale(1.08);
    opacity: 0.6;
  }

  100% {
    transform: translate3d(-1%, 4%, 0) scale(1.02);
    opacity: 0.48;
  }
}

@keyframes driftLight {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(10%, 4%, 0) scale(1.08);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes orbRing {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.04);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes bestSweep {
  0%,
  100% {
    transform: translateX(-38%);
    opacity: 0.34;
  }

  50% {
    transform: translateX(28%);
    opacity: 0.7;
  }
}

@keyframes spreadDrift {
  0%,
  100% {
    filter: saturate(100%);
  }

  50% {
    filter: saturate(120%);
  }
}

@keyframes panelBloom {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes marketReveal {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.market-table-head,
.market-row {
  display: grid;
  grid-template-columns:
    minmax(108px, 0.9fr)
    minmax(128px, 1fr)
    minmax(150px, 1.1fr)
    minmax(110px, 0.82fr)
    auto;
  gap: 12px;
  align-items: center;
}

.market-table-head {
  padding: 0 0 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-row {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.market-alerts {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.market-alert-state,
.market-alert-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.market-alert-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
}

.market-alert-pill.is-active {
  border-color: rgba(124, 232, 221, 0.24);
  background: rgba(124, 232, 221, 0.09);
  color: var(--text);
}

.market-alert-pill.is-drop-active {
  border-color: rgba(118, 146, 255, 0.22);
  background: rgba(118, 146, 255, 0.1);
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  min-width: 220px;
  max-width: min(92vw, 460px);
  padding: 11px 14px;
  border: 1px solid rgba(124, 232, 221, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(124, 232, 221, 0.14), rgba(124, 232, 221, 0.06)),
    rgba(8, 16, 28, 0.9);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px) saturate(120%);
  transform: translateX(-50%);
}

.app-toast.is-error {
  border-color: rgba(255, 116, 125, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 116, 125, 0.13), rgba(255, 116, 125, 0.04)),
    rgba(20, 11, 17, 0.92);
}

.collection-card[open] .market-row {
  opacity: 0;
  animation: marketReveal 300ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

.collection-card[open] .market-row:nth-of-type(1) {
  animation-delay: 40ms;
}

.collection-card[open] .market-row:nth-of-type(2) {
  animation-delay: 80ms;
}

.collection-card[open] .market-row:nth-of-type(3) {
  animation-delay: 120ms;
}

.market-col {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.market-col-market {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.market-col-label {
  display: none;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-value,
.market-price {
  font-variant-numeric: tabular-nums;
}

.market-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.92rem, 3.5vw, 1.06rem);
  font-weight: 700;
  line-height: 1;
}

.market-value {
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.25;
}

.market-subvalue {
  color: var(--muted);
  font-size: 0.7rem;
}

.market-inline-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.market-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.8rem;
}

.side-panel {
  padding: 14px;
}

.wallet-row {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-label {
  font-weight: 600;
}

.wallet-markets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wallet-market {
  font-size: 0.76rem;
  padding: 4px 8px;
}

.activity-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(0, 0, 0, 0.12);
}

.activity-card-top,
.activity-title-row,
.activity-links {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.activity-title-row {
  align-items: center;
}

.activity-badges,
.activity-links,
.activity-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.activity-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-kind.is-buy {
  border: 1px solid rgba(70, 214, 160, 0.24);
  background: rgba(70, 214, 160, 0.12);
  color: #dcfff2;
}

.activity-kind.is-sell {
  border: 1px solid rgba(255, 191, 114, 0.28);
  background: rgba(255, 191, 114, 0.12);
  color: #fff1dd;
}

.activity-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.activity-subtitle,
.activity-meta,
.activity-time,
.activity-wallet-name {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.activity-time {
  text-align: right;
  white-space: nowrap;
}

.activity-price-shell {
  display: grid;
  gap: 2px;
  min-width: fit-content;
  text-align: right;
}

.activity-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.activity-meta {
  line-height: 1.45;
}

.activity-inline {
  font-size: 0.74rem;
  color: var(--muted-strong);
}

.state-shell {
  display: grid;
  place-items: center;
  min-height: 30vh;
  text-align: center;
  padding: 18px;
}

.state-shell h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
}

.is-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .topbar::before,
  .status-strip::before,
  .collection-card::before,
  .summary-floor.is-best-card::before,
  .summary-floor.is-best-card::after,
  .brand-orb::after {
    display: none;
  }

  .brand-orb::before,
  .brand-logo,
  .spread-fill {
    animation: none;
  }

  .collection-card,
  .summary-floor,
  .search-shell,
  .chip,
  .panel-tool,
  .activity-card {
    backdrop-filter: none;
  }

  .collection-panel,
  .collection-card[open] .collection-panel {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }

  .collection-card[open] .market-row {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 640px) {
  body::after {
    opacity: 0.34;
    filter: blur(82px) saturate(118%);
    animation-duration: 24s;
  }

  .topbar::before,
  .status-strip::before,
  .collection-card::before {
    opacity: 0.42;
  }

  .summary-floor.is-best-card::before {
    opacity: 0.52;
    filter: blur(14px);
  }

  .summary-floor.is-best-card::after {
    opacity: 0.38;
    animation-duration: 9.5s;
  }

  .brand-orb::after {
    opacity: 0.46;
    animation-duration: 14s;
  }

  .brand-orb::before {
    animation-duration: 9s;
  }

  .brand-logo {
    animation-duration: 11s;
  }

  .spread-fill {
    animation-duration: 8s;
  }

  .search-shell,
  .chip,
  .panel-tool {
    backdrop-filter: none;
  }

  .collection-panel {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(0.996);
    filter: none;
    transition:
      opacity 180ms ease,
      transform 240ms cubic-bezier(0.2, 0.9, 0.25, 1);
  }

  .collection-card[open] .collection-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    animation: none;
  }

  .collection-card[open] .market-row {
    opacity: 0;
    animation: marketReveal 220ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  }

  body {
    padding-inline: 10px;
  }

  .topbar,
  .status-strip,
  .workspace-tabs,
  .search-shell,
  .collection-card,
  .side-panel,
  .activity-card {
    border-radius: 16px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .ghost-button {
    padding: 9px 12px;
  }

  .status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-links {
    gap: 10px;
  }

  .workspace-tabs {
    grid-template-columns: 1fr;
  }

  .collection-rank {
    display: none;
  }

  .collection-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .collection-summary-left {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .collection-summary-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-toggle {
    display: none;
  }

  .market-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 8px 0;
  }

  .market-table-head {
    display: none;
  }

  .market-col-label {
    display: block;
  }

  .market-col-market,
  .market-actions {
    grid-column: 1 / -1;
  }

  .market-actions {
    justify-content: flex-start;
  }

  .market-alerts {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-alert-actions {
    width: 100%;
  }

  .activity-card-top,
  .activity-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-time,
  .activity-price-shell {
    text-align: left;
  }
}
