/* Spell Tag — charcoal + light purple accents */

@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400&display=swap");

.st-body {
  --sp-font: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sp-display: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sp-space: #0c0c0e;
  --sp-space-mid: #1a1a1f;
  --sp-nebula: #2a2a32;
  --sp-nebula-teal: #3d3d48;
  --sp-pink: #c4a8e8;
  --sp-pink-hot: #a78bfa;
  --sp-pink-soft: #ddd6fe;
  --sp-lilac: #9a9aaa;
  --sp-cyan: #c8c8d0;
  --sp-star: #f0f0f4;
  --sp-text: #e8e8ee;
  --sp-muted: #9a9aaa;
  --sp-glass: rgba(22, 22, 28, 0.88);
  --sp-glass-border: rgba(196, 168, 232, 0.28);
  --sp-glow: 0 0 28px rgba(196, 168, 232, 0.22);
  --st-red: #c4a8e8;
  --st-paper: #d4d4dc;
}

.st-body button,
.st-body input,
.st-body select,
.st-body textarea {
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.st-body::before {
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(196, 168, 232, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 20%, rgba(200, 200, 210, 0.06), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(196, 168, 232, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 30% at 40% 50%, rgba(40, 40, 48, 0.9), transparent 60%),
    linear-gradient(165deg, #08080a 0%, #121218 40%, #1a1a22 75%, #0c0c0e 100%);
}

.st-body .sp-stars {
  background-image:
    radial-gradient(1px 1px at 14% 22%, rgba(196, 168, 232, 0.55), transparent),
    radial-gradient(1px 1px at 36% 58%, rgba(212, 212, 220, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 62% 16%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 80% 44%, rgba(196, 168, 232, 0.35), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(200, 200, 210, 0.35), transparent),
    radial-gradient(1px 1px at 24% 86%, rgba(196, 168, 232, 0.3), transparent);
}

.st-body .sp-shooting-star {
  background: linear-gradient(90deg, transparent 0%, var(--st-red) 55%, #fff 100%);
  filter: drop-shadow(0 0 6px rgba(196, 168, 232, 0.7));
}

.st-mock-banner {
  display: none;
}

.st-body .sp-brand.st-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
  max-width: min(920px, 96vw);
}

.st-body .sp-brand-logo.st-mascot {
  width: min(72px, 18vw);
  height: auto;
  margin: 0;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 24px rgba(196, 168, 232, 0.35));
}

.st-wordmark {
  display: block;
  width: min(220px, 48vw);
  height: auto;
  margin: 0;
  flex: 1 1 160px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

.st-body .sp-topbar {
  background: rgba(12, 12, 14, 0.85);
  border-bottom-color: rgba(196, 168, 232, 0.2);
}

.st-body .sp-topbar-link.is-active,
.st-body .sp-topbar-link:hover {
  color: var(--sp-pink-soft);
}

.st-body .sp-panel {
  border-color: rgba(200, 200, 210, 0.14);
  box-shadow: var(--sp-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.st-body .sp-card {
  background:
    radial-gradient(circle at 50% 25%, rgba(196, 168, 232, 0.08), transparent 55%),
    rgba(16, 16, 20, 0.55);
  border-color: rgba(200, 200, 210, 0.12);
}

.st-body .sp-card:hover {
  border-color: rgba(196, 168, 232, 0.55);
  box-shadow: 0 14px 32px rgba(196, 168, 232, 0.22), 0 0 18px rgba(196, 168, 232, 0.15);
}

.st-body .sp-segment-btn.active {
  background: linear-gradient(135deg, #2a2a32, var(--st-red));
  border-color: transparent;
  color: #fff;
}

.st-body .sp-adv-toggle:hover,
.st-body .sp-page-btn:hover:not(:disabled),
.st-body .sp-clear-btn:hover,
.st-body .sp-zoom-btn:hover:not(:disabled) {
  border-color: var(--st-red);
  color: var(--sp-pink-soft);
}

.st-body .sp-linkish {
  color: var(--sp-pink-soft);
}

.st-body .sp-view-row {
  border-top-color: rgba(196, 168, 232, 0.15);
}

.st-body .sp-field input:focus,
.st-body .sp-field select:focus {
  border-color: var(--st-red);
  box-shadow: 0 0 0 3px rgba(196, 168, 232, 0.2);
}

.st-body .sp-sibling.rep {
  outline-color: var(--st-red);
  box-shadow: 0 0 14px rgba(196, 168, 232, 0.35);
}

.st-body .sp-name-link {
  background-image: linear-gradient(90deg, #f0f0f4, var(--st-red));
  border-bottom-color: rgba(196, 168, 232, 0.4);
}

.st-body .sp-footer strong {
  color: var(--sp-pink-soft);
}

.st-body .sp-footer a {
  color: var(--st-paper);
}

.st-body .sp-topbar-account {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.st-body a.sp-topbar-login {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
  border-color: rgba(196, 168, 232, 0.45);
  color: var(--sp-pink-soft);
}

.st-body a.sp-topbar-login:hover {
  border-color: rgba(196, 168, 232, 0.75);
  color: #fff;
}

.st-body .sp-topbar-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(220px, 42vw);
}

.st-body .sp-topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(196, 168, 232, 0.35);
}

.st-body .sp-topbar-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 168, 232, 0.2);
  color: var(--sp-pink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.st-body .sp-topbar-profile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-body .sp-topbar-logout {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sp-muted);
  background: transparent;
  border: 1px solid rgba(200, 200, 210, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.st-body .sp-topbar-logout:hover {
  color: var(--sp-pink-soft);
  border-color: rgba(196, 168, 232, 0.45);
}

.st-body .sp-account-wrap {
  position: relative;
}

.st-body .sp-topbar-profile {
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  font: inherit;
  color: inherit;
}

.st-body .sp-topbar-profile:hover,
.st-body .sp-topbar-profile[aria-expanded="true"] {
  border-color: rgba(196, 168, 232, 0.35);
  background: rgba(22, 22, 28, 0.55);
}

.st-body .sp-account-caret {
  font-size: 0.7rem;
  color: var(--sp-muted);
  margin-left: 0.15rem;
}

.st-body .sp-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  background: rgba(16, 16, 20, 0.96);
  border: 1px solid rgba(196, 168, 232, 0.28);
  border-radius: 10px;
  padding: 0.35rem;
  z-index: 40;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.st-body .sp-account-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sp-text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  cursor: pointer;
}

.st-body .sp-account-menu-item:hover {
  background: rgba(196, 168, 232, 0.12);
  color: var(--sp-pink-soft);
}

.st-body .sp-account-menu-item.is-placeholder,
.st-body .sp-account-menu-item:disabled {
  opacity: 0.55;
  cursor: default;
}

.st-body .sp-account-menu-item.is-placeholder:hover {
  background: transparent;
  color: var(--sp-text);
}

.st-body .sp-otag-block {
  margin: 1rem 0 1.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(200, 200, 210, 0.12);
  font-family: var(--sp-font);
  color: var(--sp-text);
}

.st-body .sp-otag-block h3 {
  margin: 0 0 0.55rem;
  font-family: var(--sp-font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sp-text);
}

.st-body .sp-otag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.st-body .sp-otag {
  font-family: var(--sp-font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sp-pink-soft);
  background: rgba(196, 168, 232, 0.12);
  border: 1px solid rgba(196, 168, 232, 0.4);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
}

.st-body .sp-otag:hover {
  background: rgba(196, 168, 232, 0.22);
}

.st-body .sp-artag {
  color: #9ee7f5;
  background: rgba(103, 232, 249, 0.1);
  border-color: rgba(103, 232, 249, 0.4);
}

.st-body .sp-artag:hover {
  background: rgba(103, 232, 249, 0.2);
}

.st-body .sp-otag.is-inherited {
  opacity: 0.72;
  font-weight: 600;
  border-style: dashed;
}

.st-body .sp-otag-tree-row {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding-right: 0.35rem;
}

.st-body .sp-otag-tree-toggle {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.6rem;
  border: none;
  background: transparent;
  color: var(--sp-muted);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
}

.st-body .sp-otag-tree-row .sp-otag-ms-option {
  flex: 1;
  min-width: 0;
}

.st-body .sp-otag-add-sub {
  display: block;
  width: calc(100% - 0.5rem);
  text-align: left;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sp-muted);
  background: transparent;
  border: none;
  padding: 0.25rem 0.4rem 0.45rem;
  cursor: pointer;
}

.st-body .sp-otag-add-sub:hover {
  color: var(--sp-pink-soft);
}

.st-body .sp-otag-subtag-draft {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.25rem 0.5rem 0.55rem 0;
}

.st-body .sp-otag-subtag-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--sp-text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(200, 200, 210, 0.25);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
}

.st-body .sp-otag-editor,
.st-body .sp-otag-admin {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(200, 200, 210, 0.14);
  border-radius: 10px;
  background: rgba(12, 12, 16, 0.45);
  font-family: var(--sp-font);
  color: var(--sp-text);
}

.st-body .sp-otag-editor .sp-hint,
.st-body .sp-otag-admin .sp-hint {
  color: var(--sp-muted);
  font-family: var(--sp-font);
}

.st-body .sp-otag-ms {
  position: relative;
  margin: 0.45rem 0 0.75rem;
}

.st-body .sp-otag-ms-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.6rem;
  padding: 0.35rem 2rem 0.35rem 0.45rem;
  border: 1px solid rgba(200, 200, 210, 0.28);
  border-radius: 10px;
  background: rgba(12, 12, 14, 0.92);
  cursor: text;
}

.st-body .sp-otag-ms.is-open .sp-otag-ms-control {
  border-color: rgba(196, 168, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 168, 232, 0.12);
}

.st-body .sp-otag-ms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.st-body .sp-otag-ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--sp-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sp-pink-soft);
  background: rgba(196, 168, 232, 0.16);
  border: 1px solid rgba(196, 168, 232, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
}

.st-body .sp-otag-ms-search {
  flex: 1 1 7rem;
  min-width: 6rem;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--sp-font);
  font-size: 0.9rem;
  color: var(--sp-text);
}

.st-body .sp-otag-ms-search::placeholder {
  color: rgba(200, 200, 210, 0.45);
}

.st-body .sp-otag-ms-caret {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  color: var(--sp-muted);
  pointer-events: none;
}

.st-body .sp-otag-ms-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 8;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid rgba(200, 200, 210, 0.22);
  border-radius: 10px;
  background: rgba(16, 16, 22, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  padding: 0.3rem;
}

.st-body .sp-otag-ms-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--sp-font);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--sp-text);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

.st-body .sp-otag-ms-option:hover,
.st-body .sp-otag-ms-option.is-on {
  background: rgba(196, 168, 232, 0.14);
  color: var(--sp-pink-soft);
}

.st-body .sp-otag-ms-check {
  width: 1rem;
  color: var(--sp-pink-soft);
  font-weight: 700;
}

.st-body .sp-otag-ms-empty {
  padding: 0.65rem 0.7rem;
  color: var(--sp-muted);
  font-family: var(--sp-font);
  font-size: 0.88rem;
}

.st-body .sp-otag-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.st-body .sp-otag-save {
  font-family: var(--sp-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sp-text);
  background: rgba(196, 168, 232, 0.16);
  border: 1px solid rgba(196, 168, 232, 0.45);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.st-body .sp-otag-status {
  font-family: var(--sp-font);
  font-size: 0.82rem;
  color: var(--sp-muted);
}

.st-body .sp-otag-admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0.35rem;
}

.st-body .sp-otag-admin-row input {
  flex: 1 1 8rem;
  font-family: var(--sp-font);
  font-size: 0.88rem;
  color: var(--sp-text);
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid rgba(200, 200, 210, 0.25);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
}

.st-body .sp-otag-admin-row input::placeholder {
  color: rgba(200, 200, 210, 0.45);
}

.st-body .sp-collect-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.st-body .sp-detail-art-actions .sp-collect-bar {
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

.st-body .sp-detail-art-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
  width: 100%;
}

.st-body .sp-detail-art-row .sp-buy-btn,
.st-body .sp-detail-art-row .sp-limitless-btn,
.st-body .sp-detail-art-row .sp-fav-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  text-align: center;
  justify-content: center;
  font-size: 0.78rem;
  padding: 0.45rem 0.55rem;
  white-space: nowrap;
}

.st-body .sp-detail-art-actions .sp-collect-add select {
  width: 100%;
  max-width: none;
}

.st-body .sp-detail-after-oracle {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 168, 232, 0.18);
}

.st-body .sp-detail-after-oracle .sp-subtypes,
.st-body .sp-detail-after-oracle .sp-stat-grid {
  margin-top: 0.65rem;
}

.st-body .sp-fav-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sp-pink-soft);
  background: rgba(196, 168, 232, 0.1);
  border: 1px solid rgba(196, 168, 232, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  min-height: 2.5rem;
}

@media (min-width: 721px) {
  /* Larger card art in detail modal — desktop only; mobile stays stacked 1-col */
  .st-body .sp-modal {
    max-width: min(1040px, 96vw);
  }

  .st-body .sp-detail {
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: 1.6rem;
  }
}

@media (max-width: 720px) {
  .st-body .sp-fav-btn,
  .st-body .sp-buy-btn,
  .st-body .sp-limitless-btn,
  .st-body .sp-topbar-logout,
  .st-body a.sp-topbar-login {
    min-height: 2.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .st-body .sp-collect-add select {
    min-height: 2.75rem;
    font-size: 1rem;
  }

  .st-body .sp-detail-art-actions {
    gap: 0.65rem;
  }

  .st-body .sp-detail-sticky-actions {
    gap: 0.65rem;
  }

  .st-body .sp-collect-bar {
    width: 100%;
    margin: 0;
  }

  .st-body .sp-buy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    width: 100%;
  }
}

.st-body .sp-fav-btn.is-on {
  background: rgba(196, 168, 232, 0.22);
  border-color: rgba(196, 168, 232, 0.7);
}

.st-body .sp-collect-add select {
  font: inherit;
  font-size: 0.85rem;
  color: var(--sp-text);
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid rgba(200, 200, 210, 0.25);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  max-width: 14rem;
}

.st-body .sp-collect-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sp-pink-soft);
}

.st-body .sp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.st-body .sp-collections-head {
  margin-bottom: 1.25rem;
}

.st-body .sp-collections-title {
  font-size: 1.45rem;
  margin: 0.25rem 0 0.5rem;
}

.st-body .sp-collections-back a {
  color: var(--sp-pink-soft);
  font-weight: 700;
  text-decoration: none;
}

.st-body .sp-new-collection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.st-body .sp-collections-toolbar .sp-new-collection {
  margin-top: 0;
  flex: 1 1 16rem;
}

.st-body .sp-btn-primary {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2a2a32, var(--st-red));
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.st-body .sp-btn-primary:hover {
  filter: brightness(1.08);
}

.st-body .sp-new-collection button {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2a2a32, var(--st-red));
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.st-body .sp-new-collection input {
  flex: 1 1 12rem;
  font: inherit;
  color: var(--sp-text);
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid rgba(200, 200, 210, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
}

.st-body .sp-collection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.st-body .sp-collection-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(200, 200, 210, 0.14);
  border-radius: 10px;
  text-decoration: none;
  color: var(--sp-text);
  background: rgba(16, 16, 20, 0.45);
}

.st-body .sp-collection-row:hover {
  border-color: rgba(196, 168, 232, 0.45);
}

.st-body .sp-collection-name {
  font-weight: 700;
}

.st-body .sp-collection-count {
  color: var(--sp-muted);
  font-size: 0.9rem;
}

.st-body .sp-collection-badge {
  color: var(--sp-pink-soft);
}

.st-body .sp-collections-grid {
  align-items: start;
  gap: 0.65rem;
}

.st-body .sp-collection-card {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.st-body .sp-collection-card:hover,
.st-body .sp-collection-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  outline: 2px solid rgba(196, 168, 232, 0.55);
  outline-offset: 2px;
}

.st-body .sp-collection-card .sp-card-img {
  display: block;
  width: 100%;
  height: auto;
}

.st-body .sp-collection-list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
}

.st-body .sp-collection-control {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 9rem;
}

.st-body .sp-collection-control select,
.st-body .sp-collection-list-controls .sp-collection-search-input {
  font: inherit;
  font-size: 0.9rem;
  color: var(--sp-text);
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid rgba(200, 200, 210, 0.28);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.st-body .sp-collection-list-controls .sp-collection-search {
  flex: 1 1 14rem;
  margin: 0;
}

.st-body .sp-collection-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.st-body .sp-collection-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.st-body .sp-collection-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sp-text);
  background: rgba(196, 168, 232, 0.15);
  border: 1px solid rgba(196, 168, 232, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  text-decoration: none;
}

.st-body a.sp-collection-tag:hover {
  border-color: rgba(196, 168, 232, 0.65);
  color: #fff;
}

.st-body .sp-collection-tag-removable {
  font: inherit;
  cursor: pointer;
}

.st-body .sp-collection-tag-removable:hover {
  border-color: rgba(255, 182, 193, 0.55);
  color: var(--sp-pink-soft);
}

.st-body .sp-collection-tags-panel {
  margin-top: 0.85rem;
}

.st-body .sp-collection-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}

.st-body .sp-collection-tag-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.st-body .sp-collection-tag-form input {
  flex: 1 1 10rem;
  min-width: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--sp-text);
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid rgba(200, 200, 210, 0.28);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.st-body .sp-card-tags-panel {
  margin: 0.75rem 0 1rem;
}

.st-body .sp-card-tags-panel .sp-hint {
  margin: 0.2rem 0 0.5rem;
}

.st-body .sp-collection-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}

.st-body .sp-collection-search-input {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--sp-text);
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid rgba(200, 200, 210, 0.28);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.st-body .sp-collection-search-input:focus {
  outline: none;
  border-color: rgba(196, 168, 232, 0.65);
  box-shadow: 0 0 0 2px rgba(196, 168, 232, 0.2);
}

.st-body .sp-collection-search-count {
  font-size: 0.82rem;
  color: var(--sp-muted);
  white-space: nowrap;
}

.st-body .sp-collection-remove-modal {
  align-self: center;
}

.st-body .sp-collection-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.st-body .sp-collection-item .sp-card {
  width: 100%;
}

.st-body .sp-collection-caption {
  padding: 0 0.15rem;
}

.st-body .sp-collection-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-body .sp-collection-card-set {
  font-size: 0.72rem;
  color: var(--sp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-body .sp-collection-remove {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sp-muted);
  background: transparent;
  border: 1px solid rgba(200, 200, 210, 0.2);
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  align-self: flex-start;
}

.st-body .sp-collection-remove:hover {
  color: var(--sp-pink-soft);
  border-color: rgba(196, 168, 232, 0.4);
}

.st-body .sp-collections-actions {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.st-body .sp-add-cards-btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sp-ink);
  background: linear-gradient(135deg, rgba(196, 168, 232, 0.35), rgba(255, 182, 193, 0.25));
  border: 1px solid rgba(196, 168, 232, 0.45);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
}

.st-body .sp-add-cards-btn:hover {
  border-color: rgba(196, 168, 232, 0.75);
  color: #fff;
}

.st-body .sp-add-collection-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(20, 16, 40, 0.72);
  border: 1px solid rgba(196, 168, 232, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.st-body .sp-add-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.st-body .sp-add-banner-back {
  font-weight: 700;
  color: var(--sp-pink-soft);
  text-decoration: none;
}

.st-body .sp-add-banner-back:hover {
  text-decoration: underline;
}

.st-body .sp-add-banner-mode {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--sp-ink);
}

.st-body .sp-add-banner-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--sp-muted);
}

.st-body .sp-add-banner-hint {
  margin: 0.45rem 0 0;
}

.st-body .sp-card.is-collected {
  position: relative;
  outline: 2px solid rgba(144, 238, 144, 0.75);
  outline-offset: 2px;
}

.st-body .sp-card.is-collected::after {
  content: "✓";
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #0d1a0d;
  background: rgba(144, 238, 144, 0.95);
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.st-body .sp-card.is-adding {
  opacity: 0.55;
  pointer-events: none;
}

.st-body .sp-add-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(30, 24, 55, 0.92);
  border: 1px solid rgba(196, 168, 232, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.st-body .sp-add-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.st-body .sp-collections-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.st-body .sp-import-menu {
  position: relative;
  flex: 0 0 auto;
}

.st-body .sp-import-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.st-body .sp-import-caret {
  font-size: 0.72em;
  opacity: 0.85;
}

.st-body .sp-import-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 40;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(16, 14, 28, 0.98);
  border: 1px solid rgba(196, 168, 232, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.st-body .sp-import-dropdown[hidden] {
  display: none;
}

.st-body .sp-import-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sp-text);
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.st-body .sp-import-dropdown button:hover:not(:disabled) {
  background: rgba(196, 168, 232, 0.15);
  color: #fff;
}

.st-body .sp-import-dropdown button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.st-body .sp-import-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid rgba(196, 168, 232, 0.35);
  border-radius: 14px;
  background: rgba(16, 14, 28, 0.98);
  color: var(--sp-text);
}

.st-body .sp-import-dialog::backdrop {
  background: rgba(4, 4, 10, 0.72);
}

.st-body .sp-import-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.1rem;
}

.st-body .sp-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.st-body .sp-import-title {
  margin: 0;
  font-size: 1.15rem;
}

.st-body .sp-import-close {
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--sp-pink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.st-body .sp-import-file input[type="file"] {
  width: 100%;
  font: inherit;
  color: var(--sp-text);
}

.st-body .sp-import-preview {
  max-height: 14rem;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(8, 8, 14, 0.75);
  border: 1px solid rgba(200, 200, 210, 0.18);
  font-size: 0.88rem;
}

.st-body .sp-import-stats {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.st-body .sp-import-unmatched {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: rgba(240, 244, 255, 0.78);
}

.st-body .sp-import-target select,
.st-body .sp-import-target input {
  width: 100%;
  font: inherit;
  color: var(--sp-text);
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid rgba(200, 200, 210, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
}

.st-body .sp-import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.st-body .sp-import-cancel,
.st-body .sp-import-submit {
  font: inherit;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.st-body .sp-import-cancel {
  color: var(--sp-text);
  background: transparent;
  border: 1px solid rgba(200, 200, 210, 0.25);
}

.st-body .sp-import-submit {
  color: #fff;
  background: linear-gradient(135deg, #2a2a32, var(--st-red));
  border: 0;
}

.st-body .sp-import-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.st-body .sp-collection-share-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(196, 168, 232, 0.08);
  border: 1px solid rgba(196, 168, 232, 0.2);
}

.st-body .sp-share-status {
  font-size: 0.85rem;
  color: var(--sp-muted);
}

.st-body .sp-collection-visibility-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.st-body .sp-collection-visibility-badge.is-public {
  color: #1b4332;
  background: rgba(149, 213, 178, 0.35);
  border: 1px solid rgba(149, 213, 178, 0.55);
}

.st-body .sp-collection-visibility-badge.is-unlisted {
  color: #4a3728;
  background: rgba(255, 214, 153, 0.35);
  border: 1px solid rgba(255, 214, 153, 0.55);
}

.st-body .sp-collection-group {
  margin: 1.25rem 0 1.75rem;
}

.st-body .sp-collection-group-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sp-text);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.st-body .sp-collection-group-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sp-muted);
}

.st-body .sp-collection-section {
  margin-bottom: 1.5rem;
}

.st-body .sp-collection-section-empty {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

.st-body .sp-collection-considering {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(196, 168, 232, 0.35);
}

.st-body .sp-collection-considering-hint {
  margin: -0.35rem 0 0.85rem;
}

.st-body .sp-detail-sticky-actions .sp-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.st-body .sp-collection-bucket-modal {
  white-space: nowrap;
}

.st-body .sp-collection-body {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
}

.st-body .sp-collection-preview {
  position: sticky;
  top: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(196, 168, 232, 0.22);
}

.st-body .sp-collection-preview-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sp-muted);
  text-align: center;
  padding: 2rem 0.5rem;
}

.st-body .sp-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.65rem;
}

.st-body .sp-preview-name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.st-body .sp-preview-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sp-muted);
}

.st-body .sp-collection-main {
  min-width: 0;
}

.st-body .sp-collection-stack-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.st-body .sp-collection-stack-column {
  min-width: 0;
}

.st-body .sp-collection-stack-column .sp-collection-group-title {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 0 0.45rem;
  padding: 0.35rem 0 0.5rem;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.98) 70%, rgba(12, 12, 16, 0));
}

.st-body .sp-collection-stack {
  --stack-bar-h: 26px;
  --stack-overlap: 22px;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.35rem;
}

.st-body .sp-collection-stack-solo {
  max-width: 13rem;
}

.st-body .sp-collection-stack-card {
  position: relative;
  margin-top: calc(-1 * var(--stack-overlap));
  border-radius: 6px;
  cursor: pointer;
  transition: margin 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.st-body .sp-collection-stack-card:first-child {
  margin-top: 0;
}

.st-body .sp-collection-stack-card:hover,
.st-body .sp-collection-stack-card:focus-visible {
  margin-top: 0;
  z-index: 30;
  transform: scale(1.015);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.st-body .sp-stack-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--stack-bar-h);
  padding: 0.2rem 0.45rem 0.2rem 0.3rem;
  border-radius: 6px;
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(196, 168, 232, 0.22);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.st-body .sp-collection-stack-card.is-pokemon .sp-stack-bar {
  border-left: 3px solid #f5c518;
}

.st-body .sp-collection-stack-card.is-trainer .sp-stack-bar {
  border-left: 3px solid #8b7fd4;
}

.st-body .sp-collection-stack-card.is-energy .sp-stack-bar {
  border-left: 3px solid #4ade80;
}

.st-body .sp-stack-art {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background-size: cover;
  background-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.st-body .sp-stack-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-body .sp-stack-meta {
  flex-shrink: 0;
  color: var(--sp-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.st-body .sp-stack-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.18s ease, opacity 0.12s ease;
}

.st-body .sp-collection-stack-card:hover .sp-stack-body,
.st-body .sp-collection-stack-card:focus-visible .sp-stack-body {
  max-height: 420px;
  opacity: 1;
}

.st-body .sp-collection-stack-card .sp-stack-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.2rem;
  border-radius: 6px;
  border: 1px solid rgba(196, 168, 232, 0.25);
}

.st-body .sp-collection-stack-card:hover,
.st-body .sp-collection-stack-card:focus-visible {
  outline: none;
}

.st-body .sp-collection-stack-card:focus-visible .sp-stack-bar {
  outline: 2px solid rgba(196, 168, 232, 0.55);
  outline-offset: 1px;
}

@media (max-width: 900px) {
  .st-body .sp-collection-body {
    grid-template-columns: 1fr;
  }

  .st-body .sp-collection-preview {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }

  .st-body .sp-collection-stack-columns {
    justify-content: center;
  }
}
