:root {
  --bg: #081126;
  --bg-2: #0d1e3d;
  --panel: #0f2346;
  --panel-soft: #16315f;
  --text: #eef4ff;
  --muted: #aac0e8;
  --accent: #3db0ff;
  --accent-2: #76ceff;
  --border: #274676;
  --card: #0e2040;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-top-active: var(--safe-top);
  --safe-bottom-active: var(--safe-bottom);
  --map-stable-height: 100svh;
  --phone-max-width: 460px;
  --list-panel-height: 34svh;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: #081126;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 5%, #1a3f78, var(--bg) 45%), linear-gradient(120deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing-shell {
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  max-width: 980px;
  margin: 0 auto;
  padding: calc(24px + var(--safe-top)) max(20px, calc(20px + var(--safe-right))) calc(28px + var(--safe-bottom))
    max(20px, calc(20px + var(--safe-left)));
  display: flex;
  flex-direction: column;
  gap: 28px;
  overscroll-behavior: contain;
}

.brand-row,
.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-note {
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.brand-text {
  font-size: 1.6rem;
}

.hero {
  margin: auto 0 0;
  max-width: 680px;
}

.eyebrow {
  letter-spacing: 0.2em;
  color: var(--accent-2);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.3rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero-copy {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active {
  opacity: 0.94;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #238cff);
  border-color: transparent;
  color: white;
}

.btn-secondary {
  background: var(--panel-soft);
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  background: color-mix(in srgb, var(--panel), black 16%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.feature-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.analytics-preferences-card {
  margin-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border), transparent 35%);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.analytics-preferences-card h2 {
  margin: 0;
  font-size: 0.98rem;
}

.analytics-preferences-card .hero-copy {
  margin: 0;
  font-size: 0.92rem;
}

.analytics-preferences-card .btn {
  width: fit-content;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel), black 14%);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.role-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.role-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.role-card .btn {
  width: 100%;
}

.landing-footer {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ab4df;
  font-size: 0.86rem;
}

.landing-footer a {
  color: #d9e8ff;
}

.landing-footer a:hover {
  color: #ffffff;
}

.landing-home {
  overflow: auto;
}

.landing-home .landing-shell {
  height: auto;
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  overflow: visible;
}

.app-shell {
  width: 100%;
  max-width: min(900px, 100vw);
  margin: 0 auto;
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  padding: calc(8px + var(--safe-top)) max(10px, calc(10px + var(--safe-right))) calc(10px + var(--safe-bottom))
    max(10px, calc(10px + var(--safe-left)));
  display: grid;
  grid-template-rows: auto minmax(300px, 42svh) minmax(180px, 1fr);
  gap: 10px;
  overscroll-behavior: contain;
}

.map-page .app-shell {
  width: 100%;
  max-width: min(var(--phone-max-width), 100vw);
  min-height: var(--map-stable-height);
  height: var(--map-stable-height);
  margin: 0 auto;
  padding-top: max(14px, calc(var(--safe-top-active) + 6px));
  padding-right: max(8px, calc(8px + var(--safe-right)));
  padding-bottom: 0;
  padding-left: max(8px, calc(8px + var(--safe-left)));
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(170px, var(--list-panel-height));
  gap: 8px;
}

.map-page {
  overflow: hidden;
  display: flex;
  justify-content: center;
}

html.map-page-root,
body.map-page {
  height: 100%;
  overflow: hidden;
}

body.map-page {
  position: fixed;
  inset: 0;
  width: 100%;
}

.search-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f2348;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.94rem;
  min-height: 42px;
}

.search-input::placeholder {
  color: #7f95bd;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quick-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.filter-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.filter-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.filter-time-grid .filter-time-button:nth-child(5) {
  grid-column: 1 / -1;
}

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

.filter-field {
  display: grid;
  gap: 5px;
}

.filter-field span {
  color: #b9d4f7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.filter-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f2348;
  color: var(--text);
  padding: 9px 10px;
  min-height: 42px;
  font-size: 0.82rem;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
}

.date-filter {
  color-scheme: dark;
}

.filter-clear {
  min-width: 0;
}

.filter-save-toggle {
  min-width: 0;
}

.filter-live-toggle {
  min-width: 0;
}

.filter-save-toggle.active {
  border-color: #4bb9ff;
  color: #fff;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.filter-live-toggle.active {
  border-color: #33ce94;
  color: #e8fff4;
  background: linear-gradient(135deg, #15986a, #127850);
}

.filter-time-button.active {
  border-color: #4bb9ff;
  color: #ffffff;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 168px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.chip {
  border: 1px solid var(--border);
  background: #11284f;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.76rem;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.chip.active {
  color: #fff;
  border-color: #4bb9ff;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.map-panel,
.list-panel {
  background: color-mix(in srgb, var(--panel), black 10%);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.map-panel {
  position: relative;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.map-config-error {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: start;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: #d6e9ff;
  background: linear-gradient(180deg, #0e2c57, #091d3b);
}

.map-config-error h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.map-config-error p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #bddcff;
}

.map-config-error a {
  color: #ffffff;
  font-weight: 700;
}

.map-config-error code {
  color: #ffffff;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

#map .mapboxgl-map,
#map .mapboxgl-canvas-container,
#map .mapboxgl-canvas {
  width: 100% !important;
  height: 100% !important;
}

#map .mapboxgl-ctrl-top-left {
  top: 86px;
  left: 8px;
}

#map .mapboxgl-popup-content {
  color: #0e2247;
  background: #ffffff;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.35;
}

#map .mapboxgl-popup-content a {
  color: #1f6fdb;
  font-weight: 700;
}

#map .mapboxgl-popup-tip {
  border-top-color: #ffffff;
}

#map .mapboxgl-ctrl-attrib {
  color: #284368;
  background: rgba(255, 255, 255, 0.9);
}

#map .mapboxgl-ctrl-attrib a {
  color: #1b5fc0;
}

.floating-search {
  --filter-panel-offset: 62px;
  --filter-panel-gutter: 2px;
  --filter-panel-max-height: 420px;
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  display: block;
  pointer-events: none;
}

.search-row,
.filter-panel {
  pointer-events: auto;
}

.filter-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(2, 9, 24, 0.55);
  z-index: 4;
  cursor: pointer;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 26, 55, 0.95);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 7;
}

#toggleFiltersButton {
  width: 112px;
  gap: 7px;
  white-space: nowrap;
}

.map-filters-open #toggleFiltersButton {
  border-color: #4bb9ff;
  color: #ffffff;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2f8de0;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.filter-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 23, 49, 0.985);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  padding: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  left: var(--filter-panel-gutter);
  right: var(--filter-panel-gutter);
  top: var(--filter-panel-offset);
  bottom: auto;
  max-height: var(--filter-panel-max-height);
  z-index: 6;
}

.filter-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 9px;
  gap: 8px;
}

.filter-panel-head h2 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.filter-panel-subtitle {
  margin: 0;
  color: #9db5dc;
  font-size: 0.76rem;
}

.filter-close {
  min-width: 76px;
}

.filter-panel-section {
  border: 1px solid rgba(51, 83, 128, 0.72);
  border-radius: 10px;
  background: rgba(12, 33, 68, 0.7);
  padding: 8px;
  margin-bottom: 7px;
}

.filter-section-title {
  margin: 0 0 7px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ec0ef;
  font-weight: 800;
}

.filter-panel-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 1px;
}

.filter-panel-actions .btn {
  width: 100%;
}

.filter-panel-actions .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.quick-filters .btn {
  width: 100%;
}

.filter-locate {
  grid-column: 1 / -1;
}

.filter-panel-results {
  margin: 7px 2px 1px;
  color: #95b6e5;
  font-size: 0.74rem;
  text-align: center;
}

.filter-panel .btn {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.74rem;
}

.filter-panel .filter-select {
  min-height: 36px;
  font-size: 0.78rem;
  padding: 7px 9px;
}

.filter-panel .chip {
  padding: 6px 10px;
  font-size: 0.73rem;
}

.filter-panel .quick-filters {
  gap: 6px;
  margin-bottom: 6px;
}

.filter-panel .filter-toggle-grid {
  gap: 7px;
}

.filter-panel .filter-time-grid {
  gap: 7px;
}

.filter-panel .filter-field-grid {
  gap: 8px;
}

.filter-panel .chip-row {
  max-height: 104px;
}

.floating-search.filter-panel-compact .filter-panel-subtitle {
  display: none;
}

.floating-search.filter-panel-compact .filter-panel-section {
  padding: 7px;
  margin-bottom: 6px;
}

.floating-search.filter-panel-compact .filter-panel .btn {
  min-height: 34px;
}

.floating-search.filter-panel-compact .filter-panel .filter-select {
  min-height: 34px;
}

.floating-search.filter-panel-compact .filter-panel .chip-row {
  max-height: 82px;
}

.list-panel {
  position: relative;
  padding: 10px 10px 10px;
  overflow: auto;
  overscroll-behavior: contain;
}

.list-sheet-handle {
  position: sticky;
  top: 0;
  width: 72px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 6px 14px;
  margin: -2px auto 8px;
  cursor: ns-resize;
  border-radius: 999px;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 8;
  display: block;
}

.list-sheet-grip {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(161, 188, 232, 0.65);
}

.list-sheet-dragging {
  user-select: none;
}

.list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.list-header-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.list-eyebrow {
  color: #84bee8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.list-header h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.05;
  color: #f0f6ff;
}

.list-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.list-subtitle {
  margin: 0;
  color: #a8c5e6;
  font-size: 0.76rem;
  line-height: 1.28;
}

.list-header-meta {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-direction: column;
  min-width: max-content;
}

.list-header-actions {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex: 0 0 auto;
}

.list-saved-link {
  min-width: 74px;
  text-align: center;
}

.list-saved-link.active {
  border-color: #4bb9ff;
  color: #ffffff;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.musician-submit-cta {
  margin: 2px 0 10px;
  border: 1px solid rgba(52, 86, 132, 0.72);
  border-radius: 10px;
  background: rgba(11, 29, 59, 0.7);
  padding: 10px 12px;
}

.musician-submit-cta p {
  margin: 0;
  color: #b8d3f4;
  font-size: 0.8rem;
  line-height: 1.4;
}

.musician-submit-cta a {
  color: #8fd5ff;
  font-weight: 700;
}

.musician-map-section {
  margin: 2px 0 10px;
}

.musician-profile-shell {
  border: 1px solid rgba(58, 94, 148, 0.72);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 29, 59, 0.86), rgba(7, 21, 45, 0.92));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.musician-profile-panel {
  border: 1px solid rgba(48, 79, 123, 0.72);
  border-radius: 10px;
  background: rgba(11, 29, 59, 0.78);
  padding: 11px;
  display: grid;
  gap: 9px;
}

.musician-map-hint {
  margin: 0;
  color: #b8d3f4;
  font-size: 0.8rem;
  line-height: 1.35;
}

.musician-map-signin {
  width: 100%;
}

.musician-composer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.musician-composer-button {
  border: 1px solid var(--border);
  background: #11284f;
  color: #d7e8ff;
  border-radius: 10px;
  min-height: 41px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 11px;
  cursor: pointer;
}

.musician-composer-button[aria-expanded="true"] {
  border-color: #4bb9ff;
  color: #fff;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.musician-settings-email {
  margin: 0 0 2px;
  color: #d6e7ff;
  font-size: 0.81rem;
  font-weight: 700;
  word-break: break-word;
}

.musician-settings-state-copy {
  margin: 0;
  color: #a9c8ee;
  font-size: 0.77rem;
  line-height: 1.35;
}

.musician-submission-summary {
  border: 1px solid rgba(92, 136, 201, 0.55);
  border-radius: 9px;
  background: rgba(15, 37, 72, 0.78);
  color: #d6e9ff;
  font-size: 0.74rem;
  line-height: 1.35;
  padding: 8px 9px;
}

.musician-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.musician-settings-actions .btn {
  width: 100%;
}

.musician-map-form {
  display: grid;
  gap: 10px;
}

.musician-map-form .submit-field span {
  font-size: 0.77rem;
}

.musician-map-form .submit-field input {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 16px;
}

.musician-map-form .submit-consent {
  font-size: 0.75rem;
}

.musician-section-title {
  margin: 0;
  font-size: 0.94rem;
  color: #e4f0ff;
}

.musician-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.musician-close-button {
  border: 1px solid rgba(84, 120, 173, 0.65);
  background: rgba(14, 35, 68, 0.85);
  color: #cfe2ff;
  border-radius: 999px;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.musician-section-copy {
  margin: -2px 0 0;
  color: #aac9ed;
  font-size: 0.75rem;
  line-height: 1.35;
}

.musician-signout-button {
  border-color: rgba(255, 124, 124, 0.4);
  color: #ffd8d8;
  background: rgba(82, 26, 37, 0.3);
}

#countLabel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid rgba(73, 119, 188, 0.68);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 71, 127, 0.92), rgba(17, 39, 78, 0.94));
  color: #eff6ff;
  font-size: 0.72rem;
  font-weight: 700;
}

#dataUpdatedLabel {
  max-width: 164px;
  text-align: right;
  color: #6f8db9;
  font-size: 0.64rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-list {
  display: grid;
  gap: 10px;
}

.venue-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.venue-card:hover {
  background: #132b55;
}

@media (hover: none) {
  .venue-card:hover {
    background: var(--card);
  }
}

.venue-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.show-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.24;
  color: #d8e9ff;
}

.show-artist {
  color: #91d4ff;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.2;
}

.show-artist-primary {
  color: #ecf4ff;
  font-size: 1rem;
  font-weight: 800;
}

.show-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.show-venue {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.show-venue-name {
  color: #b9d6ff;
  font-size: 0.81rem;
  font-weight: 700;
}

.show-venue-neighborhood {
  color: #8ea8d4;
  font-size: 0.73rem;
}

.venue-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  color: #ecf4ff;
}

.venue-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.venue-address {
  color: #8ea8d4;
  font-size: 0.76rem;
  line-height: 1.2;
}

.venue-count {
  color: #84a5d8;
  font-size: 0.72rem;
  line-height: 1.25;
}

.venue-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.card-action {
  border: 1px solid var(--border);
  background: #10284f;
  color: var(--text);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 30px;
  width: 72px;
  padding: 4px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card-action.active {
  border-color: #4bb9ff;
  color: white;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.empty-state {
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--card), black 8%);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.empty-state strong {
  font-size: 0.9rem;
}

.empty-state span {
  color: var(--muted);
  font-size: 0.82rem;
}

.map-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-height: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.map-page .map-panel,
.map-page .list-panel {
  border-radius: 14px;
}

.map-page .map-panel {
  min-height: 0;
}

.map-page .list-panel {
  min-height: calc(170px + var(--safe-bottom-active));
  max-height: none;
  padding-bottom: calc(10px + var(--safe-bottom-active));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.map-page.musician-mode .app-shell {
  padding-bottom: calc(78px + var(--safe-bottom-active));
}

.musician-footer-nav {
  position: fixed;
  left: 50%;
  bottom: max(8px, calc(var(--safe-bottom-active) + 8px));
  transform: translateX(-50%);
  z-index: 40;
  width: min(420px, calc(100vw - 20px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(52, 89, 143, 0.72);
  border-radius: 16px;
  background: rgba(8, 22, 47, 0.92);
  backdrop-filter: blur(9px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.musician-footer-tab {
  border: 1px solid var(--border);
  background: #10284f;
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.musician-footer-tab.active {
  border-color: #4bb9ff;
  color: #fff;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.map-page.musician-profile-active .app-shell {
  grid-template-rows: minmax(0, 1fr);
}

.map-page.musician-profile-active .map-panel,
.map-page.musician-profile-active #listSheetHandle,
.map-page.musician-profile-active #listHeader,
.map-page.musician-profile-active #venueList {
  display: none;
}

.map-page.musician-profile-active .list-panel {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  padding-top: 12px;
  padding-bottom: calc(12px + var(--safe-bottom-active));
}

.map-page.musician-profile-active .musician-map-section {
  margin: 0;
}

.saved-page {
  overflow: auto;
  overscroll-behavior: contain;
}

.saved-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--safe-top-active) + 10px) max(10px, calc(10px + var(--safe-right)))
    calc(var(--safe-bottom-active) + 14px) max(10px, calc(10px + var(--safe-left)));
  display: grid;
  gap: 10px;
}

.saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.saved-back {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.saved-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel), black 10%);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.submit-page {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.submit-shell {
  width: min(420px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--safe-top-active) + 12px) max(10px, calc(10px + var(--safe-right)))
    calc(var(--safe-bottom-active) + 14px) max(10px, calc(10px + var(--safe-left)));
  display: grid;
  gap: 9px;
}

.submit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.submit-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-user-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  color: #cfe3ff;
  background: rgba(15, 35, 70, 0.8);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submit-signout {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 0.74rem;
}

.submit-back {
  color: #cfe4ff;
  font-weight: 700;
  font-size: 0.79rem;
}

.submit-chip {
  border: 1px solid #5f90ca;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.67rem;
  color: #d7ebff;
}

.submit-panel {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(10, 29, 57, 0.9);
  padding: 12px;
  display: grid;
  gap: 12px;
}

.submit-panel--compact {
  padding: 10px;
  gap: 10px;
}

.submit-panel-head h1 {
  margin: 0 0 5px;
  font-size: 1.07rem;
  line-height: 1.2;
}

.submit-panel-head p {
  margin: 0;
  color: #b1c9ea;
  font-size: 0.76rem;
  line-height: 1.35;
}

.submit-help {
  margin: 1px 0 0;
  color: #9cbde5;
  font-size: 0.71rem;
  line-height: 1.3;
}

.submit-help a {
  color: #dcedff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.submit-form {
  display: grid;
  gap: 9px;
}

.submit-form--stepped {
  gap: 8px;
}

.submit-step {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 35, 72, 0.42);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.submit-step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.69rem;
  color: #9fc8ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.submit-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #5f92cc;
  background: rgba(18, 50, 97, 0.7);
  display: inline-grid;
  place-items: center;
  font-size: 0.64rem;
  color: #d8ebff;
}

.submit-field {
  display: grid;
  gap: 4px;
}

.submit-field span {
  color: #d2e7ff;
  font-size: 0.7rem;
  font-weight: 700;
}

.submit-field input,
.submit-field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f2348;
  color: var(--text);
  padding: 8px 10px;
  min-height: 38px;
  font: inherit;
  font-size: 16px;
}

.submit-field textarea {
  min-height: 86px;
  resize: vertical;
}

.submit-optional {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 35, 72, 0.42);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.submit-optional summary {
  list-style: none;
  cursor: pointer;
  color: #d6e8ff;
  font-size: 0.79rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.submit-optional summary::-webkit-details-marker {
  display: none;
}

.submit-optional summary::before {
  content: "▸";
  font-size: 0.72rem;
  color: #9dc3ff;
}

.submit-optional[open] summary::before {
  content: "▾";
}

.submit-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #acc6e8;
  font-size: 0.76rem;
  line-height: 1.3;
}

.submit-consent input {
  margin-top: 2px;
}

.submit-status {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #10284f;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.submit-status strong {
  font-size: 0.88rem;
}

.submit-status span {
  font-size: 0.8rem;
  color: var(--muted);
}

.submit-status.is-error {
  border-color: rgba(255, 120, 120, 0.65);
  background: rgba(95, 25, 39, 0.45);
}

.submit-status.is-success {
  border-color: rgba(111, 212, 153, 0.7);
  background: rgba(26, 75, 54, 0.5);
}

.submit-button {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.auth-page {
  overflow: auto;
  overscroll-behavior: contain;
}

.auth-shell {
  width: min(560px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--safe-top-active) + 10px) max(10px, calc(10px + var(--safe-right)))
    calc(var(--safe-bottom-active) + 18px) max(10px, calc(10px + var(--safe-left)));
  display: grid;
  gap: 12px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 40, 77, 0.94), rgba(9, 24, 49, 0.96));
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.auth-panel-head h1 {
  margin: 0 0 6px;
  font-size: 1.36rem;
  line-height: 1.15;
}

.auth-panel-head p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.auth-state-note {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.74rem;
  color: var(--muted);
  background: rgba(15, 35, 72, 0.45);
}

.auth-state-note.is-active {
  color: #cfe8ff;
  border-color: rgba(111, 212, 153, 0.45);
  background: rgba(26, 75, 54, 0.3);
}

.auth-view {
  display: grid;
  gap: 10px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-signin-button {
  width: 100%;
}

.auth-create-button {
  width: 100%;
}

.auth-listener-link {
  width: 100%;
}

.auth-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b7d4ff;
  text-align: center;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 2px 0;
  cursor: pointer;
}

.auth-link-button:hover {
  color: #d6e8ff;
}

.auth-footnote {
  margin: 0;
  color: #9fc0ea;
  font-size: 0.75rem;
  text-align: center;
}

.auth-session-card {
  border: 1px solid rgba(88, 138, 204, 0.55);
  border-radius: 12px;
  background: rgba(14, 34, 66, 0.82);
  padding: 10px 11px;
  display: grid;
  gap: 4px;
}

.auth-session-label {
  color: #99b7df;
  font-size: 0.73rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 700;
}

.auth-session-email {
  color: #e1eeff;
  font-size: 0.91rem;
  line-height: 1.25;
}

.auth-continue-button {
  width: 100%;
}

.auth-switch-button {
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
}

.auth-session-actions {
  display: grid;
  gap: 8px;
}

.auth-account-tools {
  border: 1px solid rgba(82, 111, 158, 0.52);
  border-radius: 12px;
  background: rgba(12, 30, 61, 0.65);
  padding: 8px 10px;
}

.auth-account-tools summary {
  list-style: none;
  cursor: pointer;
  color: #bfd8ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-account-tools summary::-webkit-details-marker {
  display: none;
}

.auth-account-tools summary::before {
  content: "▸";
  font-size: 0.72rem;
  color: #9dc3ff;
  margin-right: 6px;
}

.auth-account-tools[open] summary::before {
  content: "▾";
}

.auth-account-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.auth-delete-account {
  width: 100%;
  border-color: rgba(255, 120, 120, 0.45);
  color: #ffd6d6;
  background: rgba(82, 25, 37, 0.35);
}

.venue-page {
  min-height: 100svh;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  justify-content: center;
}

.venue-shell {
  width: min(var(--phone-max-width), 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--safe-top-active) + 6px) max(10px, calc(10px + var(--safe-right)))
    calc(var(--safe-bottom-active) + 14px) max(10px, calc(10px + var(--safe-left)));
  display: grid;
  gap: 10px;
  overscroll-behavior: contain;
}

.venue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}

.venue-back {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.84rem;
}

.venue-hero {
  min-height: 134px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, #1f4f8f, #0b1d3d 50%, #081126 100%);
}

.venue-hero-overlay {
  min-height: 134px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background: linear-gradient(160deg, rgba(7, 18, 39, 0.16), rgba(7, 18, 39, 0.8));
}

.venue-hero-overlay h1 {
  margin: 0;
  font-size: clamp(1.46rem, 6.6vw, 1.92rem);
  line-height: 1.1;
}

.venue-hero-overlay p {
  margin: 0;
}

.venue-kicker {
  color: #99bee9;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-neighborhood {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(96, 154, 226, 0.5);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(11, 43, 87, 0.45);
  color: #d6ebff;
  font-size: 0.76rem;
  font-weight: 700;
}

.venue-description {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: 52ch;
}

.venue-tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.venue-pill {
  border: 1px solid rgba(116, 182, 255, 0.5);
  color: #d6ebff;
  background: rgba(10, 44, 88, 0.55);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.venue-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#venueDirectionsButton {
  grid-column: 1 / -1;
}

.venue-actions-row .btn {
  min-height: 40px;
  padding: 10px 9px;
  font-size: 0.89rem;
  letter-spacing: 0.01em;
}

.venue-actions-row .btn.is-disabled,
.venue-actions-row .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.venue-card-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel), black 10%);
  padding: 10px 10px 11px;
  display: grid;
  gap: 9px;
}

.venue-card-block--events {
  padding: 11px;
  gap: 9px;
  border-color: rgba(76, 156, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(72, 142, 230, 0.12);
}

.venue-card-block--details {
  padding: 7px 9px;
  background: color-mix(in srgb, var(--panel), black 16%);
}

.venue-details-collapse {
  display: grid;
  gap: 8px;
}

.venue-details-collapse summary {
  list-style: none;
  cursor: pointer;
  color: #c3dafc;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.venue-details-collapse summary::-webkit-details-marker {
  display: none;
}

.venue-details-collapse summary::before {
  content: "▸";
  font-size: 0.7rem;
  color: #97c6ff;
}

.venue-details-collapse[open] summary::before {
  content: "▾";
}

.venue-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.venue-card-head h2 {
  margin: 0;
  font-size: 1.04rem;
}

.venue-card-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

#venueEventCount {
  min-width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.venue-event-list {
  display: grid;
  gap: 7px;
}

.venue-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.venue-info-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #11284f;
  padding: 7px;
  display: grid;
  gap: 3px;
  min-height: 56px;
}

.venue-info-label {
  color: #8ca8d6;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.venue-info-value {
  color: #f0f6ff;
  font-size: 0.8rem;
  text-decoration: none;
  line-height: 1.25;
}

.venue-info-value[aria-disabled="true"] {
  color: #8ca0c6;
  pointer-events: none;
}

.venue-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.venue-tag-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #10284d;
  color: #d9ecff;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 9px;
}

.venue-event-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.venue-filter-chip {
  border: 1px solid var(--border);
  background: #11284f;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 8px;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 34px;
  width: 100%;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.venue-filter-chip.active {
  color: #fff;
  border-color: #4bb9ff;
  background: linear-gradient(135deg, #2f8de0, #2b6bc8);
}

.event-row {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 10px 10px 11px;
  display: grid;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(60, 105, 170, 0.14);
}

.event-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-date-badge {
  border: 1px solid rgba(90, 146, 221, 0.7);
  color: #d4e9ff;
  background: rgba(20, 57, 110, 0.55);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.event-row-main {
  display: grid;
  gap: 2px;
}

.event-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.event-subtitle {
  color: var(--muted);
  font-size: 0.83rem;
}

.event-time {
  color: #90abda;
  font-size: 0.77rem;
}

.event-ticket-link {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-rows: auto minmax(250px, 36svh) minmax(160px, 1fr);
    gap: 8px;
  }

  .map-controls {
    grid-template-columns: 1fr;
  }

  .btn-secondary {
    width: 100%;
  }

  .brand-inline {
    display: none;
  }

  .filter-select {
    font-size: 0.8rem;
    padding: 8px 9px;
    min-height: 38px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) 102px;
    padding: 7px;
  }

  #toggleFiltersButton {
    width: 102px;
    gap: 6px;
  }

  .filter-panel {
    max-height: min(56svh, 420px);
  }

  .filter-field-grid {
    grid-template-columns: 1fr;
  }

  .venue-actions {
    align-self: flex-start;
  }

  .card-action {
    min-width: 78px;
  }

  .map-page .app-shell {
    max-width: 100vw;
    grid-template-rows: minmax(0, 1fr) minmax(170px, var(--list-panel-height));
    gap: 6px;
    padding-right: max(6px, calc(6px + var(--safe-right)));
    padding-left: max(6px, calc(6px + var(--safe-left)));
  }

  .map-page .map-panel {
    min-height: 0;
  }

  .venue-actions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .venue-actions-row .btn {
    padding: 9px 7px;
    font-size: 0.82rem;
  }

  .venue-info-grid {
    grid-template-columns: 1fr;
  }

  .musician-composer-actions,
  .musician-settings-actions,
  .auth-form-actions,
  .auth-session-actions,
  .auth-view,
  .auth-account-actions {
    grid-template-columns: 1fr;
  }
}

/* Prevent iOS focus zoom on inputs/selects in the map experience. */
@supports (-webkit-touch-callout: none) {
  .map-page .search-input {
    font-size: 16px;
  }
}

/* iOS-first alignment overhaul */
:root {
  --phone-max-width: 430px;
  --page-gutter: 10px;
  --page-top-gap: 8px;
  --page-bottom-gap: 14px;
  --surface-radius: 14px;
  --surface-radius-sm: 11px;
  --control-height: 42px;
  --control-font: 0.88rem;
  --meta-font: 0.78rem;
}

body {
  font-size: 16px;
}

.btn {
  min-height: var(--control-height);
  padding: 10px 14px;
  font-size: var(--control-font);
  letter-spacing: 0.01em;
}

.feature-card,
.role-card {
  border-radius: var(--surface-radius);
  padding: 13px;
}

.feature-card h2,
.role-card h2 {
  font-size: 1.02rem;
}

.feature-card p,
.role-card p {
  font-size: 0.86rem;
  line-height: 1.38;
}

.landing-shell {
  width: 100%;
  max-width: min(var(--phone-max-width), 100vw);
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  padding: calc(var(--safe-top) + 10px) max(var(--page-gutter), calc(var(--page-gutter) + var(--safe-right)))
    calc(var(--safe-bottom) + var(--page-bottom-gap)) max(var(--page-gutter), calc(var(--page-gutter) + var(--safe-left)));
  gap: 14px;
}

.landing-home .landing-shell {
  padding-top: calc(var(--safe-top) + 12px);
  justify-content: flex-start;
}

.brand-note {
  font-size: 1.26rem;
}

.brand-text {
  font-size: 1.24rem;
}

.hero {
  margin: 2px 0 0;
}

.eyebrow {
  margin-bottom: 7px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
}

.landing-page h1,
.landing-home h1 {
  font-size: clamp(1.8rem, 8vw, 2.3rem);
  line-height: 1.1;
  margin-bottom: 9px;
}

.hero-copy {
  margin-bottom: 11px;
  font-size: 0.94rem;
  line-height: 1.4;
}

.feature-grid,
.home-quick-grid,
.role-grid {
  grid-template-columns: 1fr;
  gap: 9px;
}

.home-quick-grid .feature-card {
  display: grid;
  gap: 8px;
}

.hero-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-actions .btn {
  width: 100%;
}

.landing-footer {
  font-size: 0.81rem;
  gap: 6px;
  margin-top: auto;
}

.app-shell {
  max-width: min(var(--phone-max-width), 100vw);
}

.map-page .app-shell {
  max-width: min(var(--phone-max-width), 100vw);
  padding-top: max(12px, calc(var(--safe-top-active) + 4px));
  padding-right: max(6px, calc(6px + var(--safe-right)));
  padding-left: max(6px, calc(6px + var(--safe-left)));
  gap: 6px;
}

.map-panel,
.list-panel {
  border-radius: 15px;
}

.search-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  border-radius: 12px;
  padding: 7px;
}

#toggleFiltersButton {
  width: auto;
  min-width: 94px;
  padding-left: 11px;
  padding-right: 11px;
}

.search-input {
  font-size: 16px;
  min-height: var(--control-height);
  border-radius: 10px;
}

.filter-field span {
  font-size: 0.73rem;
}

.filter-select {
  min-height: 38px;
  font-size: 16px;
  border-radius: 9px;
}

.chip {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.74rem;
}

.filter-panel {
  border-radius: 12px;
  padding: 9px;
  padding-bottom: 10px;
}

.filter-panel-head h2 {
  font-size: 0.95rem;
}

.filter-panel-subtitle {
  font-size: 0.72rem;
}

.filter-panel-section {
  border-radius: 9px;
  padding: 7px;
}

.filter-section-title {
  font-size: 0.71rem;
}

.filter-panel .btn {
  min-height: 34px;
  font-size: 0.74rem;
}

.filter-panel .chip-row {
  max-height: 84px;
}

.filter-toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-locate {
  grid-column: 1 / -1;
}

.filter-field-grid {
  grid-template-columns: 1fr;
  gap: 7px;
}

.filter-panel-actions {
  position: sticky;
  bottom: -1px;
  margin: 8px -9px -9px;
  padding: 8px 9px 9px;
  background: linear-gradient(180deg, rgba(8, 23, 49, 0), rgba(8, 23, 49, 0.98) 28%, rgba(8, 23, 49, 0.98));
  border-top: 1px solid rgba(47, 77, 122, 0.55);
}

.filter-panel-results {
  margin-bottom: 4px;
}

.list-panel {
  padding: 8px 8px calc(9px + var(--safe-bottom-active));
}

.list-sheet-handle {
  margin: -2px auto 5px;
}

.list-header {
  margin-bottom: 6px;
}

.list-eyebrow {
  font-size: 0.62rem;
}

.list-header h2 {
  font-size: 1rem;
}

.list-header span {
  font-size: 0.72rem;
}

.list-subtitle {
  font-size: 0.72rem;
}

.list-header-actions {
  gap: 6px;
}

#countLabel {
  font-size: 0.68rem;
  padding-left: 10px;
  padding-right: 10px;
}

#dataUpdatedLabel {
  max-width: 146px;
  font-size: 0.61rem;
}

.list-header-meta {
  gap: 6px;
  flex-direction: column;
  align-items: flex-end;
}

.list-saved-link {
  min-width: 64px;
}

#countLabel {
  max-width: none;
  min-width: 78px;
  padding: 6px 8px;
}

#dataUpdatedLabel {
  max-width: 130px;
}

.musician-submit-cta {
  margin: 0 0 8px;
  padding: 8px 10px;
}

.musician-submit-cta p {
  font-size: 0.76rem;
}

.venue-list {
  gap: 8px;
}

.venue-card {
  border-radius: 12px;
  padding: 10px;
  gap: 8px;
}

.show-title {
  font-size: 0.93rem;
}

.show-artist {
  font-size: 0.78rem;
}

.show-artist-primary {
  font-size: 0.93rem;
}

.show-meta {
  font-size: 0.76rem;
}

.show-venue {
  gap: 1px;
}

.show-venue-name {
  font-size: 0.77rem;
}

.show-venue-neighborhood,
.venue-address,
.venue-count {
  font-size: 0.71rem;
}

.venue-name {
  font-size: 0.93rem;
}

.venue-meta {
  font-size: 0.76rem;
}

.venue-actions {
  gap: 5px;
}

.card-action {
  min-height: 31px;
  width: 68px;
  font-size: 0.72rem;
  padding: 4px 8px;
}

.saved-shell,
.submit-shell,
.auth-shell,
.venue-shell {
  width: 100%;
  max-width: min(var(--phone-max-width), 100vw);
  padding-top: calc(var(--safe-top-active) + var(--page-top-gap));
  padding-right: max(var(--page-gutter), calc(var(--page-gutter) + var(--safe-right)));
  padding-bottom: calc(var(--safe-bottom-active) + var(--page-bottom-gap));
  padding-left: max(var(--page-gutter), calc(var(--page-gutter) + var(--safe-left)));
  gap: 10px;
}

.saved-header,
.submit-header,
.auth-header,
.venue-header {
  min-height: 26px;
}

.saved-back,
.submit-back,
.venue-back {
  font-size: 0.83rem;
}

.saved-panel,
.submit-panel,
.auth-panel {
  border-radius: var(--surface-radius);
}

.saved-panel {
  padding: 9px;
}

.submit-panel {
  padding: 11px;
  gap: 10px;
}

.submit-panel-head h1 {
  font-size: 1.16rem;
  margin-bottom: 4px;
}

.submit-panel-head p {
  font-size: 0.84rem;
}

.submit-form {
  gap: 9px;
}

.submit-field {
  gap: 5px;
}

.submit-field span {
  font-size: 0.79rem;
}

.submit-field input,
.submit-field textarea,
.submit-field select {
  min-height: 42px;
  border-radius: 9px;
  font-size: 16px;
  padding: 9px 10px;
}

.submit-optional {
  border-radius: 9px;
  padding: 8px 9px 9px;
}

.submit-consent {
  font-size: 0.78rem;
}

.submit-status strong {
  font-size: 0.82rem;
}

.submit-status span {
  font-size: 0.76rem;
}

.submit-button {
  font-size: 0.88rem;
}

.auth-panel {
  padding: 13px;
  gap: 10px;
}

.auth-panel-head h1 {
  font-size: 1.18rem;
}

.auth-panel-head p {
  font-size: 0.84rem;
}

.auth-state-note {
  margin-top: 6px;
  font-size: 0.72rem;
}

.auth-form,
.auth-view {
  gap: 8px;
}

.auth-form-actions {
  gap: 7px;
}

.auth-footnote {
  font-size: 0.73rem;
}

.auth-session-email {
  font-size: 0.84rem;
}

.auth-account-tools summary {
  font-size: 0.76rem;
}

.venue-shell {
  gap: 9px;
}

.venue-hero {
  min-height: 108px;
  border-radius: var(--surface-radius);
}

.venue-hero-overlay {
  min-height: 108px;
  padding: 10px 11px;
  gap: 5px;
}

.venue-hero-overlay h1 {
  font-size: clamp(1.34rem, 6.2vw, 1.74rem);
}

.venue-hero-overlay p {
  font-size: 0.8rem;
}

.venue-description {
  font-size: 0.79rem;
}

.venue-actions-row {
  gap: 6px;
}

.venue-actions-row .btn {
  min-height: 38px;
  font-size: 0.79rem;
  padding-left: 8px;
  padding-right: 8px;
}

.venue-card-block {
  border-radius: 12px;
}

.venue-card-block--events {
  border-color: rgba(76, 156, 255, 0.36);
  background: linear-gradient(180deg, rgba(17, 41, 78, 0.76), rgba(12, 30, 60, 0.94));
}

.venue-card-block--details {
  background: rgba(12, 28, 55, 0.75);
  border-color: rgba(46, 74, 120, 0.72);
}

.venue-card-head h2 {
  font-size: 0.97rem;
}

.venue-card-head span {
  font-size: 0.78rem;
}

.venue-filter-chip {
  font-size: 0.74rem;
}

.event-row {
  border-radius: 11px;
}

.event-title {
  font-size: 0.95rem;
}

.event-subtitle,
.event-time,
.event-ticket-link {
  font-size: 0.76rem;
}

.venue-details-collapse summary {
  font-size: 0.75rem;
}

.venue-info-item {
  border-radius: 9px;
  min-height: 52px;
}

.venue-info-label {
  font-size: 0.66rem;
}

.venue-info-value {
  font-size: 0.76rem;
}

.venue-tag-chip {
  font-size: 0.71rem;
  padding: 4px 8px;
}

.venue-details-collapse summary {
  color: #b8d5fb;
}

@media (min-width: 721px) {
  .landing-shell,
  .saved-shell,
  .submit-shell,
  .auth-shell,
  .venue-shell,
  .app-shell,
  .map-page .app-shell {
    max-width: min(var(--phone-max-width), 100vw);
  }
}

/* Home page redesign (single-page focused pass) */
.landing-home {
  overflow: auto;
}

.landing-home .landing-shell.home-shell {
  width: 100%;
  max-width: min(var(--phone-max-width), 100vw);
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  padding: calc(var(--safe-top) + 10px) max(var(--page-gutter), calc(var(--page-gutter) + var(--safe-right)))
    calc(var(--safe-bottom) + 14px) max(var(--page-gutter), calc(var(--page-gutter) + var(--safe-left)));
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 14px;
}

.home-topbar {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-topbar .brand-row {
  gap: 7px;
}

.home-topbar .brand-note {
  font-size: 1.16rem;
}

.home-topbar .brand-text {
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.home-city {
  border: 1px solid rgba(81, 132, 204, 0.6);
  border-radius: 999px;
  padding: 3px 8px;
  color: #d0e6ff;
  background: rgba(12, 42, 86, 0.46);
  font-size: 0.71rem;
  font-weight: 700;
}

.home-hero-block {
  border: 1px solid rgba(64, 106, 171, 0.8);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(17, 47, 92, 0.9), rgba(11, 28, 57, 0.95));
  box-shadow: inset 0 0 0 1px rgba(90, 145, 220, 0.14);
  padding: 16px 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-kicker {
  margin: 0;
  color: #96c5ff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.home-title {
  margin: 0;
  font-size: clamp(1.62rem, 7.8vw, 2.08rem);
  line-height: 1.08;
}

.home-subtitle {
  margin: 0;
  color: #bdd7fb;
  font-size: 0.86rem;
  line-height: 1.38;
}

.home-split {
  display: grid;
  gap: 10px;
}

.home-lane {
  border: 1px solid rgba(69, 115, 179, 0.75);
  border-radius: 14px;
  background: rgba(11, 31, 60, 0.84);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.home-lane strong {
  font-size: 0.9rem;
}

.home-lane span {
  color: #b1c9ea;
  font-size: 0.79rem;
  line-height: 1.36;
}

.home-lane-button {
  min-height: 42px;
  line-height: 42px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.home-lane-button-primary {
  color: #fff;
  background: linear-gradient(135deg, #4cc0ff, #2392ff);
}

.home-lane-button-secondary {
  border: 1px solid #446da6;
  color: #d4e8ff;
  background: rgba(17, 48, 94, 0.72);
}

.home-footer {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #9ebce4;
}

/* Venue page refresh: hybrid of concept A + F (music-first) */
.venue-shell {
  width: min(402px, 100%);
  gap: 7px;
  padding-top: calc(var(--safe-top-active) + 6px);
}

.venue-header {
  min-height: 20px;
}

.venue-back {
  color: #cde4ff;
  font-size: 0.75rem;
}

.venue-hero {
  min-height: 108px;
  border-radius: 14px;
  border-color: rgba(88, 146, 222, 0.82);
  background: radial-gradient(circle at 16% 12%, #245694, #0d2145 54%, #081126 100%);
}

.venue-hero-overlay {
  min-height: 108px;
  padding: 10px;
  gap: 4px;
  background: linear-gradient(163deg, rgba(7, 18, 39, 0.2), rgba(7, 18, 39, 0.84));
}

.venue-kicker {
  color: #9fccff;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.venue-hero-overlay h1 {
  font-size: clamp(1.12rem, 5.4vw, 1.42rem);
}

.venue-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.venue-neighborhood {
  border-color: rgba(95, 153, 224, 0.62);
  padding: 2px 7px;
  font-size: 0.66rem;
}

.venue-description {
  color: #bfd7f8;
  font-size: 0.7rem;
  max-width: 44ch;
}

.venue-tag-strip {
  margin-top: 2px;
}

.venue-pill {
  border-color: rgba(112, 177, 249, 0.56);
  padding: 3px 7px;
  font-size: 0.63rem;
}

.venue-actions-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

#venueDirectionsButton {
  grid-column: auto;
}

.venue-actions-row .btn {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 0.71rem;
  border-radius: 999px;
}

.venue-actions-row .btn-primary {
  background: linear-gradient(135deg, #53c2ff, #2791f8);
}

.venue-actions-row .btn.is-disabled,
.venue-actions-row .btn:disabled {
  opacity: 0.5;
}

.venue-card-block {
  border-radius: 12px;
  border-color: rgba(55, 91, 143, 0.95);
  padding: 8px;
  gap: 7px;
}

.venue-card-block--events {
  border-color: rgba(76, 153, 247, 0.58);
}

.venue-card-head h2 {
  font-size: 0.83rem;
}

.venue-card-head span {
  color: #a8c7ed;
  font-size: 0.68rem;
}

#venueEventCount {
  min-width: 56px;
}

.venue-filter-chip {
  border-color: rgba(75, 112, 167, 0.95);
  padding: 5px 6px;
  font-size: 0.67rem;
  min-height: 29px;
}

.venue-filter-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, #48baff, #287fd8);
}

.event-row {
  border-color: rgba(65, 103, 158, 0.95);
  background: rgba(13, 36, 70, 0.78);
  padding: 7px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.event-row.no-ticket {
  grid-template-columns: 48px minmax(0, 1fr);
}

.event-time-rail {
  display: grid;
  justify-items: start;
  gap: 1px;
}

.event-time-hour {
  color: #dff0ff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.event-time-meridiem {
  color: #9ec1ea;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.event-row-main {
  gap: 1px;
  min-width: 0;
}

.event-title {
  font-size: 0.76rem;
  line-height: 1.2;
}

.event-subtitle {
  color: #abc7ea;
  font-size: 0.67rem;
  line-height: 1.33;
}

.event-status-pill {
  width: fit-content;
  margin-top: 2px;
  border: 1px solid rgba(88, 145, 221, 0.72);
  border-radius: 999px;
  padding: 1px 6px;
  color: #d5eaff;
  background: rgba(20, 57, 110, 0.46);
  font-size: 0.61rem;
  font-weight: 700;
}

.event-ticket-link {
  border: 1px solid rgba(74, 117, 180, 0.95);
  border-radius: 999px;
  padding: 5px 8px;
  color: #8cd8ff;
  background: rgba(11, 42, 84, 0.52);
  font-size: 0.66rem;
  white-space: nowrap;
}

.venue-info-item {
  border-color: rgba(53, 87, 138, 0.95);
  min-height: 48px;
  padding: 6px;
}

.venue-info-label {
  font-size: 0.62rem;
}

.venue-info-value {
  font-size: 0.69rem;
}

.venue-tag-chip {
  border-color: rgba(62, 98, 152, 0.95);
  font-size: 0.64rem;
  padding: 3px 7px;
}

.venue-details-collapse summary {
  font-size: 0.71rem;
}

@media (max-width: 720px) {
  .venue-actions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .venue-actions-row .btn {
    font-size: 0.69rem;
  }
}

/* Venue page final polish (clean iOS alignment) */
.venue-shell {
  width: min(390px, 100%);
  gap: 10px;
  padding-top: calc(var(--safe-top-active) + 6px);
}

.venue-header {
  min-height: 20px;
  margin-bottom: 1px;
}

.venue-back {
  font-size: 0.76rem;
}

.venue-hero {
  min-height: 0;
  border-radius: 14px;
}

.venue-hero-overlay {
  min-height: 0;
  justify-content: flex-start;
  padding: 11px 12px;
  gap: 5px;
}

.venue-kicker {
  display: none;
}

.venue-hero-overlay h1 {
  font-size: clamp(1.2rem, 5.8vw, 1.5rem);
}

.venue-description {
  font-size: 0.72rem;
  margin-top: 1px;
}

.venue-tag-strip {
  gap: 5px;
  margin-top: 2px;
}

.venue-pill {
  font-size: 0.64rem;
  padding: 3px 7px;
}

.venue-actions-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 1px;
  margin-bottom: 1px;
}

.venue-actions-row .btn {
  -webkit-appearance: none;
  appearance: none;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 12px;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.venue-card-block {
  border-radius: 12px;
  padding: 10px;
  gap: 8px;
}

.venue-card-head h2 {
  font-size: 0.86rem;
}

.venue-card-head span {
  font-size: 0.69rem;
}

.venue-filter-chip {
  border-radius: 10px;
  min-height: 32px;
  font-size: 0.69rem;
  padding: 5px 7px;
}

.event-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 10px;
}

.event-row.no-ticket {
  grid-template-columns: auto minmax(0, 1fr);
}

.event-time-rail,
.event-time-hour,
.event-time-meridiem,
.event-status-pill {
  display: none;
}

.event-date-badge {
  border: 1px solid rgba(88, 145, 221, 0.75);
  border-radius: 8px;
  padding: 2px 6px;
  color: #d6ebff;
  background: rgba(20, 57, 110, 0.42);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.event-title {
  font-size: 0.77rem;
  margin-bottom: 1px;
}

.event-subtitle {
  font-size: 0.67rem;
  line-height: 1.3;
}

.event-ticket-link {
  border-radius: 10px;
  padding: 5px 7px;
  font-size: 0.64rem;
}

.venue-details-collapse summary {
  font-size: 0.72rem;
  padding: 1px 0;
}

.venue-details-collapse[open] {
  gap: 9px;
}

.venue-info-grid {
  gap: 8px;
}

.venue-info-item {
  min-height: 44px;
  padding: 7px;
}

.venue-info-label {
  font-size: 0.61rem;
}

.venue-info-value {
  font-size: 0.68rem;
}

/* Venue spacing correction: prevent stretched rows and normalize rhythm */
.venue-shell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: calc(100svh - var(--safe-top-active) - var(--safe-bottom-active));
  width: min(404px, 100%);
  gap: 10px;
  padding-top: calc(var(--safe-top-active) + 6px);
  padding-bottom: calc(var(--safe-bottom-active) + 14px);
}

.venue-shell > * {
  margin: 0;
}

.venue-header {
  min-height: 20px;
}

.venue-hero,
.venue-hero-overlay {
  min-height: 0;
  height: auto;
}

.venue-hero {
  border-radius: 14px;
}

.venue-hero-overlay {
  padding: 11px 12px;
  gap: 5px;
}

.venue-actions-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.venue-actions-row .btn {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 11px;
  padding: 0 8px;
  font-size: 0.75rem;
}

.app-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #91acd6;
  font-size: 0.72rem;
}

.app-legal-links a,
.app-legal-links .link-button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0;
  color: #c9e0ff;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.app-legal-links a:focus-visible,
.app-legal-links .link-button:focus-visible {
  outline: 2px solid rgba(108, 186, 255, 0.95);
  outline-offset: 3px;
  border-radius: 6px;
}

.map-legal-links {
  padding: 6px 4px 1px;
}

.venue-legal-links {
  margin-top: -3px;
}

.card-action {
  width: 82px;
}

.venue-page .venue-shell {
  width: 100%;
  max-width: min(404px, 100vw);
  padding-right: max(10px, calc(10px + var(--safe-right)));
  padding-left: max(10px, calc(10px + var(--safe-left)));
}

.venue-card-block {
  padding: 10px;
  gap: 8px;
  border-radius: 12px;
}

.venue-card-block--events {
  margin-top: 0;
}

.venue-event-filters {
  gap: 6px;
}

.venue-filter-chip {
  min-height: 32px;
}

.venue-event-list {
  gap: 6px;
}

.event-row {
  padding: 9px;
  gap: 8px;
}

.venue-card-block--details {
  padding: 8px 9px;
}

.venue-details-collapse[open] {
  gap: 9px;
}

.venue-tag-strip,
.venue-tag-list {
  display: none !important;
}

/* Admin submissions review page (standalone ops console) */
.admin-portal-page {
  margin: 0;
  min-height: 100svh;
  color: #0f2342;
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf1fb 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-portal {
  width: min(980px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--safe-top, 0px) + 18px) max(14px, calc(14px + var(--safe-right, 0px)))
    calc(var(--safe-bottom, 0px) + 18px) max(14px, calc(14px + var(--safe-left, 0px)));
  display: grid;
  gap: 14px;
}

.admin-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-portal-brand {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.admin-portal-brand span {
  color: #46628f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-portal-brand strong {
  color: #0d2444;
  font-size: 1.18rem;
}

.admin-portal-chip {
  border: 1px solid #a7bde2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2f4f82;
  background: #f4f8ff;
}

.admin-portal-panel {
  border: 1px solid #c7d6ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 40, 75, 0.08);
  padding: 14px;
  display: grid;
  gap: 11px;
}

.admin-panel-head h1 {
  margin: 0 0 4px;
  font-size: 1.22rem;
  line-height: 1.18;
  color: #112b4f;
}

.admin-panel-head p {
  margin: 0;
  color: #4d6b97;
  font-size: 0.85rem;
  line-height: 1.35;
}

.admin-portal-note {
  margin: -3px 0 0;
  color: #5878a7;
  font-size: 0.74rem;
}

.admin-portal-page .submit-status {
  border: 1px solid #c6d7ee;
  border-radius: 12px;
  background: #f6faff;
  padding: 10px;
}

.admin-portal-page .submit-status strong {
  color: #103463;
}

.admin-portal-page .submit-status span {
  color: #3f608f;
}

.admin-portal-page .submit-status.is-error {
  border-color: #e2a7af;
  background: #fff4f5;
}

.admin-portal-page .submit-status.is-success {
  border-color: #9cd2b5;
  background: #effaf4;
}

.admin-auth-card {
  border: 1px solid #d2deef;
  border-radius: 13px;
  background: #f9fbff;
  padding: 11px;
  display: grid;
  gap: 8px;
}

.admin-auth-title {
  margin: 0;
  font-size: 0.85rem;
  color: #1c3f70;
  font-weight: 700;
}

.admin-auth-form {
  gap: 8px;
}

.admin-portal-page .submit-field span {
  color: #355786;
  font-size: 0.74rem;
}

.admin-portal-page .submit-field input,
.admin-portal-page .submit-field textarea,
.admin-portal-page .submit-field select {
  border: 1px solid #c9d9ef;
  background: #ffffff;
  color: #112d53;
  border-radius: 10px;
}

.admin-portal-page .filter-select {
  background: #ffffff;
  color: #112d53;
  border-color: #c9d9ef;
}

.admin-portal-page .btn {
  min-height: 38px;
  border-radius: 10px;
  font-size: 0.75rem;
  padding: 0 10px;
}

.admin-portal-page .btn-primary {
  color: #ffffff;
  border-color: #2f87e8;
  background: linear-gradient(135deg, #4caeff, #2a7ad8);
}

.admin-portal-page .btn-secondary {
  color: #193f6f;
  border-color: #b8cae4;
  background: #f1f6ff;
}

.admin-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-ops-panel {
  display: grid;
  gap: 10px;
}

.admin-ops-card {
  border: 1px solid #d2deef;
  border-radius: 13px;
  background: #f9fbff;
  padding: 11px;
  display: grid;
  gap: 10px;
}

.admin-ops-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-ops-head strong {
  display: block;
  color: #163b69;
  font-size: 0.86rem;
}

.admin-ops-head p {
  margin: 4px 0 0;
  color: #5a7aa7;
  font-size: 0.75rem;
  line-height: 1.4;
}

.admin-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-ops-actions .btn {
  min-width: 132px;
}

.admin-session-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #486a99;
  line-height: 1.32;
  word-break: break-word;
}

.admin-queue-controls {
  display: grid;
  gap: 8px;
}

.admin-queue-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-summary-card {
  border: 1px solid #d1deef;
  border-radius: 11px;
  background: #f8fbff;
  padding: 8px;
  display: grid;
  gap: 2px;
}

.admin-summary-card span {
  color: #5a7aa7;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-summary-card strong {
  color: #163b69;
  font-size: 0.9rem;
  line-height: 1;
}

.admin-summary-card--total {
  border-color: #aac8ed;
}

.admin-queue {
  display: grid;
  gap: 10px;
}

.admin-empty {
  margin: 0;
  color: #5b7da9;
  font-size: 0.79rem;
  border: 1px dashed #bfd1e8;
  border-radius: 11px;
  padding: 10px;
  text-align: center;
  background: #f9fbff;
}

.admin-submission-card {
  border: 1px solid #d2deef;
  border-radius: 13px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 9px;
}

.admin-submission-card.is-highlighted {
  border-color: #5cb6ff;
  box-shadow: 0 0 0 2px rgba(92, 182, 255, 0.25);
}

.admin-submission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.admin-submission-head strong {
  display: block;
  color: #0f2d54;
  font-size: 0.92rem;
  line-height: 1.22;
}

.admin-submission-head span {
  color: #5a79a5;
  font-size: 0.75rem;
}

.admin-status-pill {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid #bad0eb;
  white-space: nowrap;
}

.admin-status-pill.status-pending {
  color: #345b8f;
  background: #edf4ff;
}

.admin-status-pill.status-pending_review {
  color: #345b8f;
  background: #edf4ff;
}

.admin-status-pill.status-reviewed {
  color: #1f6180;
  background: #e8f6ff;
}

.admin-status-pill.status-approved {
  color: #24734c;
  border-color: #a9ddc3;
  background: #ecf9f2;
}

.admin-status-pill.status-rejected {
  color: #943d4a;
  border-color: #e6b8bf;
  background: #fff2f4;
}

.admin-status-pill.status-hidden {
  color: #7b4968;
  border-color: #d8bfd1;
  background: #faf1f7;
}

.admin-status-pill.status-cancelled {
  color: #7a4e2a;
  border-color: #e4ccb2;
  background: #fff6ee;
}

.admin-submission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 9px;
}

.admin-submission-grid p {
  margin: 0;
  color: #1a3c69;
  font-size: 0.75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-submission-grid p span {
  display: block;
  color: #5778a6;
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 1px;
}

.admin-submission-grid p a {
  color: #1d73cd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-submission-grid code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.69rem;
  color: #2e4f7d;
}

.admin-submission-grid-full {
  grid-column: 1 / -1;
}

.admin-submission-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.admin-submission-actions .btn {
  min-height: 37px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-reject-button {
  border-color: #e0b5bf;
  color: #8f3d4a;
  background: #fff2f4;
}

@media (max-width: 720px) {
  .admin-portal {
    width: min(500px, 100%);
  }
}

@media (max-width: 420px) {
  .admin-ops-head {
    flex-direction: column;
  }

  .admin-ops-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-ops-actions .btn {
    width: 100%;
  }

  .admin-queue-control-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-summary-card--total {
    grid-column: span 3;
  }
}

/* Choice page styles */
.submit-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.submit-choice-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.submit-choice-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.submit-choice-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.submit-choice-card h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.submit-choice-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.submit-choice-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.submit-choice-features span {
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
}

/* Ryan-inspired fan app shell: artist-first list + separate Mapbox view. */
body.map-page {
  --retro-base: #0b0b0f;
  --retro-surface: #16131d;
  --retro-surface-2: #1f1a2b;
  --retro-magenta: #ff2e92;
  --retro-cyan: #22e0ff;
  --retro-amber: #ffb23e;
  --retro-green: #3dff7c;
  --retro-ink: #f4efe9;
  --retro-mute: #9a93a6;
  --retro-mute-2: #5d5768;
  --retro-line: #2a2435;
  --bg: var(--retro-base);
  --bg-2: #111019;
  --panel: var(--retro-surface);
  --panel-soft: var(--retro-surface-2);
  --text: var(--retro-ink);
  --muted: var(--retro-mute);
  --accent: var(--retro-magenta);
  --accent-2: var(--retro-cyan);
  --border: var(--retro-line);
  --card: var(--retro-surface);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 46, 146, 0.16), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(34, 224, 255, 0.14), transparent 32%),
    #050507;
  color: var(--retro-ink);
  font-family: "Avenir Next", "Inter", "Segoe UI", sans-serif;
}

body.map-page::before,
body.map-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.map-page::before {
  z-index: 90;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  opacity: 0.45;
}

body.map-page::after {
  z-index: 91;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.map-page .app-shell {
  position: relative;
  z-index: 1;
  max-width: min(460px, 100vw);
  min-height: var(--map-stable-height);
  height: var(--map-stable-height);
  padding: max(18px, calc(var(--safe-top-active) + 14px)) max(12px, calc(12px + var(--safe-right)))
    calc(74px + var(--safe-bottom-active)) max(12px, calc(12px + var(--safe-left)));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(11, 11, 15, 0.96), rgba(11, 11, 15, 0.98)),
    radial-gradient(circle at 30% 12%, rgba(255, 46, 146, 0.1), transparent 32%);
  overflow: hidden;
  transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.map-page.intro-active .app-shell {
  filter: blur(9px);
  opacity: 0.38;
  transform: scale(0.985);
}

.app-intro {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: max(28px, calc(var(--safe-top-active) + 28px)) 24px max(36px, calc(var(--safe-bottom-active) + 34px));
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 46, 146, 0.18), transparent 32%),
    radial-gradient(circle at 76% 78%, rgba(34, 224, 255, 0.14), transparent 34%),
    var(--retro-base);
  color: var(--retro-ink);
  text-align: center;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
}

.app-intro[hidden] {
  display: none;
}

body.map-page:not(.intro-active) .app-intro,
.app-intro.app-intro-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.app-intro-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--retro-green);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(61, 255, 124, 0.6);
}

.app-intro-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--retro-green);
  box-shadow: 0 0 14px var(--retro-green);
  animation: appIntroBlink 1.2s ease-in-out infinite;
}

.app-intro-mark {
  display: grid;
  gap: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.app-intro-mark span:first-child {
  font-size: clamp(2.7rem, 15vw, 4.4rem);
}

.app-intro-mark span:last-child {
  font-size: clamp(3.8rem, 20vw, 6.4rem);
  text-shadow: 3px 0 var(--retro-magenta), -3px 0 var(--retro-cyan);
}

.app-intro-copy {
  max-width: 270px;
  color: var(--retro-mute);
  font-size: 0.95rem;
  line-height: 1.45;
}

.app-intro-hint {
  position: absolute;
  right: 24px;
  bottom: max(32px, calc(var(--safe-bottom-active) + 28px));
  left: 24px;
  color: var(--retro-mute-2);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@keyframes appIntroBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.28;
  }
}

.map-page .map-panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 30% 25%, #1a1626, transparent 45%),
    radial-gradient(circle at 70% 70%, #161b26, transparent 45%),
    var(--retro-base);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.map-page.view-map .map-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.map-page #map {
  height: 100%;
  border-radius: 0;
}

.map-page #map .mapboxgl-ctrl-top-left {
  top: max(92px, calc(var(--safe-top-active) + 76px));
  left: 12px;
}

.map-page #map .mapboxgl-popup-content {
  color: var(--retro-ink);
  background: rgba(22, 19, 29, 0.96);
  border: 1px solid var(--retro-magenta);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.map-page #map .mapboxgl-popup-content a {
  color: var(--retro-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.map-page #map .mapboxgl-popup-tip {
  border-top-color: var(--retro-magenta);
}

.map-page .floating-search {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 22;
  display: block;
  margin: 0;
  pointer-events: auto;
}

.map-page.view-map .floating-search {
  position: absolute;
  top: max(18px, calc(var(--safe-top-active) + 14px));
  right: max(12px, calc(12px + var(--safe-right)));
  left: max(12px, calc(12px + var(--safe-left)));
  pointer-events: none;
}

.map-page .search-row,
.map-page .filter-panel {
  pointer-events: auto;
}

.map-page .search-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px;
  border-color: rgba(34, 224, 255, 0.28);
  border-radius: 999px;
  background: rgba(22, 19, 29, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.map-page .search-input {
  min-height: 40px;
  border-color: transparent;
  border-radius: 999px;
  background: rgba(11, 11, 15, 0.72);
  color: var(--retro-ink);
  font-size: 16px;
}

.map-page .search-input::placeholder {
  color: var(--retro-mute);
}

.map-page .search-input:focus {
  outline: 2px solid rgba(34, 224, 255, 0.8);
  outline-offset: 1px;
}

.map-page .btn,
.map-page .card-action,
.map-page .view-toggle-button {
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-page .btn,
.map-page .card-action {
  border-color: var(--retro-line);
  background: var(--retro-surface-2);
  color: var(--retro-ink);
}

.map-page .btn:hover,
.map-page .card-action:hover {
  border-color: var(--retro-cyan);
}

.map-page #toggleFiltersButton,
.map-page .filter-time-button.active,
.map-page .list-saved-link.active,
.map-page .card-action.active {
  border-color: var(--retro-cyan);
  background: rgba(34, 224, 255, 0.13);
  color: var(--retro-cyan);
}

.map-page .filter-backdrop {
  position: absolute;
  inset: 0;
  z-index: 19;
  background: rgba(5, 5, 7, 0.68);
}

.map-page .filter-panel {
  z-index: 24;
  border-color: rgba(255, 46, 146, 0.34);
  border-radius: 20px;
  background: rgba(22, 19, 29, 0.98);
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: none;
  padding: 10px;
  overflow: hidden;
}

.map-page .filter-panel-head {
  align-items: center;
  margin-bottom: 8px;
}

.map-page .filter-close {
  flex: 0 0 auto;
  width: auto;
  min-width: 62px;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 12px;
}

.map-page .filter-panel-section {
  padding: 0;
  border: 0;
  background: transparent;
}

.map-page .filter-panel-head h2,
.map-page .filter-section-title {
  color: var(--retro-ink);
  text-transform: uppercase;
}

.map-page .filter-panel-head h2 {
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.map-page .filter-section-title {
  display: none;
}

.map-page .filter-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
  padding: 1px 1px 3px;
}

.map-page .filter-time-grid .filter-time-button:nth-child(5) {
  grid-column: auto;
}

.map-page .filter-time-button {
  flex: 1 1 calc(50% - 7px);
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.68rem;
}

.map-page .filter-panel-subtitle,
.map-page .filter-panel-results {
  display: none;
}

.map-page .list-panel {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.map-page.view-map .list-panel {
  display: none;
}

.map-page .list-sheet-handle {
  display: none;
}

.map-page .list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 4px 4px 2px;
}

.map-page .list-header-copy {
  gap: 6px;
}

.map-page .list-eyebrow {
  color: var(--retro-green);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-shadow: 0 0 10px rgba(61, 255, 124, 0.45);
}

.map-page .list-header h2 {
  color: var(--retro-ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 12vw, 3.2rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 2px 0 var(--retro-magenta), -2px 0 var(--retro-cyan);
}

.map-page .list-subtitle {
  max-width: 28rem;
  color: var(--retro-mute);
  font-size: 0.86rem;
  line-height: 1.35;
}

.map-page .list-header-actions {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-page .list-header-meta {
  display: none;
}

.map-page #countLabel {
  min-width: auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 46, 146, 0.38);
  border-radius: 999px;
  color: var(--retro-magenta);
  background: rgba(255, 46, 146, 0.08);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-page #dataUpdatedLabel {
  color: var(--retro-mute-2);
}

.map-page .venue-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  padding: 10px 2px 14px;
  scrollbar-width: none;
}

.map-page .venue-list::-webkit-scrollbar {
  display: none;
}

.map-page .venue-card {
  position: relative;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 12px;
  padding: 13px;
  border-color: var(--retro-line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 46, 146, 0.08), transparent 42%),
    var(--retro-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  cursor: default;
  overflow: hidden;
}

.map-page .venue-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--retro-magenta), var(--retro-cyan));
}

.map-page .venue-card:hover {
  border-color: var(--retro-line);
  background:
    linear-gradient(135deg, rgba(255, 46, 146, 0.08), transparent 42%),
    var(--retro-surface);
}

.map-page .venue-main {
  min-width: 0;
  gap: 6px;
  padding-left: 4px;
}

.map-page .show-artist-primary {
  color: var(--retro-ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.map-page .show-title {
  color: var(--retro-magenta);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-page .show-meta {
  color: var(--retro-cyan);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-page .show-venue {
  margin-top: 2px;
}

.map-page .show-venue-name {
  color: var(--retro-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.map-page .show-venue-neighborhood,
.map-page .venue-count {
  color: var(--retro-mute);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-page .venue-actions {
  justify-content: center;
  gap: 7px;
}

.map-page .card-action {
  width: 76px;
  min-height: 31px;
  border-radius: 9px;
  font-size: 0.62rem;
}

.map-page .empty-state {
  border-color: var(--retro-line);
  border-radius: 16px;
  background: var(--retro-surface);
}

.map-page .empty-state strong {
  color: var(--retro-ink);
  text-transform: uppercase;
}

.map-page .empty-state span {
  color: var(--retro-mute);
}

.map-page .map-legal-links {
  flex: 0 0 auto;
  padding: 8px 0 0;
  color: var(--retro-mute-2);
}

.view-toggle-nav {
  position: absolute;
  left: 50%;
  bottom: max(12px, calc(var(--safe-bottom-active) + 12px));
  z-index: 80;
  display: flex;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--retro-line);
  border-radius: 999px;
  background: rgba(22, 19, 29, 0.96);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.58);
  transform: translateX(-50%);
}

.view-toggle-button {
  min-width: 92px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--retro-mute);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.view-toggle-button.active {
  background: var(--retro-ink);
  color: var(--retro-base);
}

.view-toggle-button:focus-visible {
  outline: 2px solid var(--retro-cyan);
  outline-offset: 2px;
}

@media (min-width: 521px) {
  .map-page .app-shell {
    border-right: 1px solid #1c1826;
    border-left: 1px solid #1c1826;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  }
}

@media (max-width: 390px) {
  .map-page .app-shell {
    padding-right: max(10px, calc(10px + var(--safe-right)));
    padding-left: max(10px, calc(10px + var(--safe-left)));
  }

  .map-page .list-header h2 {
    font-size: 2.15rem;
  }

  .map-page .venue-card {
    padding: 11px;
  }

  .map-page .show-artist-primary {
    font-size: 1.18rem;
  }

  .map-page .card-action {
    width: 70px;
  }
}

/* Simpler top bar: no search field, just context + date filter. */
.map-page .map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px 9px 14px;
}

.map-topbar-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.map-topbar-title {
  color: var(--retro-ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-shadow: 1px 0 var(--retro-magenta), -1px 0 var(--retro-cyan);
}

.map-topbar-subtitle {
  color: var(--retro-mute);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-page .map-topbar #toggleFiltersButton {
  flex: 0 0 auto;
  min-width: 104px;
}

/* Venue page: music-first, no data grid. */
body.venue-page {
  --retro-base: #0b0b0f;
  --retro-surface: #16131d;
  --retro-surface-2: #1f1a2b;
  --retro-magenta: #ff2e92;
  --retro-cyan: #22e0ff;
  --retro-amber: #ffb23e;
  --retro-ink: #f4efe9;
  --retro-mute: #9a93a6;
  --retro-line: #2a2435;
  --bg: var(--retro-base);
  --panel: var(--retro-surface);
  --text: var(--retro-ink);
  --muted: var(--retro-mute);
  --accent: var(--retro-magenta);
  --accent-2: var(--retro-cyan);
  --border: var(--retro-line);
  --card: var(--retro-surface);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 46, 146, 0.15), transparent 30%),
    radial-gradient(circle at 80% 36%, rgba(34, 224, 255, 0.12), transparent 34%),
    var(--retro-base);
  color: var(--retro-ink);
}

body.venue-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
  opacity: 0.42;
}

.venue-page .venue-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(404px, 100vw);
  gap: 12px;
  padding-top: max(18px, calc(var(--safe-top-active) + 14px));
}

.venue-page .venue-back {
  color: var(--retro-mute);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-page .venue-hero {
  border: 1px solid rgba(255, 46, 146, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 46, 146, 0.13), rgba(34, 224, 255, 0.06)),
    var(--retro-surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.venue-page .venue-hero-overlay {
  padding: 18px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.15), rgba(11, 11, 15, 0.82));
}

.venue-page .venue-kicker {
  color: var(--retro-green, #3dff7c);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
}

.venue-page .venue-hero-overlay h1 {
  color: var(--retro-ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 12vw, 3.25rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 2px 0 var(--retro-magenta), -2px 0 var(--retro-cyan);
}

.venue-page .venue-neighborhood {
  border-color: rgba(34, 224, 255, 0.42);
  background: rgba(34, 224, 255, 0.08);
  color: var(--retro-cyan);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-page .venue-description {
  color: #cfc9d6;
  font-size: 0.86rem;
}

.venue-page .venue-actions-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.venue-page .venue-actions-row:not(.has-website) #venueDirectionsButton {
  grid-column: 1 / -1;
}

.venue-page .venue-actions-row .btn {
  height: 42px;
  min-height: 42px;
  border-radius: 999px;
  border-color: var(--retro-line);
  background: var(--retro-surface-2);
  color: var(--retro-ink);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.venue-page .venue-actions-row .btn-primary {
  border-color: var(--retro-cyan);
  background: rgba(34, 224, 255, 0.13);
  color: var(--retro-cyan);
}

.venue-page .venue-card-block {
  border-color: var(--retro-line);
  border-radius: 18px;
  background: rgba(22, 19, 29, 0.9);
  padding: 12px;
}

.venue-page .venue-card-head h2 {
  color: var(--retro-ink);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.venue-page .venue-event-filters {
  display: none;
}

.venue-page .venue-filter-chip {
  flex: 1;
  min-height: 34px;
  border-color: var(--retro-line);
  background: var(--retro-surface-2);
  color: var(--retro-mute);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-page .venue-filter-chip.active {
  border-color: var(--retro-cyan);
  background: rgba(34, 224, 255, 0.13);
  color: var(--retro-cyan);
}

.venue-page .event-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-width: 0 0 1px;
  border-color: rgba(42, 36, 53, 0.96);
  border-radius: 0;
  background: transparent;
  padding: 12px 2px;
}

.venue-page .event-row:last-child {
  border-bottom: 0;
}

.venue-page .event-date-badge {
  display: none;
}

.venue-page .event-title {
  color: var(--retro-ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.venue-page .event-subtitle {
  color: var(--retro-cyan);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.venue-page .event-ticket-link {
  border-color: var(--retro-magenta);
  border-radius: 999px;
  background: rgba(255, 46, 146, 0.1);
  color: var(--retro-magenta);
  font-family: "SF Mono", "DM Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-page .venue-legal-links {
  margin: 0;
  padding: 4px 0 0;
  color: rgba(154, 147, 166, 0.75);
}

/* Tiiny ultra bundle: hide links that require removed secondary pages. */
.map-legal-links, .venue-card-actions button:nth-child(2), .event-card-actions button:nth-child(2), [data-action="details"], .js-details-button { display: none !important; }

.open-detail { display: none !important; }
