@font-face {
  font-family: 'Geist';
  src: url('https://musechain.io/fonts/geist/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0d10;
  --surface: #13171d;
  --surface-alt: #1a2028;
  --surface-hover: #222935;
  --border: #242c38;
  --border-active: #ccff00;
  --lime: #ccff00;
  --lime-soft: rgba(204, 255, 0, 0.12);
  --lime-glow: rgba(204, 255, 0, 0.25);
  --text: #f0f4f8;
  --text-muted: #8b99a9;
  --red: #ff5c5c;
  --red-soft: rgba(255, 92, 92, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.subtag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.links {
  display: flex;
  gap: 14px;
}

.links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.links a:hover {
  color: var(--lime);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  background: linear-gradient(135deg, var(--surface) 0%, #151a22 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pill-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid rgba(204, 255, 0, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

.hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero .lede {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.privacy-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(204, 255, 0, 0.05);
  border-left: 3px solid var(--lime);
  border-radius: 4px;
  font-size: 12px;
  color: #dbe4ee;
  line-height: 1.45;
}

.privacy-callout svg {
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-art img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.workspace {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.col-head h2 {
  font-size: 16px;
  font-weight: 600;
}

.counter {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 12px;
}

.receipt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-item:hover {
  background: var(--surface-hover);
  border-color: #3b4657;
  transform: translateY(-1px);
}

.receipt-item.active {
  border-color: var(--lime);
  background: #18201b;
  box-shadow: 0 0 16px var(--lime-soft);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-id-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.receipt-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
}

.pill-success {
  background: var(--lime-soft);
  color: var(--lime);
  border: 1px solid rgba(204, 255, 0, 0.4);
}

.pill-reverted {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(255, 92, 92, 0.4);
}

.receipt-function {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.receipt-sub {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.detail-col {
  min-height: 480px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.detail-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.detail-title-group h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.actions-cluster {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--lime);
  color: #0b0d10;
}

.btn-primary:hover {
  background: #b8e600;
}

.btn-outline {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-hover);
  border-color: #435266;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-box.full-width {
  grid-column: span 2;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.field-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}

.share-banner {
  background: #111a14;
  border: 1px dashed rgba(204, 255, 0, 0.4);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.share-banner-text {
  font-size: 12px;
  color: #d1ded2;
}

.share-banner-text span {
  color: var(--lime);
  font-weight: 600;
}

.not-found-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.not-found-state svg {
  color: var(--red);
}

.not-found-state h3 {
  font-size: 18px;
}

.not-found-state p {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 360px;
}

.footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--lime);
  color: #0b0d10;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10deg);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-box.full-width {
    grid-column: span 1;
  }
}