:root {
  color-scheme: dark;
  --bg: #020408;
  --ink: #f7f9ff;
  --muted: #aab5c5;
  --panel: rgba(3, 7, 12, 0.9);
  --panel-strong: rgba(3, 7, 12, 0.97);
  --line: rgba(0, 229, 255, 0.36);
  --line-cool: rgba(22, 119, 255, 0.34);
  --line-hot: rgba(255, 154, 23, 0.45);
  --accent: #00e5ff;
  --accent-2: #ff9a17;
  --danger: #ff2d2d;
  --blue: #1677ff;
  --yellow: #ffd21e;
  --cut: 18px;
  --dock: 10px;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.72);
  --surface-shadow:
    drop-shadow(8px 10px 0 rgba(1, 5, 8, 0.46))
    drop-shadow(14px 22px 18px rgba(0, 0, 0, 0.72));
  --shine: rgba(255, 255, 255, 0.18);
  --font-display: "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Critical Leaflet layout rules are local so map tiles remain aligned even if
   the external Leaflet stylesheet is slow, cached oddly, or blocked. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-container {
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.leaflet-container .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  padding: 0;
}

.leaflet-container img.leaflet-tile {
  mix-blend-mode: plus-lighter;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  border: 0;
  filter: inherit;
  visibility: hidden;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.map-tint-overlay {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 250;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(1, 5, 8, 0.4) 0%,
    rgba(1, 5, 8, 0.24) 10%,
    rgba(1, 5, 8, 0.08) 22%,
    transparent 34%
  );
  will-change: transform;
}

.leaflet-container[data-map-layer="street"] .map-tint-overlay {
  background: linear-gradient(
    180deg,
    rgba(1, 5, 8, 0.44) 0%,
    rgba(1, 5, 8, 0.28) 9%,
    rgba(1, 5, 8, 0.12) 19%,
    rgba(1, 5, 8, 0.035) 27%,
    transparent 36%
  );
}

.leaflet-container[data-map-layer="imagery"] .map-tint-overlay {
  background: linear-gradient(
    180deg,
    rgba(1, 5, 8, 0.22) 0%,
    rgba(1, 5, 8, 0.1) 10%,
    rgba(1, 5, 8, 0.025) 17%,
    transparent 25%
  );
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-map-pane svg {
  z-index: 200;
}

.leaflet-zoom-animated {
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}

svg.leaflet-zoom-animated {
  will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}

.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
  -webkit-transition: none;
  transition: none;
}

.leaflet-zoom-anim .leaflet-zoom-hide {
  visibility: hidden;
}

.leaflet-interactive {
  cursor: pointer;
  pointer-events: auto;
}

.leaflet-interactive:focus,
.leaflet-overlay-pane svg path:focus {
  outline: none;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}

* {
  box-sizing: border-box;
}

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

html,
body,
.app-shell,
.map {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

button {
  font-family: var(--font-display);
  font-stretch: condensed;
}

input,
select {
  font: inherit;
}

h1,
h2,
h3,
.panel-kicker,
.field > span,
.field-group legend,
.legend,
.event-table-sort,
.popup-title,
.tooltip-label,
.detail-grid > div > span {
  font-family: var(--font-display);
  font-stretch: condensed;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  overflow: hidden;
}

.map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 52% 48%, rgba(0, 229, 255, 0.08), transparent 42%),
    #05090f;
}

.top-bar {
  position: absolute;
  z-index: 5;
  top: var(--dock);
  left: 0;
  right: auto;
  width: min(440px, calc(100vw - 10px));
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 10px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: min(420px, calc(100vw - 24px));
  height: auto;
  max-height: none;
  filter:
    drop-shadow(0 2px 1px rgba(0, 0, 0, 0.9))
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.58));
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 210, 30, 0.45);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 1.72rem);
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(0, 229, 255, 0.26),
    1px 0 0 rgba(255, 45, 45, 0.34);
}

h2 {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0;
}

.panel-actions {
  position: fixed;
  top: 12px;
  right: 10px;
  z-index: 6;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-button,
.close-button,
.primary-button {
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.2), transparent 36%),
    rgba(2, 5, 9, 0.82);
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 18px rgba(0, 229, 255, 0.12);
}

.icon-button:hover,
.close-button:hover {
  border-color: var(--accent);
  color: #05070a;
  background: linear-gradient(90deg, var(--accent), #8ff5ff);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.38);
}

.quick-filter-toggle {
  position: relative;
  border-color: rgba(255, 210, 30, 0.78);
  color: #081014;
  background:
    linear-gradient(105deg, var(--yellow), #ff9a17 72%, #ffcf1c);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(255, 210, 30, 0.34);
}

.quick-filter-toggle:hover {
  color: #05070a;
  background: linear-gradient(90deg, #fff27a, var(--yellow));
}

.quick-filter-toggle.has-active-filter::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 7px;
  height: 7px;
  border: 2px solid #071216;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.filters-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.filter-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 1px solid rgba(255, 210, 30, 0.75);
  color: #071216;
  background: var(--yellow);
  font-size: 0.68rem;
  line-height: 1;
  box-shadow: 0 0 10px rgba(255, 210, 30, 0.32);
}

.filters-toggle.has-active-filters {
  border-color: rgba(255, 210, 30, 0.56);
}

.primary-button {
  width: 100%;
  min-height: 34px;
  margin-top: 5px;
  padding: 7px 10px;
  color: var(--yellow);
  border-color: rgba(255, 154, 23, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 154, 23, 0.18), rgba(0, 229, 255, 0.1)),
    rgba(5, 8, 10, 0.78);
  font-weight: 950;
}

.primary-button:hover {
  color: #050709;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent-2), var(--yellow));
}

.panel,
.detail-panel,
.legend {
  position: absolute;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.18), transparent 2px),
    linear-gradient(145deg, rgba(0, 229, 255, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(255, 45, 45, 0.12), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 11px),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.surface-shadow-stack {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  filter:
    drop-shadow(0 6px 7px rgba(0, 0, 0, 0.62))
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.42));
}

.surface-shadow-stack[hidden] {
  display: none;
}

.surface-cast-shadow {
  position: absolute;
  inset: 0;
  display: block;
  background: #000;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.panel::before,
.detail-panel::before,
.legend::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, var(--shine), transparent 14%),
    radial-gradient(circle at 10% 0%, rgba(0, 229, 255, 0.18), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(255, 154, 23, 0.16), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.panel::after,
.detail-panel::after,
.legend::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -18px 36px rgba(0, 0, 0, 0.34),
    inset 0 0 20px rgba(0, 229, 255, 0.08);
}

.panel {
  overflow: hidden;
}

.panel-left:not(.is-hidden) {
  animation: panelSlideFromLeft 180ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.panel-left.is-filter-attention {
  border-color: rgba(255, 210, 30, 0.82);
  box-shadow: var(--shadow), 0 0 0 2px rgba(255, 210, 30, 0.2), 0 0 30px rgba(255, 210, 30, 0.28);
}

.panel-right:not(.is-hidden),
.calendar-panel:not(.is-hidden),
.venue-detail-panel {
  animation: panelSlideFromRight 190ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.detail-panel:not(.empty):not(.venue-detail-panel) {
  animation: panelLiftIn 170ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.panel-left {
  top: 150px;
  left: 0;
  width: min(350px, calc(100vw - 18px));
  max-height: calc(100vh - 160px - var(--legend-clearance, 0px));
  padding: 8px 10px 10px 16px;
  overflow-y: auto;
}

.panel-right {
  top: 70px;
  right: 0;
  width: min(820px, calc(100vw - 372px));
  max-height: calc(100vh - 88px);
  padding: 14px;
  overflow-y: auto;
}

.about-panel {
  width: min(480px, calc(100vw - 372px));
}

.quick-filter-panel {
  width: min(430px, calc(100vw - 372px));
}

.quick-filter-intro {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
  text-transform: none;
}

.quick-filter-options {
  display: grid;
  gap: 8px;
}

.quick-filter-option {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  min-height: 70px;
  padding: 9px 11px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.1), transparent 45%),
    rgba(0, 0, 0, 0.34);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.quick-filter-option:hover,
.quick-filter-option.is-active,
.quick-filter-nearby.is-active {
  border-color: var(--yellow);
  background:
    linear-gradient(90deg, rgba(255, 210, 30, 0.2), rgba(0, 229, 255, 0.11)),
    rgba(0, 0, 0, 0.45);
  box-shadow: inset 4px 0 0 var(--yellow), 0 0 16px rgba(255, 210, 30, 0.12);
}

.quick-filter-option:disabled {
  cursor: wait;
  opacity: 0.62;
}

.quick-filter-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid rgba(255, 210, 30, 0.5);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  background: rgba(255, 210, 30, 0.07);
}

.quick-filter-option[data-quick-filter="30days"] .quick-filter-icon,
.quick-filter-nearby .quick-filter-icon {
  font-size: 1.4rem;
}

.quick-filter-option strong,
.quick-filter-option-copy strong {
  align-self: end;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
}

.quick-filter-option small,
.quick-filter-option-copy small {
  align-self: start;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-transform: none;
}

.quick-filter-nearby {
  display: grid;
  gap: 9px;
  padding: 9px 11px 11px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.1), transparent 45%),
    rgba(0, 0, 0, 0.34);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.quick-filter-nearby-heading {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.quick-filter-nearby-heading .quick-filter-icon {
  grid-row: auto;
}

.quick-filter-option-copy {
  display: grid;
  gap: 2px;
}

.quick-filter-option-copy strong,
.quick-filter-option-copy small {
  align-self: auto;
}

.nearby-radius-picker {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.nearby-radius-picker legend {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nearby-radius-picker > div {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.nearby-radius-picker button {
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nearby-radius-picker button:hover,
.nearby-radius-picker button.is-active {
  border-color: var(--yellow);
  color: #071216;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 210, 30, 0.2);
}

.nearby-find-button {
  min-height: 38px;
  margin-left: 73px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #071216;
  background: linear-gradient(90deg, var(--accent), #8ff5ff);
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.nearby-find-button:disabled,
.nearby-radius-picker button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.quick-filter-status {
  margin-top: 11px;
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  background: rgba(0, 229, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.quick-filter-status > span {
  display: block;
}

.quick-filter-expand {
  min-height: 34px;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid var(--yellow);
  color: #071216;
  background: var(--yellow);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quick-filter-status.is-error {
  border-left-color: var(--accent-2);
  background: rgba(255, 154, 23, 0.08);
}

.quick-filter-clear {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid rgba(255, 210, 30, 0.42);
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.42);
  font-weight: 900;
  text-transform: uppercase;
}

.quick-filter-privacy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-transform: none;
}

.about-content {
  display: grid;
  gap: 14px;
}

.about-lead {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.42;
}

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

.about-stats div,
.about-section {
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 0, 0, 0.24);
}

.about-stats div {
  display: grid;
  gap: 2px;
  padding: 10px;
}

.about-stats strong {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.about-stats span,
.about-updated,
.copy-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.about-section {
  padding: 12px;
}

.about-section h3 {
  margin-bottom: 5px;
  color: var(--accent);
  text-transform: uppercase;
}

.about-section p,
.about-updated {
  margin: 0;
  line-height: 1.45;
}

.about-section.trust-note {
  border-color: rgba(255, 210, 30, 0.42);
  background: rgba(255, 210, 30, 0.075);
}

.about-copy-button {
  margin-top: 10px;
}

.copy-status {
  min-height: 1.2em;
  margin-top: 7px !important;
  color: var(--yellow) !important;
}

.panel-bottom {
  left: 360px;
  right: 438px;
  bottom: 0;
  min-height: 118px;
  padding: 14px;
}

.calendar-panel {
  z-index: 5;
  top: 68px;
  right: 0;
  width: min(900px, calc(100vw - 372px));
  max-height: calc(100vh - 76px);
  padding: 14px;
  overflow-y: auto;
}

.series-calendar-panel {
  z-index: 5;
  top: 68px;
  right: 0;
  width: min(570px, calc(100vw - 372px));
  max-height: calc(100vh - 76px);
  padding: 16px;
  overflow-y: auto;
}

.series-calendar-heading h2 {
  max-width: 440px;
  color: var(--accent);
  font-size: 1.22rem;
  text-transform: uppercase;
}

.panel-kicker {
  margin: 0 0 3px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.series-calendar-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.series-calendar-section-label,
.series-completed-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.series-calendar-section-label {
  padding: 2px 3px 0;
}

.series-calendar-section-label b,
.series-completed-disclosure > summary b {
  min-width: 28px;
  padding: 3px 8px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.36);
  text-align: center;
}

.series-calendar-empty {
  margin: 2px 0 4px;
  padding: 12px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 210, 30, 0.06);
}

.series-completed-disclosure {
  margin-top: 4px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(0, 0, 0, 0.24);
}

.series-completed-disclosure > summary {
  min-height: 42px;
  padding: 8px 10px 8px 14px;
  cursor: pointer;
  list-style: none;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.11), transparent 52%),
    rgba(255, 255, 255, 0.025);
}

.series-completed-disclosure > summary::-webkit-details-marker {
  display: none;
}

.series-completed-disclosure > summary span::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--yellow);
}

.series-completed-disclosure[open] > summary span::before {
  content: "-";
}

.series-completed-list {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid rgba(0, 229, 255, 0.16);
}

.series-calendar-card.is-completed {
  opacity: 0.58;
}

.series-calendar-card.is-completed::after {
  content: "Completed";
  justify-self: end;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
  padding-bottom: 6px;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-filter-button {
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 210, 30, 0.42);
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.clear-filter-button:hover {
  border-color: var(--yellow);
  color: #071216;
  background: var(--yellow);
}

.close-button {
  min-height: 26px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.field,
.field-group {
  display: grid;
  gap: 4px;
  margin: 0 0 7px;
}

.field span,
.field-group legend {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.field-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
}

.field-label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.search-field {
  position: relative;
  z-index: 8;
}

.search-combobox {
  position: relative;
}

.search-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: min(390px, 52vh);
  overflow-y: auto;
  border: 1px solid rgba(0, 229, 255, 0.52);
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.1), transparent 28%),
    rgba(2, 6, 10, 0.98);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.72), 0 0 20px rgba(0, 229, 255, 0.13);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.search-suggestion {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestion:hover,
.search-suggestion.is-active {
  background:
    linear-gradient(90deg, rgba(255, 210, 30, 0.17), rgba(0, 229, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.search-suggestion-type {
  padding: 4px 3px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  color: var(--accent);
  font-size: 0.59rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.search-suggestion-type.is-series {
  color: var(--yellow);
  border-color: rgba(255, 210, 30, 0.42);
}

.search-suggestion-type.is-event {
  color: #ffb253;
  border-color: rgba(255, 154, 23, 0.42);
}

.search-suggestion-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-suggestion-copy strong,
.search-suggestion-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-copy strong {
  color: var(--ink);
  font-size: 0.83rem;
  text-transform: none;
}

.search-suggestion-copy small {
  color: var(--muted);
  font-size: 0.69rem;
  text-transform: none;
}

.search-suggestion mark {
  color: #071216;
  background: var(--yellow);
}

.search-suggestion-empty {
  margin: 0;
  padding: 12px 10px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: none;
}

.field input,
.field select {
  width: 100%;
  min-height: 32px;
  color: var(--ink);
  border: 1px solid rgba(10, 132, 255, 0.28);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.12), transparent 30%),
    rgba(0, 0, 0, 0.55);
  padding: 6px 9px;
  font-size: 0.84rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(0, 229, 255, 0.36);
  border-color: var(--accent);
}

.field select option {
  color: #111;
}

.field select optgroup {
  color: #071216;
  background: #dce5e7;
  font-weight: 900;
}

.field select option.major-series-option {
  color: #00171d;
  background: #94edf7;
  font-weight: 900;
}

.field-group {
  padding: 0;
  border: 0;
}

.status-disclosure {
  border-top: 1px solid rgba(0, 229, 255, 0.16);
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.status-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 5px 7px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.status-disclosure > summary::-webkit-details-marker {
  display: none;
}

.status-disclosure > summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 1rem;
}

.status-disclosure[open] > summary::after {
  content: "−";
}

.status-summary {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
}

.status-options {
  padding: 4px 7px 8px;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
}

.checkbox-grid,
.checkbox-stack {
  display: grid;
  gap: 3px;
}

.checkbox-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  color: var(--ink);
  font-size: 0.78rem;
}

.check-row input {
  width: 13px;
  height: 13px;
  accent-color: var(--accent-2);
}

.map-layer-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
}

.map-layer-options .check-row {
  min-height: 20px;
  font-size: 0.75rem;
}

.panel-left .panel-heading h2 {
  font-size: 1.1rem;
}

.panel-left .clear-filter-button {
  font-size: 0.79rem;
}

.panel-left .close-button {
  font-size: 0.86rem;
}

.panel-left .field span,
.panel-left .field-label,
.panel-left .field-group legend {
  font-size: 0.77rem;
}

.panel-left .field input,
.panel-left .field select {
  font-size: 0.92rem;
}

.panel-left .status-disclosure > summary {
  font-size: 0.79rem;
}

.panel-left .status-summary {
  font-size: 0.75rem;
}

.panel-left .check-row {
  font-size: 0.86rem;
}

.panel-left .map-layer-options .check-row {
  font-size: 0.83rem;
}

.event-table-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.28fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}

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

.event-table-summary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.event-table {
  display: grid;
  gap: 5px;
}

.event-table-meeting {
  display: grid;
  gap: 4px;
}

.event-table-head,
.event-table-row {
  display: grid;
  grid-template-columns: 54px minmax(160px, 1.3fr) minmax(86px, 0.48fr) minmax(92px, 0.5fr) minmax(126px, 0.72fr) minmax(88px, 0.4fr);
  gap: 8px;
  align-items: center;
}

.event-table-head {
  position: sticky;
  z-index: 2;
  top: -14px;
  padding: 8px 9px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.18), transparent 34%),
    rgba(3, 7, 12, 0.96);
}

.event-table-sort {
  min-height: 24px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.event-table-sort span {
  display: inline-block;
  min-width: 10px;
  color: var(--accent-2);
}

.event-table-sort:hover,
.event-table-sort.active {
  color: var(--accent);
}

.event-table-row {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 7px 9px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-left: 4px solid var(--event-color);
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-color) 14%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.048);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  font-size: 0.78rem;
  line-height: 1.18;
  text-align: left;
  overflow: hidden;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.event-table-row::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -46%;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-22deg);
  opacity: 0;
}

.event-table-row:hover,
.event-table-row.active {
  border-color: var(--accent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-color) 24%, transparent), rgba(255, 154, 23, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.16);
  transform: translateX(-2px);
}

.event-table-row:hover::after {
  animation: rowLightSweep 620ms ease-out;
  opacity: 1;
}

.event-table-row > * {
  position: relative;
  z-index: 1;
}

.event-table-photo {
  display: block;
  width: 44px;
  height: 34px;
}

.event-thumb,
.event-thumb-fallback {
  width: 44px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--event-color) 56%, rgba(255, 255, 255, 0.22));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--event-color) 20%, transparent), transparent 45%),
    rgba(0, 0, 0, 0.52);
  box-shadow: 0 0 10px color-mix(in srgb, var(--event-color) 22%, transparent);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.event-thumb {
  display: block;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.event-thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
}

.event-table-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-table-row strong {
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-table-row em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-table-row > span:not(.event-table-main):not(.event-table-photo) {
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-table-note {
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.8rem;
  font-weight: 850;
}

.meeting-series {
  margin: 0 0 3px 58px;
  border-left: 2px solid color-mix(in srgb, var(--event-color) 48%, transparent);
}

.meeting-series summary {
  display: inline-flex;
  min-height: 24px;
  margin-bottom: 4px;
  padding: 4px 8px;
  color: var(--yellow);
  border: 1px solid rgba(255, 154, 23, 0.32);
  background:
    linear-gradient(90deg, rgba(255, 154, 23, 0.14), rgba(0, 229, 255, 0.08)),
    rgba(2, 5, 9, 0.74);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  cursor: pointer;
}

.meeting-series-list {
  display: grid;
  gap: 3px;
}

.meeting-series-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(46px, 0.32fr) minmax(78px, 0.42fr);
  gap: 7px;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-left: 4px solid var(--event-color);
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-color) 12%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.042);
  font-size: 0.74rem;
  line-height: 1.12;
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.meeting-series-row:hover,
.meeting-series-row.active {
  border-color: var(--accent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-color) 24%, transparent), rgba(255, 154, 23, 0.08)),
    rgba(255, 255, 255, 0.075);
}

.meeting-series-row .dot {
  width: 11px;
  height: 11px;
  flex-basis: 11px;
  border-width: 1px;
}

.meeting-series-row strong,
.meeting-series-row span:not(.dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-series-row span:not(.dot) {
  color: var(--muted);
  font-weight: 850;
}

.meta-line {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 4px 8px;
  color: #050709;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font-size: 0.72rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.pill.secondary {
  color: var(--ink);
  border: 1px solid rgba(0, 229, 255, 0.36);
  background: rgba(0, 229, 255, 0.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.calendar-filter-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 1px 0 9px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 210, 30, 0.34);
  border-left: 4px solid var(--yellow);
  background:
    linear-gradient(90deg, rgba(255, 210, 30, 0.12), rgba(0, 229, 255, 0.05)),
    rgba(0, 0, 0, 0.32);
}

.calendar-filter-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.calendar-filter-copy > strong {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.calendar-filter-chips {
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.calendar-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: 250px;
  padding: 4px 7px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  color: var(--ink);
  background: rgba(0, 229, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.calendar-filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-filter-chip b {
  color: var(--yellow);
  font-size: 1rem;
  line-height: 1;
}

.calendar-filter-chip:hover {
  border-color: var(--yellow);
  background: rgba(255, 210, 30, 0.12);
}

.calendar-filter-actions,
.calendar-empty-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.calendar-filter-actions button,
.calendar-empty-actions button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.69rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-filter-actions button:last-child,
.calendar-empty-actions .calendar-empty-primary {
  color: #071216;
  border-color: var(--yellow);
  background: var(--yellow);
}

.calendar-empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 4px 0 10px;
  padding: 16px;
  border: 1px solid rgba(255, 210, 30, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 30, 0.1), transparent 56%),
    rgba(0, 0, 0, 0.28);
  text-align: center;
}

.calendar-empty-state > strong {
  color: var(--yellow);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.calendar-empty-state > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.38;
  text-transform: none;
}

.calendar-filter-notice[hidden],
.calendar-empty-state[hidden],
.filter-count-badge[hidden] {
  display: none;
}

.calendar-toolbar h3 {
  margin: 0;
  color: var(--yellow);
  font-size: 1.08rem;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(255, 154, 23, 0.5),
    1px 0 0 rgba(0, 229, 255, 0.5);
}

.calendar-nav {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid rgba(0, 229, 255, 0.36);
  border-radius: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.14), rgba(255, 154, 23, 0.09)),
    rgba(5, 8, 10, 0.78);
  font-size: 1.1rem;
  font-weight: 950;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.calendar-nav:hover {
  color: #050709;
  border-color: transparent;
  background: var(--accent);
}

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

.calendar-weekday {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 92px;
  padding: 6px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.08), transparent 48%),
    linear-gradient(315deg, rgba(255, 154, 23, 0.06), transparent 45%),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.calendar-day.is-empty {
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.12);
}

.calendar-day.is-quiet {
  opacity: 0.58;
}

.calendar-date {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.calendar-event-stack {
  display: grid;
  gap: 3px;
  overflow: visible;
}

.calendar-event {
  min-height: 19px;
  width: 100%;
  padding: 3px 5px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--event-color);
  border-radius: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-color) 24%, transparent), transparent 72%),
    rgba(5, 8, 10, 0.78);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.calendar-event span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.calendar-event em {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: color-mix(in srgb, var(--event-color) 42%, var(--muted));
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-event.is-continuation {
  min-height: 15px;
  padding: 2px 5px 2px 8px;
  border-left-width: 3px;
  color: color-mix(in srgb, var(--ink) 78%, var(--event-color));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-color) 18%, transparent), transparent 82%),
    rgba(5, 8, 10, 0.48);
  box-shadow: inset 10px 0 14px color-mix(in srgb, var(--event-color) 10%, transparent);
  opacity: 0.82;
}

.calendar-event.is-continuation span {
  -webkit-line-clamp: 1;
}

.calendar-event.is-continuation span::before {
  content: "";
}

.calendar-event.is-continuation em {
  display: none;
}

.calendar-event:hover,
.calendar-event.active {
  color: #050709;
  border-color: rgba(234, 255, 27, 0.78);
  background: var(--event-color);
  opacity: 1;
}

.calendar-event:hover em,
.calendar-event.active em {
  color: rgba(5, 7, 9, 0.82);
}

.calendar-detail {
  min-height: 132px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 154, 23, 0.28);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 45, 45, 0.14), transparent 42%),
    linear-gradient(90deg, rgba(255, 154, 23, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.calendar-detail-drawer {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 376px;
  right: 914px;
  max-height: min(330px, calc(100vh - 70px));
  min-height: 0;
  margin: 0;
  padding: 13px 14px 14px;
  overflow-y: auto;
  border-color: rgba(255, 154, 23, 0.38);
  background:
    linear-gradient(90deg, rgba(255, 154, 23, 0.18), transparent 3px),
    linear-gradient(135deg, rgba(0, 229, 255, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(255, 45, 45, 0.18), transparent 44%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 11px),
    rgba(3, 7, 12, 0.96);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.18s ease,
    transform 0.22s ease;
}

.calendar-detail-drawer:not(.is-hidden) {
  animation: drawerDropSettle 240ms cubic-bezier(0.2, 0.82, 0.25, 1);
}

.calendar-detail-drawer.is-hidden {
  transform: translateY(-112%);
  opacity: 0;
  pointer-events: none;
}

.calendar-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-detail-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.calendar-detail-heading h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.calendar-detail-body {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.calendar-photo {
  width: min(280px, 100%);
  height: 88px;
  min-height: 0;
  margin: 0 0 9px;
}

.calendar-photo img {
  min-height: 0;
}

.calendar-photo figcaption {
  font-size: 0.68rem;
}

.venue-photo {
  height: 142px;
  min-height: 0;
}

.compact-detail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  gap: 6px;
}

.calendar-detail .detail-grid div {
  padding: 7px 8px;
  font-size: 0.88rem;
  line-height: 1.2;
}

.calendar-detail .detail-grid span {
  font-size: 0.68rem;
}

.calendar-detail .link-row {
  margin: 10px 0 0;
}

.calendar-detail .link-button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.76rem;
}

.calendar-detail .meeting-series,
.detail-panel .meeting-series {
  margin: 10px 0 0;
}

.stat {
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.14), transparent),
    linear-gradient(315deg, rgba(255, 154, 23, 0.12), transparent),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.24);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.stat b {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--accent-2);
  text-shadow: 0 0 12px rgba(255, 154, 23, 0.36);
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.detail-panel {
  right: 0;
  bottom: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: min(62vh, 560px);
  padding: 18px;
  font-size: 1.06rem;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(255, 45, 45, 0.14), transparent 40%),
    linear-gradient(90deg, rgba(0, 229, 255, 0.12), transparent 32%),
    var(--panel-strong);
}

.detail-panel.empty {
  display: none;
}

.venue-detail-panel {
  top: 74px;
  bottom: 0;
  width: min(540px, calc(100vw - 32px));
  max-height: none;
  padding-top: 0;
}

.detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
  padding-bottom: 10px;
}

.detail-title-block {
  min-width: 0;
}

.detail-panel h3 {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 1.42rem;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(0, 229, 255, 0.4),
    1px 0 0 rgba(255, 45, 45, 0.38);
}

.detail-panel .meta-line {
  font-size: 0.98rem;
  line-height: 1.42;
}

.detail-close {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 34px;
  font-size: 0.86rem;
}

.race-photo {
  position: relative;
  height: 172px;
  min-height: 168px;
  margin: 12px 0 14px;
  border: 1px solid color-mix(in srgb, var(--event-color) 64%, rgba(255, 255, 255, 0.2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--event-color) 20%, transparent), transparent 42%),
    rgba(0, 0, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 34px rgba(0, 0, 0, 0.42),
    0 0 22px color-mix(in srgb, var(--event-color) 30%, transparent);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.race-photo::before,
.race-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.race-photo::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 32%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 20%, rgba(0, 0, 0, 0.34));
}

.race-photo::after {
  z-index: 2;
  border-left: 4px solid var(--event-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.race-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.08);
}

.race-photo figcaption {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 10px;
  margin: 0;
  padding: 5px 9px;
  color: #050709;
  background: linear-gradient(90deg, var(--event-color), var(--yellow));
  box-shadow: 0 0 18px color-mix(in srgb, var(--event-color) 48%, transparent);
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.race-photo.calendar-photo {
  width: min(280px, 100%);
  height: 88px;
  min-height: 0;
}

.race-photo.venue-photo {
  height: 128px;
  min-height: 0;
}

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

.detail-grid div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.detail-panel .detail-grid {
  gap: 10px;
  margin: 14px 0;
}

.detail-panel .detail-grid div {
  padding: 10px 11px;
  font-size: 1rem;
  line-height: 1.28;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.detail-panel .detail-grid span {
  margin-bottom: 3px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.source-link {
  color: var(--accent-2);
  font-weight: 800;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0.04)),
    rgba(2, 5, 9, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 16px rgba(0, 229, 255, 0.1);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.link-button:hover {
  color: #050709;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), #8ff5ff);
}

.asset-note {
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 154, 23, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 154, 23, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.asset-note span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-note p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.legend {
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
  width: min(350px, calc(100vw - 20px));
  max-width: min(350px, calc(100vw - 20px));
  box-sizing: border-box;
  padding: 14px 16px;
  border-color: rgba(0, 229, 255, 0.34);
}

.legend-hint {
  grid-column: 1 / -1;
  margin: -2px 0 1px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.legend-hint span {
  display: inline-block;
  margin-left: 4px;
  color: var(--yellow);
  font-size: 0.95rem;
  transform: translateY(1px);
}

.legend-item {
  appearance: none;
  border: 1px solid transparent;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  color: var(--ink);
  font-size: 1.01rem;
  font-weight: 850;
  white-space: nowrap;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.legend-item:hover {
  border-color: rgba(0, 229, 255, 0.34);
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-1px);
}

.legend-item.active {
  border-color: var(--yellow);
  color: #05070a;
  background: linear-gradient(90deg, var(--yellow), var(--accent-2));
  box-shadow: 0 0 18px rgba(255, 210, 30, 0.34);
}

.legend-toggle {
  display: none;
}

.map-label-toggle {
  position: absolute;
  z-index: 5;
  left: 362px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.13), transparent 48%),
    rgba(3, 7, 12, 0.9);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.52);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.map-label-toggle strong {
  min-width: 27px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.map-label-toggle:hover,
.map-label-toggle[aria-pressed="true"] {
  border-color: var(--yellow);
  background:
    linear-gradient(135deg, rgba(255, 210, 30, 0.2), transparent 50%),
    rgba(3, 7, 12, 0.94);
}

.map-label-toggle[aria-pressed="true"] strong {
  color: var(--yellow);
}

.dot {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  border: 2px solid rgba(7, 16, 21, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 0 10px currentColor,
    0 3px 6px rgba(0, 0, 0, 0.42);
}

.race-marker-icon {
  display: grid !important;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.race-marker-icon:focus,
.race-marker-icon:focus-visible,
.race-marker-icon *:focus {
  outline: none;
}

.race-marker-dot {
  display: block;
  width: var(--marker-size);
  height: var(--marker-size);
  border: 2.5px solid rgba(7, 16, 21, 0.94);
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.82),
    0 2px 5px rgba(0, 0, 0, 0.72),
    0 0 11px color-mix(in srgb, var(--marker-color) 65%, transparent);
  pointer-events: none;
  transition:
    box-shadow 150ms ease,
    transform 150ms ease;
}

.race-marker-icon:hover .race-marker-dot {
  transform: scale(1.12);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 3px 7px rgba(0, 0, 0, 0.78),
    0 0 16px color-mix(in srgb, var(--marker-color) 80%, transparent);
}

.race-marker-icon.is-selected .race-marker-dot {
  animation: markerSelectedPulse 1450ms ease-out;
}

.leaflet-container {
  color: #111;
  font-family: inherit;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.16), transparent 42%),
    rgba(3, 7, 12, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.36);
  border-radius: 0;
}

.leaflet-popup-content-wrapper {
  box-shadow:
    0 6px 7px rgba(0, 0, 0, 0.62),
    0 18px 26px rgba(0, 0, 0, 0.42);
}

.leaflet-popup-tip {
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(0, 229, 255, 0.75);
  border-bottom: 1px solid rgba(0, 229, 255, 0.75);
  box-shadow: 3px 3px 7px rgba(0, 229, 255, 0.34);
}

.leaflet-popup-tip-container {
  display: none;
}

.venue-popup-leader {
  position: absolute;
  inset: 0;
  z-index: 680;
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.venue-popup-leader.is-visible {
  display: block;
}

.venue-popup-leader line {
  stroke: #071015;
  stroke-width: 4;
  stroke-linecap: round;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.82))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.72));
}

.venue-popup-leader polygon {
  fill: #071015;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.72))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.72));
}

.leaflet-popup-content {
  min-width: 230px;
  margin: 15px 16px;
  font-size: 1rem;
  line-height: 1.35;
}

.popup-photo {
  position: relative;
  height: 92px;
  margin: 0 0 10px;
  border: 1px solid color-mix(in srgb, var(--event-color) 64%, rgba(255, 255, 255, 0.22));
  background: rgba(0, 0, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px color-mix(in srgb, var(--event-color) 28%, transparent);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.popup-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 4px solid var(--event-color);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 35%);
  pointer-events: none;
}

.popup-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.leaflet-container a.leaflet-popup-close-button {
  width: 28px;
  height: 28px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 26px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--accent);
}

.leaflet-tooltip.venue-tooltip {
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.leaflet-tooltip.venue-tooltip::before {
  display: none;
}

.venue-label-marker {
  width: 1px !important;
  height: 1px !important;
  border: 0;
  background: transparent;
  pointer-events: none !important;
}

.venue-map-label-text {
  position: absolute;
  top: 0;
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1;
  transform: translateY(-50%);
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.96),
    1px -1px 0 rgba(0, 0, 0, 0.96),
    -1px 1px 0 rgba(0, 0, 0, 0.96),
    1px 1px 0 rgba(0, 0, 0, 0.96),
    0 2px 4px rgba(0, 0, 0, 0.92);
  white-space: nowrap;
  pointer-events: none;
}

.venue-label-marker.is-right .venue-map-label-text {
  left: 14px;
}

.venue-label-marker.is-left .venue-map-label-text {
  right: 14px;
  text-align: right;
}

.tooltip-label {
  position: relative;
  display: block;
  max-width: 190px;
  padding: 6px 10px 6px 13px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--tooltip-color) 46%, rgba(255, 255, 255, 0.22));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tooltip-color) 22%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 38%),
    rgba(3, 7, 12, 0.88);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.38),
    0 0 16px color-mix(in srgb, var(--tooltip-color) 22%, transparent);
  backdrop-filter: blur(9px);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.02;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tooltip-label::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tooltip-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--tooltip-color) 80%, transparent);
}

.popup-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.1;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
}

.popup-meta {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.94rem;
}

.popup-action,
.secondary-button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 154, 23, 0.4);
  border-radius: 0;
  color: var(--yellow);
  background:
    linear-gradient(90deg, rgba(255, 154, 23, 0.18), rgba(0, 229, 255, 0.08)),
    rgba(5, 8, 10, 0.86);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  font-weight: 900;
  text-transform: uppercase;
}

.popup-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  font-size: 0.78rem;
}

.popup-link {
  margin-top: 8px;
  color: var(--ink);
  border-color: rgba(0, 229, 255, 0.36);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.16), rgba(0, 229, 255, 0.04)),
    rgba(2, 5, 9, 0.82);
  text-decoration: none;
}

.secondary-button:hover,
.popup-action:not(.popup-link):hover {
  color: #05070a;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent-2), var(--yellow));
}

.popup-link:hover {
  color: #05070a;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), #8ff5ff);
}

.meta-line,
.popup-meta,
.series-calendar-summary,
.event-table-summary,
.event-table-row em,
.event-table-row > span:not(.event-table-main):not(.event-table-photo),
.meeting-series-row span:not(.dot),
.calendar-event em,
.detail-grid > div,
.stat span,
.venue-event-card span {
  font-family: var(--font-body);
  font-stretch: normal;
}

.venue-detail-heading h3 {
  margin-bottom: 6px;
}

.venue-detail-panel .venue-detail-heading {
  position: sticky;
  top: 0;
  z-index: 7;
  margin: 0 -18px 14px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.26);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.2), transparent 3px),
    linear-gradient(135deg, rgba(0, 229, 255, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(255, 45, 45, 0.14), transparent 46%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 11px),
    rgba(3, 7, 12, 0.98);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.venue-detail-panel .venue-detail-heading .link-row {
  margin-bottom: 0;
}

.venue-detail-actions {
  display: flex;
  justify-content: flex-start;
  margin: 10px 0 12px;
}

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

.venue-event-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(76px, 0.7fr);
  gap: 6px 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-left: 5px solid var(--event-color);
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-color) 20%, transparent), transparent 52%),
    rgba(255, 255, 255, 0.055);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  text-align: left;
}

.venue-event-card:hover,
.venue-event-card.active {
  border-color: var(--accent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-color) 32%, transparent), rgba(255, 154, 23, 0.1)),
    rgba(255, 255, 255, 0.08);
}

.venue-event-card strong {
  grid-column: 1 / -1;
  font-size: 1.08rem;
  line-height: 1.14;
  text-transform: uppercase;
}

.venue-event-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.24;
}

[data-panel].is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .panel-bottom {
    left: 0;
    right: 0;
    bottom: 16px;
  }

  .calendar-panel {
    left: 370px;
    right: 0;
    width: auto;
  }

  .series-calendar-panel {
    left: 370px;
    right: 0;
    width: auto;
  }

  .calendar-detail-drawer {
    left: 370px;
    right: 18px;
  }

  .detail-panel {
    bottom: 152px;
  }

  .venue-detail-panel {
    top: 74px;
    bottom: 0;
  }

  .event-table-head,
  .event-table-row {
    grid-template-columns: 52px minmax(150px, 1.2fr) minmax(84px, 0.48fr) minmax(90px, 0.5fr) minmax(118px, 0.7fr);
  }

  .event-table-head > :nth-child(6),
  .event-table-row > :nth-child(6) {
    display: none;
  }
}

@media (max-width: 760px) {
  .top-bar {
    top: 58px;
    left: 10px;
    width: min(190px, 55vw);
    padding: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(190px, 55vw);
  }

  .panel-actions {
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 9;
    width: auto;
    gap: 5px;
    justify-content: stretch;
  }

  .icon-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 7px 5px;
    font-size: 0.75rem;
  }

  .filters-toggle {
    gap: 3px;
  }

  .filter-count-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 0.58rem;
  }

  .quick-filter-toggle {
    position: fixed;
    top: 58px;
    right: 8px;
    z-index: 9;
    flex: none;
    width: 108px;
    min-height: 40px;
    font-size: 0.68rem;
    line-height: 0.92;
  }

  .quick-filter-panel {
    max-height: min(78vh, 700px);
  }

  .nearby-radius-picker button,
  .nearby-find-button,
  .quick-filter-expand {
    min-height: 42px;
  }

  .contextual-action:not([hidden]) {
    flex-basis: 100%;
    order: 2;
  }

  .panel-left,
  .panel-right,
  .calendar-panel,
  .series-calendar-panel {
    position: fixed;
    z-index: 8;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-height: min(72vh, 660px);
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-bottom: 0;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    animation-name: panelLiftIn !important;
  }

  .panel-left {
    max-height: min(74vh, 680px);
  }

  .panel > .panel-heading {
    position: sticky;
    z-index: 6;
    top: -16px;
    margin: -10px 0 8px;
    padding: 10px 0 8px;
    background: rgba(3, 7, 12, 0.97);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  }

  .panel .close-button,
  .panel .clear-filter-button {
    min-height: 40px;
    padding: 7px 10px;
  }

  .panel-left .field input,
  .panel-left .field select {
    min-height: 42px;
  }

  .panel-left > .primary-button {
    display: none;
  }

  .map-label-toggle {
    position: fixed;
    left: auto;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 6;
    min-height: 44px;
    padding: 7px 10px;
  }

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

  .event-table-head,
  .event-table-row {
    grid-template-columns: 48px minmax(0, 1fr) 78px 84px;
  }

  .event-table-head > :nth-child(5),
  .event-table-head > :nth-child(6),
  .event-table-row > :nth-child(5),
  .event-table-row > :nth-child(6) {
    display: none;
  }

  .calendar-grid {
    display: block;
  }

  .calendar-filter-notice {
    display: grid;
    gap: 8px;
  }

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

  .calendar-filter-chips {
    padding-bottom: 2px;
  }

  .calendar-filter-actions,
  .calendar-empty-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .calendar-empty-actions .calendar-empty-primary {
    grid-column: 1 / -1;
  }

  .calendar-filter-actions button,
  .calendar-empty-actions button {
    min-height: 42px;
  }

  .calendar-panel .calendar-toolbar {
    position: sticky;
    z-index: 5;
    top: 39px;
    margin: 0 0 8px;
    padding: 6px 0;
    background: rgba(3, 7, 12, 0.97);
  }

  .calendar-nav {
    min-height: 40px;
  }

  .calendar-weekday,
  .calendar-day.is-empty,
  .calendar-day:not(.has-events) {
    display: none;
  }

  .calendar-days {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .calendar-day {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 8px;
  }

  .calendar-date {
    padding-top: 7px;
    color: var(--yellow);
    font-size: 0.92rem;
    text-align: center;
  }

  .calendar-event {
    min-height: 40px;
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .calendar-event em {
    margin-top: 3px;
    font-size: 0.66rem;
  }

  .calendar-event.is-continuation {
    min-height: 32px;
    padding: 6px 9px;
  }

  .calendar-detail-drawer {
    position: fixed;
    z-index: 10;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: min(70vh, 620px);
    border-bottom: 0;
  }

  .calendar-detail-body {
    grid-template-columns: 1fr;
  }

  .panel-bottom {
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
  }

  .detail-panel {
    position: fixed;
    z-index: 10;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: min(68vh, 620px);
    overflow-y: auto;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    border-bottom: 0;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  }

  .venue-detail-panel {
    top: auto;
    bottom: 0;
    width: 100vw;
    max-height: min(76vh, 700px);
  }

  .legend {
    position: fixed;
    z-index: 8;
    left: 8px;
    right: 8px;
    bottom: calc(56px + env(safe-area-inset-bottom));
    display: none;
    width: auto;
    max-width: none;
    max-height: min(54vh, 430px);
    overflow-y: auto;
    padding: 13px;
  }

  .legend.is-mobile-open {
    display: grid;
    animation: panelLiftIn 170ms cubic-bezier(0.2, 0.78, 0.22, 1);
  }

  .legend-toggle {
    position: fixed;
    z-index: 7;
    left: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid rgba(0, 229, 255, 0.42);
    color: var(--ink);
    background: rgba(3, 7, 12, 0.92);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.52);
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .legend-toggle[aria-expanded="true"] {
    color: #050709;
    border-color: var(--yellow);
    background: var(--yellow);
  }

  .leaflet-control-zoom {
    display: none;
  }

  .leaflet-bottom.leaflet-right {
    right: 4px;
    bottom: calc(54px + env(safe-area-inset-bottom));
  }

  body.has-map-popup .leaflet-bottom.leaflet-right {
    top: 56px;
    bottom: auto;
  }

  .leaflet-control-attribution {
    margin: 0 !important;
    padding: 1px 4px !important;
    font-size: 0.62rem !important;
    white-space: nowrap;
  }

  .leaflet-popup {
    width: calc(100vw - 16px) !important;
    max-width: 420px;
  }

  .leaflet-popup-content-wrapper {
    max-height: min(46vh, 330px);
    overflow-y: auto;
  }

  .leaflet-popup-content {
    width: auto !important;
    min-width: 0;
    margin: 12px 14px 14px;
    padding-right: 28px;
    font-size: 0.94rem;
  }

  .popup-photo {
    height: 72px;
    margin-bottom: 8px;
  }

  .popup-title {
    margin-bottom: 4px;
    font-size: 1.04rem;
  }

  .popup-meta {
    font-size: 0.86rem;
  }

  .popup-action {
    min-height: 44px;
    margin-top: 7px;
  }

  .leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: 6px;
    right: 7px;
    z-index: 20;
    width: 40px;
    height: 40px;
    color: var(--ink);
    border: 1px solid rgba(0, 229, 255, 0.32);
    background: rgba(2, 5, 9, 0.88);
    font-size: 1.35rem;
    line-height: 36px;
  }

  body.has-map-popup .legend-toggle,
  body.has-map-popup .map-label-toggle {
    display: none;
  }

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

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

@media (max-width: 760px) and (max-height: 500px) and (orientation: landscape) {
  .panel-actions {
    top: 5px;
    left: 5px;
    right: 5px;
    gap: 4px;
  }

  .icon-button {
    min-height: 36px;
    padding: 5px 4px;
    font-size: 0.68rem;
  }

  .quick-filter-toggle {
    top: 92px;
    right: auto;
    left: 5px;
    width: 100px;
    min-height: 36px;
  }

  .top-bar {
    top: 45px;
    left: 8px;
    width: min(145px, 28vw);
  }

  .brand-logo {
    width: min(145px, 28vw);
  }

  .panel-left,
  .panel-right,
  .calendar-panel,
  .series-calendar-panel,
  .detail-panel,
  .venue-detail-panel,
  .calendar-detail-drawer {
    top: 45px;
    bottom: 0;
    left: auto;
    right: 0;
    width: min(430px, 62vw);
    max-height: none;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .panel > .panel-heading {
    top: -12px;
    margin-top: -8px;
  }

  .panel .close-button,
  .panel .clear-filter-button,
  .calendar-nav {
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .calendar-panel .calendar-toolbar {
    top: 37px;
  }

  .leaflet-popup {
    width: min(310px, 45vw) !important;
  }

  .leaflet-popup-content-wrapper {
    max-height: calc(100vh - 62px);
  }

  .leaflet-popup-content {
    margin: 10px 11px 11px;
    padding-right: 26px;
    font-size: 0.82rem;
  }

  .popup-photo {
    display: none;
  }

  .popup-title {
    font-size: 0.96rem;
  }

  .popup-meta {
    font-size: 0.78rem;
  }

  .popup-action {
    min-height: 36px;
    margin-top: 5px;
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .leaflet-container a.leaflet-popup-close-button {
    width: 34px;
    height: 34px;
    line-height: 30px;
  }

  .legend {
    right: auto;
    bottom: 8px;
    width: min(330px, 48vw);
    max-height: calc(100vh - 58px);
    gap: 4px 6px;
    padding: 9px;
  }

  .legend-item {
    padding: 3px 5px;
    font-size: 0.82rem;
  }

  .legend-hint {
    font-size: 0.66rem;
  }

  .legend-toggle,
  .map-label-toggle {
    min-height: 36px;
    bottom: 6px;
    font-size: 0.68rem;
  }

  .leaflet-bottom.leaflet-right {
    bottom: 48px;
  }

  body.has-map-popup .leaflet-bottom.leaflet-right {
    top: 45px;
  }
}

@keyframes panelSlideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes panelSlideFromRight {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes panelLiftIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawerDropSettle {
  0% {
    opacity: 0;
    transform: translateY(-22px);
    box-shadow:
      0 12px 26px rgba(0, 0, 0, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  72% {
    opacity: 1;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow:
      0 26px 54px rgba(0, 0, 0, 0.58),
      inset 0 1px 0 rgba(255, 255, 255, 0.13);
  }
}

@keyframes rowLightSweep {
  from {
    left: -46%;
  }
  to {
    left: 118%;
  }
}

@keyframes markerSelectedPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.82),
      0 2px 5px rgba(0, 0, 0, 0.72),
      0 0 11px color-mix(in srgb, var(--marker-color) 65%, transparent);
  }
  28% {
    transform: scale(1.22);
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.92),
      0 3px 8px rgba(0, 0, 0, 0.76),
      0 0 0 11px color-mix(in srgb, var(--marker-color) 22%, transparent),
      0 0 26px color-mix(in srgb, var(--marker-color) 84%, transparent);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.82),
      0 2px 5px rgba(0, 0, 0, 0.72),
      0 0 11px color-mix(in srgb, var(--marker-color) 65%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
