/* Hero stat data drilldowns */
.fan-stat-chip.data-link {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.fan-stat-chip.data-link::after {
  content: "View data";
  position: absolute;
  right: .65rem;
  bottom: .48rem;
  color: rgba(255, 189, 89, .86);
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: .18s ease;
}

.fan-stat-chip.data-link:hover,
.fan-stat-chip.data-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 189, 89, .42);
  background:
    linear-gradient(135deg, rgba(255,189,89,.16), rgba(255,255,255,.04)),
    radial-gradient(circle at 85% 14%, rgba(73,215,255,.16), transparent 6rem);
  outline: none;
}

.fan-stat-chip.data-link:hover::after,
.fan-stat-chip.data-link:focus-visible::after { opacity: 1; transform: translateY(0); }

.hero-data-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(3, 4, 8, .76);
  backdrop-filter: blur(18px);
}

.hero-data-overlay.active { display: flex; }
body.data-modal-open { overflow: hidden; }

.hero-data-modal {
  width: min(920px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.65rem);
  border-radius: 30px;
  border: 1px solid rgba(234,216,184,.18);
  background:
    radial-gradient(circle at 12% 10%, rgba(255,189,89,.18), transparent 17rem),
    radial-gradient(circle at 88% 8%, rgba(73,215,255,.12), transparent 15rem),
    linear-gradient(145deg, rgba(20,22,39,.97), rgba(13,17,31,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
  overflow: hidden;
}

.hero-data-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hero-data-head h2 {
  margin: .15rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.hero-data-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.hero-data-summary div {
  min-height: 68px;
  padding: .75rem .85rem;
  border-radius: 18px;
  border: 1px solid rgba(234,216,184,.14);
  background: rgba(255,255,255,.055);
}

.hero-data-summary span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 850;
}

.hero-data-summary strong {
  display: block;
  margin-top: .25rem;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -.025em;
}

.hero-data-list {
  display: grid;
  gap: .45rem;
  overflow: auto;
  padding-right: .35rem;
}

.hero-data-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.7fr);
  gap: .7rem;
  align-items: center;
  padding: .66rem .75rem;
  border-radius: 16px;
  border: 1px solid rgba(234,216,184,.12);
  background: rgba(255,255,255,.04);
}

.hero-data-row strong {
  min-width: 0;
  color: var(--text);
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-data-row .play-pill {
  justify-self: start;
  padding: .32rem .55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,189,89,.22), rgba(255,255,255,.05));
  border: 1px solid rgba(255,189,89,.24);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 950;
  white-space: nowrap;
}

.hero-data-row small {
  min-width: 0;
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light .hero-data-modal {
  background:
    radial-gradient(circle at 12% 10%, rgba(255,189,89,.24), transparent 17rem),
    linear-gradient(145deg, rgba(255,250,241,.98), rgba(239,231,216,.98));
}

body.light .hero-data-row,
body.light .hero-data-summary div { background: rgba(31,28,21,.045); }

@media (max-width: 760px) {
  .hero-data-summary { grid-template-columns: 1fr; }
  .hero-data-row { grid-template-columns: 1fr; align-items: start; }
  .hero-data-row strong,
  .hero-data-row small { white-space: normal; }
}

/* Song Lab shadowbox */
.explorer-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 7, 16, 0.72);
  backdrop-filter: blur(10px);
}
.explorer-overlay.active { display: flex; }
body.explorer-open { overflow: hidden; }
.explorer-modal-shell {
  width: min(1380px, 96vw);
  height: min(90vh, 980px);
  padding: .8rem;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(17,20,39,.98), rgba(12,15,31,.97));
  box-shadow: 0 38px 90px rgba(0,0,0,.45);
  overflow: hidden;
}
.explorer-modal-shell #explorer {
  margin: 0;
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.35rem);
}
.explorer-modal-shell .card-heading { flex: 0 0 auto; }
.explorer-modal-shell .explorer-grid {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
}
.explorer-modal-shell .spotlight-card,
.explorer-modal-shell .table-wrap {
  height: 100%;
  min-height: 0;
}
.explorer-modal-shell .spotlight-card {
  position: static;
  overflow: auto;
}
.explorer-modal-shell .table-wrap { overflow: auto; }
.explorer-modal-close { margin-left: auto; }
@media (max-width: 980px) {
  .explorer-modal-shell { width: min(98vw, 98vw); height: min(92vh, 920px); padding: .55rem; }
  .explorer-modal-shell .explorer-grid { grid-template-columns: 1fr; }
  .explorer-modal-shell .spotlight-card { max-height: 34vh; }
}

/* Browser live data updater */
.live-status-badge {
  appearance: none;
  cursor: pointer;
  font: inherit;
}
.live-status-badge.live-on {
  border-color: rgba(145,255,182,.36);
  color: #d9ffe8;
  background: rgba(145,255,182,.08);
}
.live-status-badge.live-error {
  border-color: rgba(255,92,138,.45);
  color: #ffd6df;
  background: rgba(255,92,138,.10);
}
.live-data-modal { width: min(860px, 94vw); }
.live-data-status-card {
  display: grid;
  gap: .25rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}
.live-data-status-card strong { color: var(--text); }
.live-data-status-card span,
.live-data-note { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.live-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.live-field {
  display: grid;
  gap: .42rem;
  color: var(--muted);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-field em {
  color: var(--muted-2);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.live-field input,
.live-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 0 .9rem;
  font: inherit;
  outline: none;
}
.live-field input:focus,
.live-field select:focus {
  border-color: rgba(105,168,255,.55);
  box-shadow: 0 0 0 3px rgba(105,168,255,.12);
}
.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}
.live-data-note { margin: 1rem 0 0; }
@media (max-width: 760px) {
  .live-data-grid { grid-template-columns: 1fr; }
  .live-actions > * { width: 100%; justify-content: center; }
}

/* Setlist generator shadowbox */
.nav-links button.nav-action {
  border: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  padding: .52rem .82rem;
  border-radius: 999px;
  transition: .2s ease;
  background: transparent;
  cursor: pointer;
}
.nav-links button.nav-action:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.set-generator-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 24% 12%, rgba(255,189,89,.16), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(73,215,255,.12), transparent 28rem),
    rgba(2, 3, 10, .78);
  backdrop-filter: blur(18px);
}
.set-generator-overlay.active { display: flex; }
body.generator-open { overflow: hidden; }

.set-generator-modal {
  width: min(1180px, 96vw);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  border-radius: 32px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(17,20,39,.96), rgba(12,15,31,.94)),
    radial-gradient(circle at top left, rgba(255,189,89,.11), transparent 20rem);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 36px 110px rgba(0,0,0,.62);
  overflow: hidden;
}

.generator-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.generator-topline h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .92;
  letter-spacing: -.07em;
}
.generator-topline p:not(.eyebrow) {
  margin: .7rem 0 0;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.55;
}
.modal-close {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.generator-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.generator-mode {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: .95rem 1rem;
  background: rgba(255,255,255,.045);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.generator-mode:hover { transform: translateY(-2px); border-color: rgba(255,189,89,.32); }
.generator-mode.active {
  background: linear-gradient(135deg, rgba(255,189,89,.18), rgba(73,215,255,.08));
  border-color: rgba(255,189,89,.45);
}
.generator-mode strong { display: block; font-size: 1rem; }
.generator-mode span { display: block; margin-top: .32rem; color: var(--muted); font-size: .82rem; line-height: 1.35; }

.generator-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: end;
  padding: .8rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.generator-controls label {
  display: grid;
  gap: .3rem;
  color: var(--muted);
  font-size: .78rem;
}
.generator-controls select {
  min-width: 150px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .72rem .85rem;
}

.generator-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, .33fr) minmax(0, 1fr);
  gap: 1rem;
}
.generator-insight-card, .generated-set-card {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.045);
}
.generator-insight-card {
  padding: 1rem;
  align-self: stretch;
}
.generator-insight-card > span {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 850;
}
.generator-insight-card > strong {
  display: block;
  margin-top: .45rem;
  font-size: 1.8rem;
  letter-spacing: -.06em;
}
.generator-insight-card p { color: var(--muted); line-height: 1.55; }
.generator-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}
.generator-stat-grid div {
  padding: .75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.generator-stat-grid span { display: block; color: var(--muted); font-size: .72rem; }
.generator-stat-grid strong { display: block; margin-top: .25rem; font-size: 1.1rem; }

.generated-set-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.generated-set-heading {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid var(--line);
}
.generated-set-heading h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2.4rem); letter-spacing: -.055em; }
.generated-setlist {
  flex: 1 1 auto;
  min-height: 260px;
  overflow: auto;
  display: grid;
  gap: .55rem;
  padding: 1rem;
  margin: 0;
  list-style: none;
  counter-reset: generatedSong;
}
.generated-setlist li {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .68rem .75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
}
.generated-setlist li:not(.generated-encore)::before {
  counter-increment: generatedSong;
  content: counter(generatedSong);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .75rem;
  background: rgba(255,189,89,.14);
  color: var(--accent);
  font-weight: 900;
}
.generated-setlist .generated-song-title { font-weight: 850; }
.generated-setlist .generated-song-note { color: var(--muted); font-size: .78rem; text-align: right; }
.generated-setlist .generated-encore {
  grid-template-columns: 1fr;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent-2);
  font-weight: 900;
  background: rgba(73,215,255,.07);
}

@media (max-width: 900px) {
  .generator-mode-grid, .generator-layout { grid-template-columns: 1fr; }
  .set-generator-modal { max-height: 94vh; }
  .generator-insight-card { display: none; }
}


/* Dropdown readability fix: keep native select menus readable in both themes. */
select,
.search-box input,
.select-box select,
.generator-controls select {
  color: var(--text) !important;
  background-color: rgba(255,255,255,.06) !important;
  color-scheme: dark;
}

select option,
.select-box select option,
.generator-controls select option {
  color: #f7f2ea;
  background-color: #151827;
}

select optgroup,
.select-box select optgroup,
.generator-controls select optgroup {
  color: #f7f2ea;
  background-color: #151827;
}

body.light select,
body.light .select-box select,
body.light .generator-controls select {
  color: #161521 !important;
  background-color: rgba(255,255,255,.78) !important;
  color-scheme: light;
}

body.light select option,
body.light .select-box select option,
body.light .generator-controls select option,
body.light select optgroup,
body.light .select-box select optgroup,
body.light .generator-controls select optgroup {
  color: #161521;
  background-color: #fff8ec;
}


/* Generator fit pass: compact modal with internal setlist scrolling only. */
.set-generator-overlay {
  padding: clamp(.45rem, 1.6vw, 1rem);
  overflow: hidden;
}

.set-generator-modal {
  width: min(1120px, 97vw);
  height: min(92vh, 820px);
  max-height: 92vh;
  gap: .62rem;
  padding: clamp(.75rem, 1.4vw, 1.05rem);
  border-radius: 24px;
}

.generator-topline {
  flex: 0 0 auto;
  align-items: center;
  gap: .75rem;
}

.generator-topline .eyebrow {
  margin-bottom: .25rem;
}

.generator-topline h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: .94;
}

.generator-topline p:not(.eyebrow) {
  margin: .35rem 0 0;
  max-width: 760px;
  font-size: .9rem;
  line-height: 1.35;
}

.modal-close {
  width: 2.45rem;
  height: 2.45rem;
  font-size: 1.55rem;
  flex: 0 0 auto;
}

.generator-mode-grid {
  flex: 0 0 auto;
  gap: .5rem;
}

.generator-mode {
  padding: .62rem .72rem;
  border-radius: 16px;
}

.generator-mode strong {
  font-size: .92rem;
}

.generator-mode span {
  margin-top: .18rem;
  font-size: .74rem;
  line-height: 1.22;
}

.generator-controls {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(135px, 170px) minmax(135px, 170px) auto auto;
  gap: .55rem;
  align-items: end;
  padding: .58rem;
  border-radius: 18px;
}

.generator-controls label {
  gap: .22rem;
  font-size: .72rem;
}

.generator-controls select {
  min-width: 0;
  width: 100%;
  padding: .58rem .7rem;
  border-radius: 12px;
}

.generator-controls .primary-button,
.generator-controls .secondary-button {
  padding: .64rem .88rem;
  white-space: nowrap;
}

.generator-layout {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: minmax(220px, .28fr) minmax(0, 1fr);
  gap: .72rem;
  overflow: hidden;
}

.generator-insight-card,
.generated-set-card {
  min-height: 0;
  border-radius: 20px;
}

.generator-insight-card {
  padding: .78rem;
  overflow: auto;
}

.generator-insight-card > strong {
  margin-top: .28rem;
  font-size: 1.35rem;
  line-height: 1;
}

.generator-insight-card p {
  margin: .48rem 0 .65rem;
  font-size: .86rem;
  line-height: 1.35;
}

.generator-stat-grid {
  grid-template-columns: 1fr;
  gap: .42rem;
  margin-top: .5rem;
}

.generator-stat-grid div {
  padding: .56rem;
  border-radius: 13px;
}

.generator-stat-grid strong {
  font-size: .96rem;
}

.generated-set-heading {
  padding: .72rem .8rem .62rem;
  align-items: center;
  gap: .65rem;
}

.generated-set-heading .eyebrow {
  margin-bottom: .22rem;
}

.generated-set-heading h3 {
  font-size: clamp(1.15rem, 2vw, 1.85rem);
  line-height: .98;
}

.generated-set-heading .stat-pill {
  padding: .52rem .68rem;
  font-size: .78rem;
}

.generated-setlist {
  min-height: 0;
  height: auto;
  gap: .38rem;
  padding: .72rem .8rem .8rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.generated-setlist li {
  grid-template-columns: 2.05rem minmax(0, 1fr) minmax(84px, auto);
  gap: .5rem;
  padding: .48rem .58rem;
  border-radius: 13px;
}

.generated-setlist li:not(.generated-encore)::before {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: .58rem;
  font-size: .78rem;
}

.generated-setlist .generated-song-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-setlist .generated-song-note {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .72rem;
}

@media (max-width: 900px) {
  .set-generator-modal {
    height: 94vh;
    max-height: 94vh;
  }
  .generator-mode-grid {
    grid-template-columns: 1fr;
  }
  .generator-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .generator-layout {
    grid-template-columns: 1fr;
  }
  .generator-insight-card { display: none; }
}

@media (max-width: 620px) {
  .generator-topline p:not(.eyebrow) { display: none; }
  .generator-controls {
    grid-template-columns: 1fr 1fr;
  }
  .generator-controls .primary-button,
  .generator-controls .secondary-button {
    width: 100%;
    text-align: center;
  }
  .generated-set-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .generated-setlist li {
    grid-template-columns: 2rem minmax(0, 1fr);
  }
  .generated-setlist .generated-song-note {
    grid-column: 2;
    max-width: 100%;
    text-align: left;
  }
}

/* Song Lab: prevent a shadowbox inside another shadowbox. The overlay centers the single Explorer card. */
.explorer-modal-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.explorer-modal-shell #explorer {
  box-shadow: 0 38px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}

/* Song Lab modal layout fix: keep the title visible and pin close button to the true corner. */
.explorer-overlay {
  padding: clamp(1rem, 2vw, 2rem);
}

.explorer-overlay.active {
  align-items: center;
  justify-content: center;
}

.explorer-modal-shell {
  position: relative;
  width: min(1500px, calc(100vw - 2rem));
  height: min(92vh, calc(100dvh - 2rem));
  padding: clamp(1.25rem, 2vw, 2rem) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 30px !important;
  background: linear-gradient(145deg, rgba(17,20,39,.98), rgba(10,13,29,.98)) !important;
  box-shadow: 0 38px 90px rgba(0,0,0,.48) !important;
  overflow: hidden;
}

.explorer-modal-shell #explorer,
.explorer-modal-shell #explorer.glass-card {
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
}

.explorer-modal-shell .card-heading {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, .72fr);
  align-items: start;
  gap: 1rem 1.25rem;
  padding: .2rem 4.35rem .35rem .15rem;
  margin: 0 0 1rem;
  min-height: 6rem;
  overflow: visible;
}

.explorer-modal-shell .card-heading > div:first-child {
  min-width: 0;
  overflow: visible;
}

.explorer-modal-shell .card-heading .eyebrow {
  margin-top: 0;
  margin-bottom: .65rem;
  line-height: 1.25;
  overflow: visible;
}

.explorer-modal-shell .card-heading h2 {
  margin: 0;
  line-height: 1.08;
  padding-bottom: .08rem;
  overflow: visible;
}

.explorer-modal-shell .explorer-tools {
  align-self: start;
  justify-self: end;
  width: min(590px, 100%);
  padding-right: 0;
}

.explorer-modal-close {
  position: absolute !important;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  margin: 0 !important;
}

.explorer-modal-shell .setlist-filter-row {
  flex: 0 0 auto;
  margin-top: 0;
}

@media (max-width: 1050px) {
  .explorer-modal-shell .card-heading {
    grid-template-columns: 1fr;
    padding-right: 4rem;
    min-height: 0;
  }
  .explorer-modal-shell .explorer-tools {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .explorer-overlay { padding: .55rem; }
  .explorer-modal-shell {
    width: calc(100vw - 1.1rem);
    height: calc(100dvh - 1.1rem);
    padding: 1rem !important;
    border-radius: 22px !important;
  }
  .explorer-modal-shell .card-heading {
    padding: .15rem 3.65rem .25rem 0;
  }
  .explorer-modal-close {
    top: .72rem;
    right: .72rem;
  }
}
