.sponi-graffiti-page {
  width: min(1500px, calc(100% - 32px));
  margin: 28px auto 80px;
  color: #edf2ff;
}

.sponi-graffiti-page[hidden] { display: none !important; }

.graffiti-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(145, 168, 221, .25);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(31, 38, 64, .96), rgba(21, 30, 49, .9));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

.graffiti-kicker { color: #77a7ff; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.graffiti-hero h1 { margin: 7px 0 8px; font-size: clamp(1.8rem, 4vw, 3rem); }
.graffiti-hero p { margin: 0; color: #b7c1d9; }
.graffiti-hero code, .graffiti-bind code { color: #dce8ff; }

.graffiti-bind {
  display: grid;
  gap: 8px;
  min-width: 270px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(7, 12, 25, .48);
}
.graffiti-bind span { color: #8ea0c4; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.graffiti-toolbar {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin: 24px 0 14px;
}
.graffiti-toolbar label { display: grid; gap: 7px; width: min(620px, 100%); color: #abb7d0; }
.graffiti-toolbar input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1px solid rgba(145, 168, 221, .28); color: white;
  background: rgba(14, 20, 35, .88); font: inherit;
}
.graffiti-selection-label { padding: 12px 16px; color: #bcd2ff; }
.graffiti-message { min-height: 26px; margin-bottom: 12px; color: #aebbd4; }
.graffiti-message.success { color: #6be7a7; }
.graffiti-message.error { color: #ff858f; }

.graffiti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.graffiti-card {
  display: grid; gap: 7px; min-width: 0; padding: 13px; text-align: left;
  border: 1px solid rgba(145, 168, 221, .18); border-radius: 15px;
  color: #f0f4ff; background: rgba(23, 31, 51, .9); cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.graffiti-card:hover { transform: translateY(-2px); border-color: #6e9cff; background: rgba(31, 42, 68, .96); }
.graffiti-card.selected { border-color: #65dda0; box-shadow: 0 0 0 2px rgba(101, 221, 160, .15); }
.graffiti-card-image {
  display: grid; place-items: center; aspect-ratio: 1; padding: 9px;
  border-radius: 11px; background: radial-gradient(circle, #34405c, #171e31 72%);
}
.graffiti-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.graffiti-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.graffiti-card span, .graffiti-card em { font-size: .78rem; font-style: normal; }
.graffiti-card em { color: #89a9e9; }
.graffiti-card.selected em { color: #65dda0; font-weight: 700; }
.graffiti-empty { grid-column: 1 / -1; padding: 60px; text-align: center; color: #9ba8c2; }

.graffiti-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.graffiti-pagination button {
  padding: 10px 16px; border: 1px solid rgba(145, 168, 221, .28);
  border-radius: 10px; background: #202a45; color: white; cursor: pointer;
}
.graffiti-pagination button:disabled { opacity: .4; cursor: default; }

@media (max-width: 720px) {
  .graffiti-hero, .graffiti-toolbar { align-items: stretch; flex-direction: column; }
  .graffiti-bind { min-width: 0; }
  .graffiti-selection-label { padding-left: 0; }
  .graffiti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* SPONI-GRAFFITI-LAYER-FIX */
.sponi-graffiti-page {
  position: relative !important;
  z-index: 2 !important;
  isolation: isolate;
  opacity: 1 !important;
  visibility: visible !important;
}
