/* =========================================================
   Shared site styles used by multiple pages
   ========================================================= */

html {
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #e4e4e4 0%, #aa83af 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #222;
}

a {
  color: inherit;
}

.page-shell {
  margin: 0 auto;
  padding: 28px;
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 2rem;
}

.page-intro {
  margin: 0 0 24px 0;
  color: #5f6368;
}

.number-badge {
  display: inline-block;
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  forced-color-adjust: none;
  color-scheme: light;
}

.badge-magnetic {
  background: #ffe95c;
  color: #222;
}

.badge-holographic {
  background: #f6a3d7;
  color: #222;
}

.badge-thermal {
  background: #f4a340;
  color: #222;
}

.badge-flakie {
  background: #ef4444;
  color: white;
}

.badge-crackle {
  background: #2563eb;
  color: white;
}

.badge-reflective-glitter {
  background: #16a34a;
  color: white;
}

.badge-other {
  background: #111827;
  color: white;
}

.badge-topper {
  background: linear-gradient(135deg,
      #ff6ec4,
      #7873f5,
      #4ade80,
      #38bdf8,
      #facc15,
      #fb7185);
  background-size: 300% 300%;
  color: #111;
  font-weight: 800;
  animation: holoShift 6s ease infinite;
}

@keyframes holoShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.number-badge-wrap {
  position: relative;
  display: inline-block;
}

.badge-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
  pointer-events: none;
  forced-color-adjust: none;
  color-scheme: light;
}

.tooltip-magnetic {
  background: #ffe95c;
  color: #222;
}

.tooltip-holographic {
  background: #f6a3d7;
  color: #222;
}

.tooltip-thermal {
  background: #f4a340;
  color: #222;
}

.tooltip-flakie {
  background: #ef4444;
  color: white;
}

.tooltip-crackle {
  background: #2563eb;
  color: white;
}

.tooltip-reflective-glitter {
  background: #16a34a;
  color: white;
}

.tooltip-topper {
  background: linear-gradient(135deg,
      #ff6ec4,
      #7873f5,
      #4ade80,
      #38bdf8,
      #facc15,
      #fb7185);
  color: #111;
}

.tooltip-other {
  background: #111827;
  color: white;
}

.badge-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}

.number-badge-wrap:hover .badge-tooltip {
  opacity: 1;
  visibility: visible;
}

.background-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  opacity: 0;
  transform: scale(0.7) rotate(0deg);
  animation: twinkleSoft ease-in-out infinite;
  filter: blur(0.15px);
}

.sparkle::before {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
  opacity: 0.95;
  box-shadow:
    0 0 4px currentColor,
    0 0 10px color-mix(in srgb, currentColor 65%, white 35%),
    0 0 18px color-mix(in srgb, currentColor 30%, white 70%);
}

.sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.tiny {
  width: 8px;
  height: 8px;
}

.small {
  width: 12px;
  height: 12px;
}

.white {
  color: rgba(255, 255, 255, 0.98);
}

.gold {
  color: rgba(255, 211, 140, 0.95);
}

.peach {
  color: rgba(255, 186, 165, 0.92);
}

.coral {
  color: rgba(255, 157, 137, 0.9);
}

.violet {
  color: rgba(190, 172, 255, 0.9);
}

.top-glow {
  filter: blur(0.1px) brightness(1.15);
}

.top-glow::before {
  box-shadow:
    0 0 6px currentColor,
    0 0 14px color-mix(in srgb, currentColor 55%, white 45%),
    0 0 28px color-mix(in srgb, currentColor 20%, white 80%);
}

.six-point {
  background:
    linear-gradient(to bottom,
      transparent 0%,
      color-mix(in srgb, currentColor 35%, transparent) 20%,
      currentColor 50%,
      color-mix(in srgb, currentColor 35%, transparent) 80%,
      transparent 100%) center / 1.5px 100% no-repeat,
    linear-gradient(60deg,
      transparent 0%,
      color-mix(in srgb, currentColor 35%, transparent) 42%,
      currentColor 50%,
      color-mix(in srgb, currentColor 35%, transparent) 58%,
      transparent 100%) center / 100% 1.5px no-repeat,
    linear-gradient(-60deg,
      transparent 0%,
      color-mix(in srgb, currentColor 35%, transparent) 42%,
      currentColor 50%,
      color-mix(in srgb, currentColor 35%, transparent) 58%,
      transparent 100%) center / 100% 1.5px no-repeat;
}

.eight-point {
  background:
    linear-gradient(to bottom,
      transparent 0%,
      color-mix(in srgb, currentColor 35%, transparent) 20%,
      currentColor 50%,
      color-mix(in srgb, currentColor 35%, transparent) 80%,
      transparent 100%) center / 1.5px 100% no-repeat,
    linear-gradient(to right,
      transparent 0%,
      color-mix(in srgb, currentColor 35%, transparent) 20%,
      currentColor 50%,
      color-mix(in srgb, currentColor 35%, transparent) 80%,
      transparent 100%) center / 100% 1.5px no-repeat,
    linear-gradient(45deg,
      transparent 0%,
      color-mix(in srgb, currentColor 35%, transparent) 42%,
      currentColor 50%,
      color-mix(in srgb, currentColor 35%, transparent) 58%,
      transparent 100%) center / 100% 1.5px no-repeat,
    linear-gradient(-45deg,
      transparent 0%,
      color-mix(in srgb, currentColor 35%, transparent) 42%,
      currentColor 50%,
      color-mix(in srgb, currentColor 35%, transparent) 58%,
      transparent 100%) center / 100% 1.5px no-repeat;
}

@keyframes twinkleSoft {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.72) rotate(0deg);
  }

  10% {
    opacity: 0;
    transform: scale(0.72) rotate(0deg);
  }

  18% {
    opacity: 0.35;
    transform: scale(0.92) rotate(6deg);
  }

  24% {
    opacity: 0.95;
    transform: scale(1.12) rotate(-4deg);
  }

  30% {
    opacity: 0.55;
    transform: scale(0.94) rotate(3deg);
  }

  38% {
    opacity: 0.78;
    transform: scale(1.04) rotate(-2deg);
  }

  48% {
    opacity: 0;
    transform: scale(0.78) rotate(0deg);
  }
}

.s1 {
  top: 4%;
  left: 8%;
  animation-duration: 5.8s;
  animation-delay: 0.3s;
}

.s2 {
  top: 6%;
  left: 24%;
  animation-duration: 6.4s;
  animation-delay: 1.1s;
}

.s3 {
  top: 7%;
  left: 38%;
  animation-duration: 5.7s;
  animation-delay: 2.4s;
}

.s4 {
  top: 8%;
  left: 52%;
  animation-duration: 7.1s;
  animation-delay: 0.8s;
}

.s5 {
  top: 9%;
  left: 67%;
  animation-duration: 6.0s;
  animation-delay: 1.7s;
}

.s6 {
  top: 10%;
  left: 80%;
  animation-duration: 6.8s;
  animation-delay: 2.1s;
}

.s7 {
  top: 12%;
  left: 14%;
  animation-duration: 5.9s;
  animation-delay: 0.6s;
}

.s8 {
  top: 13%;
  left: 30%;
  animation-duration: 7.3s;
  animation-delay: 1.9s;
}

.s9 {
  top: 14%;
  left: 46%;
  animation-duration: 6.2s;
  animation-delay: 2.8s;
}

.s10 {
  top: 15%;
  left: 61%;
  animation-duration: 5.6s;
  animation-delay: 1.0s;
}

.s11 {
  top: 16%;
  left: 74%;
  animation-duration: 6.9s;
  animation-delay: 2.5s;
}

.s12 {
  top: 18%;
  left: 88%;
  animation-duration: 6.1s;
  animation-delay: 0.4s;
}

.s13 {
  top: 24%;
  left: 10%;
  animation-duration: 6.5s;
  animation-delay: 1.5s;
}

.s14 {
  top: 26%;
  left: 22%;
  animation-duration: 7.4s;
  animation-delay: 2.2s;
}

.s15 {
  top: 28%;
  left: 34%;
  animation-duration: 5.8s;
  animation-delay: 0.9s;
}

.s16 {
  top: 30%;
  left: 48%;
  animation-duration: 6.7s;
  animation-delay: 1.8s;
}

.s17 {
  top: 32%;
  left: 62%;
  animation-duration: 7.0s;
  animation-delay: 2.9s;
}

.s18 {
  top: 34%;
  left: 78%;
  animation-duration: 5.9s;
  animation-delay: 0.5s;
}

.s19 {
  top: 37%;
  left: 16%;
  animation-duration: 6.3s;
  animation-delay: 1.3s;
}

.s20 {
  top: 40%;
  left: 28%;
  animation-duration: 7.2s;
  animation-delay: 2.0s;
}

.s21 {
  top: 42%;
  left: 42%;
  animation-duration: 5.7s;
  animation-delay: 0.7s;
}

.s22 {
  top: 44%;
  left: 58%;
  animation-duration: 6.8s;
  animation-delay: 2.6s;
}

.s23 {
  top: 46%;
  left: 72%;
  animation-duration: 6.1s;
  animation-delay: 1.6s;
}

.s24 {
  top: 48%;
  left: 86%;
  animation-duration: 7.5s;
  animation-delay: 0.2s;
}

.s25 {
  top: 52%;
  left: 8%;
  animation-duration: 5.6s;
  animation-delay: 2.3s;
}

.s26 {
  top: 54%;
  left: 24%;
  animation-duration: 6.9s;
  animation-delay: 1.1s;
}

.s27 {
  top: 60%;
  left: 38%;
  animation-duration: 7.3s;
  animation-delay: 2.7s;
}

.s28 {
  top: 62%;
  left: 52%;
  animation-duration: 5.8s;
  animation-delay: 0.8s;
}

.s29 {
  top: 64%;
  left: 66%;
  animation-duration: 6.4s;
  animation-delay: 1.9s;
}

.s30 {
  top: 68%;
  left: 82%;
  animation-duration: 7.1s;
  animation-delay: 2.1s;
}

.s31 {
  top: 72%;
  left: 14%;
  animation-duration: 6.0s;
  animation-delay: 0.6s;
}

.s32 {
  top: 74%;
  left: 30%;
  animation-duration: 6.6s;
  animation-delay: 1.4s;
}

.s33 {
  top: 78%;
  left: 46%;
  animation-duration: 5.7s;
  animation-delay: 2.8s;
}

.s34 {
  top: 82%;
  left: 60%;
  animation-duration: 6.8s;
  animation-delay: 0.9s;
}

.s35 {
  top: 85%;
  left: 76%;
  animation-duration: 7.2s;
  animation-delay: 2.4s;
}

.s36 {
  top: 88%;
  left: 20%;
  animation-duration: 5.9s;
  animation-delay: 1.2s;
}

.s37 {
  top: 91%;
  left: 54%;
  animation-duration: 6.5s;
  animation-delay: 2.6s;
}

/* =========================================================
   Shared polish detail modal / image viewer styles
   ========================================================= */

.polish-detail-row[hidden],
.polish-description-block[hidden],
.polish-gallery-nav[hidden],
.polish-image-hint[hidden],
.polish-modal-actions[hidden] {
  display: none !important;
}

.polish-image-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.polish-main-image-shell {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polish-main-image-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  display: block;
}

.polish-main-image-button:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 4px;
  border-radius: 16px;
}

.polish-gallery-image {
  width: 100%;
  max-width: 360px;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #f9fafb;
  display: block;
}

.polish-gallery-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.polish-gallery-arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  color: #111827;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.polish-gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.polish-gallery-arrow.prev {
  left: 10px;
}

.polish-gallery-arrow.next {
  right: 10px;
}

.polish-image-hint {
  font-size: 0.82rem;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.78);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.polish-description-block {
  margin-top: 8px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.polish-description-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #374151;
}

.polish-description-text {
  margin: 0;
  line-height: 1.6;
  color: #4b5563;
}

.image-viewer[hidden] {
  display: none !important;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 10001;
}

.image-viewer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(3px);
}

.image-viewer-content {
  position: relative;
  z-index: 1;
  width: min(94vw, 1100px);
  height: min(90vh, 900px);
  margin: 5vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.image-viewer-frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

.image-viewer-image {
  display: block;
  max-width: min(88vw, 1000px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.image-viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(243, 244, 246, 0.72);
  backdrop-filter: blur(6px);
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.image-viewer-close:hover {
  background: rgba(229, 231, 235, 0.9);
  transform: scale(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .polish-gallery-arrow.prev {
    left: 6px;
  }

  .polish-gallery-arrow.next {
    right: 6px;
  }

  .polish-gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .image-viewer-close {
    top: 10px;
    right: 10px;
  }
}

[hidden] {
  display: none !important;
}

.polish-image-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.polish-main-image-shell {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polish-main-image-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 100%;
  display: block;
}

.polish-main-image-button:focus-visible,
.polish-entry-arrow:focus-visible,
.polish-gallery-arrow:focus-visible,
.image-viewer-arrow:focus-visible,
.image-viewer-close:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px;
}

.dupe-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: white;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.dupe-entry-button:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.dupe-entry-button[hidden] {
  display: none !important;
}

.dupes-groups-section[hidden],
.dupes-groups-empty[hidden],
.dupes-selected-actions[hidden] {
  display: none !important;
}

.dupes-selected-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.dupes-groups-section {
  margin-top: 6px;
}

.dupes-groups-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.dupes-groups-title {
  margin: 0;
  font-size: 1.3rem;
  color: #2f243c;
}

.dupes-groups-helper,
.dupes-groups-empty {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.dupes-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.dupes-group-card {
  appearance: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 188px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background-color: #aa83af !important;
  background-image: linear-gradient(135deg, #cdb4db, #aa83af) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 20px;
  cursor: pointer;
  box-shadow:
    0 18px 38px rgba(58, 37, 65, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    filter 0.16s ease;
}


.dupes-group-card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dupes-group-card-bg[hidden] {
  display: none !important;
}

.dupes-group-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(1.5px) saturate(1.12);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.12);
}

.dupes-group-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(18, 11, 24, 0.10), rgba(18, 11, 24, 0.42));
  pointer-events: none;
}

.dupes-group-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.95);
  filter: saturate(1.06) brightness(1.03);
  box-shadow:
    0 22px 46px rgba(58, 37, 65, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.44) inset,
    0 0 26px rgba(255, 255, 255, 0.18);
}

.dupes-group-card-name {
  margin: 0 0 14px 0;
  color: #fff7ff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.34),
    0 2px 7px rgba(24, 12, 31, 0.78),
    0 6px 18px rgba(24, 12, 31, 0.42);
}

.dupes-group-card-meta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.62);
  color: #2f243c;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.84rem;
  font-weight: 800;
}

.polish-gallery-image {
  width: 100%;
  max-width: 360px;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #f9fafb;
  display: block;
}

.polish-gallery-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.polish-gallery-arrow,
.polish-entry-arrow,
.image-viewer-arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  color: #111827;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.polish-gallery-arrow:hover,
.polish-entry-arrow:hover,
.image-viewer-arrow:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.polish-gallery-arrow.prev,
.polish-entry-arrow.prev,
.image-viewer-arrow.prev {
  left: 10px;
}

.polish-gallery-arrow.next,
.polish-entry-arrow.next,
.image-viewer-arrow.next {
  right: 10px;
}

.polish-gallery-arrow:hover,
.image-viewer-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.polish-entry-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.polish-entry-arrow {
  z-index: 2;
}

.polish-image-hint {
  font-size: 0.82rem;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.78);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.polish-description-block {
  margin-top: 8px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.polish-description-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #374151;
}

.polish-description-text {
  margin: 0;
  line-height: 1.6;
  color: #4b5563;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 10001;
}

.image-viewer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(3px);
}

.image-viewer-content {
  position: relative;
  z-index: 1;
  width: min(94vw, 1100px);
  height: min(90vh, 900px);
  margin: 5vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.image-viewer-frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

.image-viewer-image {
  display: block;
  max-width: min(88vw, 1000px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  background: #fff;
  cursor: pointer;
}

.image-viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(243, 244, 246, 0.72);
  backdrop-filter: blur(6px);
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.image-viewer-close:hover {
  background: rgba(229, 231, 235, 0.9);
  transform: scale(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

@media (max-width: 700px) {

  .polish-gallery-arrow,
  .polish-entry-arrow,
  .image-viewer-arrow,
  .image-viewer-close {
    width: 38px;
    height: 38px;
  }

  .polish-gallery-arrow.prev,
  .polish-entry-arrow.prev,
  .image-viewer-arrow.prev {
    left: 6px;
  }

  .polish-gallery-arrow.next,
  .polish-entry-arrow.next,
  .image-viewer-arrow.next {
    right: 6px;
  }

  .image-viewer-close {
    top: 10px;
    right: 10px;
  }
}

/* =========================================================
   Shared page background sparkle upgrade
   ========================================================= */

.medium {
  width: 18px;
  height: 18px;
}

.background-sparkles {
  filter: saturate(1.28) brightness(1.1);
}

.background-sparkles .sparkle {
  opacity: 0.48;
  filter: blur(0.03px) saturate(1.35) brightness(1.18);
  transform: scale(2.1);
  animation-duration: 8.2s !important;
}

.background-sparkles .sparkle::before {
  opacity: 1;
  box-shadow:
    0 0 14px currentColor,
    0 0 28px color-mix(in srgb, currentColor 72%, white 28%),
    0 0 48px color-mix(in srgb, currentColor 48%, white 52%);
}

.s38 {
  top: 93%;
  left: 8%;
  animation-duration: 6.6s;
  animation-delay: 0.4s;
}

.s39 {
  top: 95%;
  left: 22%;
  animation-duration: 7.0s;
  animation-delay: 1.7s;
}

.s40 {
  top: 90%;
  left: 36%;
  animation-duration: 6.2s;
  animation-delay: 2.4s;
}

.s41 {
  top: 92%;
  left: 48%;
  animation-duration: 7.4s;
  animation-delay: 0.9s;
}

.s42 {
  top: 94%;
  left: 61%;
  animation-duration: 6.0s;
  animation-delay: 2.1s;
}

.s43 {
  top: 89%;
  left: 73%;
  animation-duration: 6.8s;
  animation-delay: 1.3s;
}

.s44 {
  top: 96%;
  left: 84%;
  animation-duration: 7.3s;
  animation-delay: 2.6s;
}

.s45 {
  top: 87%;
  left: 92%;
  animation-duration: 6.4s;
  animation-delay: 0.6s;
}

.s46 {
  top: 98%;
  left: 55%;
  animation-duration: 7.1s;
  animation-delay: 1.9s;
}

/* =========================================================
   Mobile-only modal fit adjustments
   Keeps desktop and the rest of mobile styling unchanged.
   ========================================================= */
@media (max-width: 720px) {
  .polish-main-image-shell {
    max-width: 100%;
    padding-inline: 44px;
    box-sizing: border-box;
  }

  .polish-gallery-image {
    max-width: min(100%, 300px);
    max-height: 34dvh;
  }

  .polish-description-block {
    padding: 12px 14px;
  }

  .image-viewer-content {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 16px;
  }

  .image-viewer-image {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 64px);
  }
}


/* =========================================================
   Shared page menu and shared polish modal/gallery pieces
   ========================================================= */

.pages-dropdown {
  position: relative;
  align-self: flex-start;
  margin-bottom: 6px;
}

.pages-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe, #eff6ff);
  color: #374151;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid #d8dee9;
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.06),
    0 4px 10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.pages-dropdown-toggle:hover {
  background: linear-gradient(135deg, #fce7f3, #e9d5ff, #dbeafe);
  color: #111827;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.12),
    0 6px 14px rgba(0, 0, 0, 0.1);
}

.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.hamburger-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.pages-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  min-width: 0;
  white-space: nowrap;
  padding: 8px;
  margin: 0;
  list-style: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 30;
}

.pages-dropdown:hover .pages-dropdown-menu,
.pages-dropdown:focus-within .pages-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pages-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #374151;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.16s ease, color 0.16s ease;
}

.pages-dropdown-menu a:hover {
  background: #f5f3ff;
  color: #111827;
}

.lucky-sparkle {
  display: inline-block;
  transform-origin: center;
  animation: luckySparkleTwinkle 2.2s ease-in-out infinite;
}

@keyframes luckySparkleTwinkle {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }

  25% {
    transform: scale(1.08) rotate(-6deg);
    opacity: 1;
  }

  50% {
    transform: scale(0.98) rotate(4deg);
    opacity: 0.92;
  }

  75% {
    transform: scale(1.06) rotate(-3deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }
}

.modal-card-sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.modal-card-sparkles .sparkle {
  opacity: 0.9;
  transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

.polish-entry-nav {
  z-index: 2;
}

.image-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.96),
    0 0 20px rgba(255, 255, 255, 0.72),
    0 0 40px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.polish-gallery-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.polish-gallery-arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(141, 106, 149, 0.9);
  border: 1px solid rgba(234, 212, 240, 0.96);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.polish-gallery-arrow.prev {
  left: 0;
}

.polish-gallery-arrow.next {
  right: 0;
}

.polish-entry-arrow {
  background: rgba(141, 106, 149, 0.9);
  border: 1px solid rgba(234, 212, 240, 0.96);
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dupes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dupes-grid.centered {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dupe-card img {
  width: 100%;
  border-radius: 8px;
}

.carousel-arrow {
  background: white;
  border: 1px solid #ccc;
  padding: 8px 12px;
  cursor: pointer;
}

.dupes-selected-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 18px;
}

/* =========================================================
   Luxe frosted-glass refresh
   ========================================================= */
:root {
  --luxe-purple: #aa83af;
  --luxe-purple-deep: #7f5b89;
  --luxe-purple-ink: #3a2150;
  --luxe-lavender: #eadcf1;
  --luxe-glass: rgba(255, 255, 255, 0.46);
  --luxe-glass-strong: rgba(255, 255, 255, 0.62);
  --luxe-glass-border: rgba(255, 255, 255, 0.58);
  --luxe-shadow: 0 22px 60px rgba(74, 44, 86, 0.18), 0 8px 24px rgba(74, 44, 86, 0.10);
  --luxe-soft-shadow: 0 12px 30px rgba(74, 44, 86, 0.13), 0 4px 14px rgba(74, 44, 86, 0.08);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 7%, rgba(255, 255, 255, 0.45), transparent 25%),
    radial-gradient(circle at 78% 18%, rgba(248, 206, 239, 0.34), transparent 30%),
    radial-gradient(circle at 44% 80%, rgba(255, 230, 244, 0.26), transparent 34%),
    linear-gradient(180deg, #eee8f2 0%, #c8a7cf 38%, #aa83af 100%);
  background-attachment: fixed;
  color: #2f243c;
}

h1 {
  color: var(--luxe-purple-ink);
  letter-spacing: -0.035em;
  font-weight: 760;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52);
}

.page-intro {
  color: rgba(58, 33, 80, 0.72);
}

.page-shell {
  max-width: min(var(--page-max, 1400px), calc(100vw - 32px));
  padding: 24px;
}

.background-sparkles::before,
.background-sparkles::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(190, 172, 255, 0.50) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 211, 230, 0.55) 0 1.1px, transparent 2.2px);
  background-size: 42px 42px, 67px 67px, 94px 94px;
  background-position: 0 0, 18px 25px, 42px 12px;
  opacity: 0.44;
}

.background-sparkles::after {
  background-size: 73px 73px, 118px 118px, 152px 152px;
  background-position: 24px 14px, 60px 48px, 10px 86px;
  filter: blur(0.45px);
  opacity: 0.28;
}

/* Remove the faint dotted/grid overlay while keeping the hand-placed sparkle layer. */
.background-sparkles::before,
.background-sparkles::after {
  content: none !important;
  background: none !important;
}

.sparkle {
  filter: blur(0.18px) drop-shadow(0 0 4px currentColor);
}

.sparkle::before {
  opacity: 0.75;
}

.site-topbar,
.directory-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px 0;
}

.directory-title-wrap {
  flex: 1 1 auto;
  min-width: 260px;
}

.site-nav.pages-dropdown,
.pages-dropdown.site-nav {
  position: static;
  width: auto;
}

.site-nav .pages-dropdown-toggle {
  display: none !important;
}

.site-nav .pages-dropdown-menu {
  position: static;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(87, 50, 99, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px) saturate(1.12);
}

.site-nav .pages-dropdown-menu li {
  margin: 0;
}

.site-nav .pages-dropdown-menu a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(58, 33, 80, 0.84);
  font-weight: 730;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.site-nav .pages-dropdown-menu a:hover,
.site-nav .pages-dropdown-menu a.is-active {
  transform: translateY(-1px);
  color: #4d1d72;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48), 0 8px 18px rgba(92, 52, 108, 0.12);
}

.site-top-actions,
.directory-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  padding-top: 0 !important;
}

.search-toggle-wrap {
  position: relative;
  align-self: center;
}

#searchToggleBtn,
#clearFiltersBtn,
.add-polish-button,
.stats-icon-button,
.surprise-me-button,
.lucky-secondary-button,
.surprise-secondary-button,
.moods-back-button,
.dupes-back-link {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  background: rgba(255, 255, 255, 0.34) !important;
  color: #55256f !important;
  font-weight: 760 !important;
  box-shadow: 0 10px 22px rgba(91, 54, 103, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(12px) saturate(1.15);
}

.surprise-me-button,
.add-polish-button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(224, 190, 237, 0.50)) !important;
}

.add-polish-button,
.stats-icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.stats-icon-button {
  width: 44px;
  padding: 0;
  font-size: 1.26rem;
}

#searchToggleBtn:hover,
#clearFiltersBtn:hover,
.add-polish-button:hover,
.stats-icon-button:hover,
.surprise-me-button:hover,
.lucky-secondary-button:hover,
.surprise-secondary-button:hover,
.moods-back-button:hover,
.dupes-back-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.56) !important;
  box-shadow: 0 14px 30px rgba(91, 54, 103, 0.17), 0 0 18px rgba(255, 255, 255, 0.25) !important;
}

.search-dropdown {
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  border-radius: 18px !important;
  box-shadow: var(--luxe-soft-shadow) !important;
  backdrop-filter: blur(18px) saturate(1.15);
}

#tableSearchInput,
.filter-row select,
.filter-row input,
.filter-group select,
.stats-filter-group select {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  background: rgba(255, 255, 255, 0.46) !important;
  color: #3a2150 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.filter-row label,
.filter-group label,
.stats-filter-group label {
  color: rgba(58, 33, 80, 0.88) !important;
}

.filter-panel,
.table-wrap,
.lucky-panel,
.dupes-panel,
.moods-status,
.moods-empty,
.selected-mood-panel,
.stats-status,
.stats-card,
.stats-summary-card,
.stats-map-card,
.dupes-message,
.mood-card,
.moods-polish-card,
.dupes-card,
.dupes-featured-details,
.lucky-result-details,
.surprise-result-details,
.polish-detail-panel,
.polish-description-block,
.dupes-description-block,
.stats-brand-summary {
  background: var(--luxe-glass) !important;
  border: 1px solid var(--luxe-glass-border) !important;
  border-radius: 26px !important;
  box-shadow: var(--luxe-shadow) !important;
  backdrop-filter: blur(18px) saturate(1.18);
}

.table-wrap,
.filter-panel,
.lucky-panel,
.dupes-panel,
.selected-mood-panel,
.stats-card,
.stats-summary-card {
  position: relative;
  overflow: hidden;
}

.table-wrap::before,
.filter-panel::before,
.lucky-panel::before,
.dupes-panel::before,
.selected-mood-panel::before,
.stats-card::before,
.stats-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.48), transparent 34%);
  opacity: 0.68;
}

.table-wrap>*,
.filter-panel>*,
.lucky-panel>*,
.dupes-panel>*,
.selected-mood-panel>*,
.stats-card>*,
.stats-summary-card>* {
  position: relative;
  z-index: 1;
}

.active-filters-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
}

.active-filters-wrap[hidden] {
  display: none !important;
}

.active-filters-label {
  color: #3a2150;
  font-size: 0.92rem;
  font-weight: 760;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-chip,
.active-filter-clear {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: #55256f;
  cursor: pointer;
  font-weight: 720;
  padding: 7px 11px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 14px rgba(91, 54, 103, 0.08);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.active-filter-clear {
  color: #a02b70;
}

.active-filter-chip:hover,
.active-filter-clear:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.60);
}

table.dataTable,
table.dataTable.no-footer {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: #2f243c;
  border-bottom: 0 !important;
}

table.dataTable thead th {
  color: #4d1d72;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52) !important;
}

table.dataTable tbody td {
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

#polishTable tbody tr:hover,
table.dataTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

.swatch-thumb-frame,
.moods-polish-thumb-frame,
.dupes-card-thumb-frame {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 10px 20px rgba(70, 42, 82, 0.12) !important;
}

.swatch-thumb-image,
.moods-polish-thumb,
.dupes-card-thumb {
  border-radius: 14px !important;
}

.alpha-filter {
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.alpha-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.24) !important;
  color: #55256f !important;
}

.alpha-btn.active,
.alpha-btn:hover {
  background: rgba(255, 255, 255, 0.62) !important;
  color: #4d1d72 !important;
  box-shadow: 0 8px 16px rgba(91, 54, 103, 0.10);
}

.number-badge {
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: 0 8px 16px rgba(91, 54, 103, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.surprise-modal-content,
.lucky-modal-content,
.polish-modal-content,
.image-viewer-content {
  border-radius: 30px !important;
}

@media (max-width: 820px) {

  .site-topbar,
  .directory-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-top-actions,
  .directory-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav .pages-dropdown-menu {
    border-radius: 24px;
  }

  .page-shell {
    max-width: calc(100vw - 16px);
    padding: 18px 8px;
  }
}

/* ===== Shared stats icon and top action refinements ===== */

.pages-dropdown.is-open .pages-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.stats-icon-button .stats-bar-icon {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-icon-button .stats-bar-icon-baseline {
  stroke-width: 2.2;
  opacity: 0.72;
}

.stats-icon-button .stats-bar-icon-bar {
  fill: currentColor;
  stroke: none;
  opacity: 0.9;
}

.directory-actions #searchToggleBtn,
.directory-actions .surprise-me-button,
.directory-actions .add-polish-button {
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.directory-actions .search-toggle-wrap {
  align-self: center !important;
}

.directory-actions .surprise-me-button {
  gap: 8px !important;
}

.stats-icon-button {
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
}