/* Self-hosted Inter 4.1. Original files and SIL OFL license are in assets/fonts/inter. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter/InterVariable.woff2?v=4.1') format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter/InterVariable-Italic.woff2?v=4.1') format('woff2');
}

:root {
  --outlo-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --outlo-text-body: 14px;
  --outlo-text-meta: 13px;
  --outlo-text-caption: 12px;
  --outlo-text-card-title: 20px;
  --outlo-weight-regular: 400;
  --outlo-weight-label: 500;
  --outlo-weight-emphasis: 600;
  --outlo-weight-heading: 650;
  --outlo-text-secondary: #526077;
  --outlo-text-muted: #64748b;
  --ink: #111827;
  --navy: #111827;
  --muted: #64748B;
  --page-bg: #F3F6FB;
  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;
  --line: #DDE4EE;
  --line-strong: #CBD5E1;
  --panel: #ffffff;
  --soft: #F3F6FB;
  --soft-strong: #EAF0F8;
  /* Indigomodrá is the shared action colour. Keep the role aliases below so
     buttons, links and focus states follow this palette together. */
  --outlo-indigo-blue: #3f51b5;
  --outlo-indigo-blue-hover: #303f9f;
  --outlo-indigo-blue-dark: #283593;
  --outlo-indigo-blue-on-dark: #c5cae9;
  --outlo-indigo-blue-soft: #eef0fa;
  --outlo-indigo-blue-soft-hover: #e8eaf6;
  --outlo-indigo-blue-border: #c5cae9;
  --outlo-indigo-blue-border-hover: #9fa8da;
  --outlo-brand-accent: var(--outlo-indigo-blue);
  --outlo-filter-end-line: color-mix(in srgb, var(--line-strong) 86%, var(--outlo-brand-accent));
  --outlo-brand-text: var(--outlo-indigo-blue-hover);
  --outlo-brand-text-hover: var(--outlo-indigo-blue-dark);
  --outlo-brand-on-dark: var(--outlo-indigo-blue-on-dark);
  --outlo-brand-soft: var(--outlo-indigo-blue-soft);
  --outlo-brand-soft-hover: var(--outlo-indigo-blue-soft-hover);
  --outlo-brand-border: var(--outlo-indigo-blue-border);
  --outlo-brand-border-hover: var(--outlo-indigo-blue-border-hover);
  /* Glyph sizes are role-based; component hit areas remain independent. */
  --outlo-icon-xs: 14px;
  --outlo-icon-sm: 16px;
  --outlo-icon-md: 18px;
  --outlo-icon-lg: 20px;
  --outlo-icon-xl: 24px;
  --outlo-icon-stroke: 1.8;
  --accent: var(--outlo-brand-accent);
  --accent-hover: var(--outlo-brand-text);
  --accent-dark: var(--outlo-brand-text-hover);
  --accent-soft: var(--outlo-brand-soft);
  --accent-line: var(--outlo-brand-border);
  --info: #2563EB;
  --info-soft: #EFF6FF;
  --info-line: #BFDBFE;
  --secondary: #06B6D4;
  --secondary-dark: #0E7490;
  --secondary-soft: #ECFEFF;
  --secondary-line: #A5F3FC;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --danger-line: #FECACA;
  --success: #16A34A;
  --success-soft: #F0FDF4;
  --success-line: #BBF7D0;
  --warning: #D97706;
  --warning-soft: #FFF7ED;
  --warning-line: #FED7AA;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-md: 0 18px 56px rgba(15, 23, 42, .13);
  --focus-ring: 0 0 0 4px color-mix(in srgb, var(--outlo-brand-accent) 20%, transparent);
  font-family: var(--outlo-font-family);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.event-editor-frame-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  height: min(900px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

/* Aggregate markers share an opaque surface and a fixed 48px interaction target. */
.outlo-marker-cluster-wrap,
.aggregate-singleton-wrap {
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  place-items: center;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
}

.outlo-marker-cluster {
  --cluster-center-size: 40px;
  --cluster-fill: var(--outlo-action-fill, linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%));
  position: relative;
  display: grid;
  width: var(--cluster-center-size);
  height: var(--cluster-center-size);
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  background-image: var(--cluster-fill);
  box-shadow: 0 2px 5px rgba(15, 23, 42, .2);
  color: var(--surface);
  font-family: var(--outlo-font-family);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transition: background-color .14s ease, box-shadow .14s ease;
}

.outlo-marker-cluster strong {
  display: block;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.outlo-marker-cluster.is-medium {
  --cluster-center-size: 44px;
}

.outlo-marker-cluster.is-large {
  --cluster-center-size: 48px;
  font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
  :is(.outlo-marker-cluster-wrap, .aggregate-singleton-wrap):is(:hover, .is-hovered) .outlo-marker-cluster {
    --cluster-fill: var(--outlo-action-hover, linear-gradient(135deg, #6d28d9 0%, #4338ca 56%, #1d4ed8 100%));
    background-color: var(--accent-hover);
    box-shadow: 0 3px 7px rgba(15, 23, 42, .26);
  }
}

:is(.outlo-marker-cluster-wrap, .aggregate-singleton-wrap):is(.is-selected, :focus-visible) .outlo-marker-cluster {
  --cluster-fill: var(--outlo-action-pressed, linear-gradient(135deg, #5b21b6 0%, #3730a3 56%, #1e40af 100%));
  outline: 2px solid var(--accent);
  outline-offset: 0;
  background-color: var(--accent-dark);
}

:is(.outlo-marker-cluster-wrap, .aggregate-singleton-wrap):active .outlo-marker-cluster {
  --cluster-fill: var(--outlo-action-pressed, linear-gradient(135deg, #5b21b6 0%, #3730a3 56%, #1e40af 100%));
  background-color: var(--accent-dark);
}

:is(.outlo-marker-cluster-wrap, .aggregate-singleton-wrap):focus-visible {
  outline: 0;
}

.cluster-marker-tooltip {
  min-width: 112px;
  padding: 7px 10px;
  white-space: nowrap;
}

.cluster-marker-tooltip .event-marker-tooltip-title {
  font-size: 12px;
  line-height: 1.2;
}

.cluster-marker-tooltip .event-marker-tooltip-meta {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
}

/* Fade inner artwork only; Leaflet owns wrapper opacity during hide/show. */
#map.is-cluster-zooming .outlo-marker-cluster {
  border-color: rgba(99, 102, 241, .16) !important;
  background: rgba(252, 252, 254, .28) !important;
  box-shadow: none !important;
  color: rgba(55, 48, 163, .68) !important;
  transform: none !important;
  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    color .16s ease !important;
}

#map.is-cluster-zooming .leaflet-tooltip-pane .cluster-marker-tooltip {
  opacity: 0 !important;
}

/* Keep map labels readable while the viewport is actively changing. */
#map.is-cluster-zooming .category-pin-wrap:not(.is-selected) > span,
#map.is-map-panning .category-pin-wrap:not(.is-selected) > span {
  opacity: .38 !important;
  transition: opacity .15s ease !important;
}

#map.is-cluster-zooming .outlo-marker-cluster {
  opacity: .35 !important;
  transition: opacity .15s ease !important;
}

#map.is-map-panning .outlo-marker-cluster {
  opacity: .5 !important;
  transition: opacity .12s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  .outlo-marker-cluster {
    transition: none;
  }

  #map.is-cluster-zooming .outlo-marker-cluster {
    transition: none !important;
  }

  #map.is-cluster-zooming .category-pin-wrap:not(.is-selected) > span,
  #map.is-map-panning .category-pin-wrap:not(.is-selected) > span,
  #map.is-map-panning .outlo-marker-cluster {
    transition: none !important;
  }
}

.event-editor-frame-dialog iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
}

body.embedded-event-editor {
  min-height: 100vh;
  overflow: hidden;
  background: var(--page-bg);
}

body.embedded-event-editor .topbar,
body.embedded-event-editor .map-layout,
body.embedded-event-editor #toast,
body.embedded-event-editor #organizerWelcomeDialog,
body.embedded-event-editor #eventCreateGuideDialog {
  display: none !important;
}

body.embedded-event-editor #eventDialog {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

body.embedded-event-editor #eventDialog::backdrop {
  background: transparent;
}

@media (max-width: 720px) {
  .event-editor-frame-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    height: calc(100vh - 12px);
  }
}
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--page-bg); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

button, .button-link {
  --btn-bg: #ffffff;
  --btn-border: var(--line);
  --btn-color: var(--navy);
  --btn-hover-bg: #F8FAFC;
  --btn-hover-border: var(--line-strong);
  min-height: 40px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-color);
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: var(--shadow-xs);
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

button:hover, .button-link:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
button:active, .button-link:active { transform: translateY(0); box-shadow: var(--shadow-xs); }
button:focus-visible,
.button-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.primary {
  --btn-bg: var(--accent);
  --btn-border: var(--accent);
  --btn-color: #fff;
  --btn-hover-bg: var(--accent-hover);
  --btn-hover-border: var(--accent-hover);
}
.ghost {
  --btn-bg: #F8FAFC;
  --btn-border: var(--line);
  --btn-color: var(--navy);
  --btn-hover-bg: var(--soft-strong);
}
.danger {
  --btn-bg: var(--danger-soft);
  --btn-border: var(--danger-line);
  --btn-color: var(--danger);
  --btn-hover-bg: #FEE2E2;
  --btn-hover-border: #FCA5A5;
}
.danger-soft {
  --btn-bg: var(--danger-soft);
  --btn-border: var(--danger-line);
  --btn-color: var(--danger);
  --btn-hover-bg: #FEE2E2;
  --btn-hover-border: #FCA5A5;
}
.warning {
  --btn-bg: var(--warning-soft);
  --btn-border: var(--warning-line);
  --btn-color: #B45309;
  --btn-hover-bg: #FEF3C7;
  --btn-hover-border: #FCD34D;
}
.small { min-height: 36px; padding: 7px 11px; font-size: 12px; border-radius: 12px; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 10px;
}
textarea { min-height: 92px; resize: vertical; }
label { display: grid; gap: 6px; color: #334155; font-size: 13px; font-weight: 750; }
.field-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}
.required-star {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.help-label { gap: 7px; }
.help-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #cfe5f8;
  border-radius: 999px;
  background: #f3f9ff;
  color: var(--accent-dark);
  cursor: help;
  line-height: 1;
  outline: none;
}
.help-tip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.help-tip::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 1300;
  display: none;
  width: min(300px, calc(100vw - 44px));
  padding: 10px 12px;
  border: 1px solid #d8e7f4;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 16px 38px rgba(6, 26, 51, .14);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
}
.help-tip:hover::after,
.help-tip:focus::after {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

.floating-help-tooltip {
  position: fixed;
  z-index: 5000;
  width: min(300px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid #d8e7f4;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 16px 38px rgba(6, 26, 51, .18);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  pointer-events: none;
}

#eventDialog .help-tip::after {
  content: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 12px 22px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; text-decoration: none; letter-spacing: 0; color: var(--navy); }
.brand-text-only { font-size: 25px; letter-spacing: .01em; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 11px; background: var(--navy); box-shadow: inset 0 0 0 7px var(--accent); }
.topnav { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
.topnav a { text-decoration: none; font-weight: 750; color: var(--navy); }
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}
.nav-item:visited { color: var(--navy); }
.nav-item:hover { background: #F8FAFC; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.nav-item.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--outlo-brand-text); box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .1); }
.nav-item.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-item.primary:visited { color: #fff; }
.nav-item.primary:hover,
.nav-item.primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 70, 229, .24);
  transform: translateY(-1px);
}
.nav-item.primary:hover .nav-icon,
.nav-item.primary:focus-visible .nav-icon,
.nav-item.primary:hover span,
.nav-item.primary:focus-visible span {
  color: #fff;
}
.nav-item.nav-back {
  background: #f4f8fc;
  border-color: #dce8f3;
  color: var(--navy);
  box-shadow: none;
}
.nav-item.nav-back:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--outlo-brand-text-hover);
}
.nav-item.ghost { background: #f6f9fc; }
.user-menu { position: relative; }
.user-menu-button { max-width: min(280px, 38vw); }
.user-menu-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu-badge,
.menu-count-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}
.profile-menu-badge {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
}
.nav-chevron { width: var(--outlo-icon-xs, 14px); height: var(--outlo-icon-xs, 14px); flex-basis: 15px; }
.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 304px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-md);
}
.menu-item {
  width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  column-gap: 12px;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-align: left;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.menu-item.has-badge {
  grid-template-columns: 18px minmax(0, 1fr) auto;
}
.menu-item.workspace-last { margin-bottom: 8px; }
.menu-item:hover {
  background: #f3f8fd;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.menu-item.active {
  background: var(--accent-soft);
  color: var(--outlo-brand-text);
}
.menu-item .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  justify-self: start;
  stroke-width: 1.8;
}
.menu-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-item.is-disabled {
  color: #8b98a8;
  cursor: default;
  opacity: .72;
}
.menu-item.is-disabled:hover { background: transparent; }
.danger-menu {
  position: relative;
  margin-top: 10px;
  color: var(--danger);
}
.danger-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 1px;
  background: var(--line);
}
.feedback-menu-item {
  position: relative;
  margin-top: 10px;
}
.feedback-menu-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 1px;
  background: var(--line);
}
.feedback-menu-item + .danger-menu { margin-top: 0; }
.feedback-menu-item + .danger-menu::before { display: none; }
.nav-icon, .button-icon {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  flex: 0 0 var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button-icon { width: var(--outlo-icon-md, 18px); height: var(--outlo-icon-md, 18px); margin-right: 0; }
.heart-button svg { fill: none; }
.heart-button {
  --btn-bg: #fff7f9;
  --btn-border: #f2cbd5;
  --btn-color: #a53555;
  --btn-hover-bg: #ffeff4;
  --btn-hover-border: #ebb8c8;
}
.heart-button.saved { --btn-border: #eaa9bd; --btn-bg: #ffeef3; --btn-color: #a21d46; }
.heart-button.saved svg { fill: currentColor; }
#navigateButton {
  --btn-bg: var(--secondary-soft);
  --btn-border: var(--secondary-line);
  --btn-color: var(--secondary-dark);
  --btn-hover-bg: #CFFAFE;
  --btn-hover-border: #67E8F9;
}
#externalButton {
  --btn-bg: #f6f8fb;
  --btn-border: #dce5ef;
  --btn-color: var(--navy);
  --btn-hover-bg: #eef3f8;
}
#musicButton {
  --btn-bg: var(--success-soft);
  --btn-border: var(--success-line);
  --btn-color: var(--success);
  --btn-hover-bg: #DCFCE7;
  --btn-hover-border: #86EFAC;
}
#editEventButton {
  --btn-bg: var(--warning-soft);
  --btn-border: var(--warning-line);
  --btn-color: #B45309;
  --btn-hover-bg: #FEF3C7;
  --btn-hover-border: #FCD34D;
}
#reportMenuButton {
  --btn-bg: #fff;
  --btn-border: var(--line);
  --btn-color: var(--text-muted);
  --btn-hover-bg: var(--warning-soft);
  --btn-hover-border: var(--warning-line);
}
#shareButton.is-confirmed {
  --btn-bg: var(--success-soft);
  --btn-border: var(--success-line);
  --btn-color: var(--success);
}

.map-layout {
  position: relative;
  display: block;
  height: calc(100vh - 70px);
  min-height: 640px;
  padding: 0;
  overflow: hidden;
  background: #E8EEF7;
  border: 0;
}
.filter-panel {
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  z-index: 650;
  width: min(410px, calc(100vw - 36px));
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: auto;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.mobile-sheet-handle { display: none; }
.panel-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 2px 2px;
}
.panel-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: 0;
}
.panel-hero p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.panel-section {
  display: grid;
  gap: 10px;
  padding: 2px 2px 14px;
  border: 0;
  border-bottom: 1px solid rgba(229, 234, 240, .82);
  border-radius: 0;
  background: transparent;
}
.panel-section:last-of-type {
  border-bottom: 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}
.compact-label { gap: 7px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-head h1, .panel-head h2, .auth-card h1, .admin-hero h1 { margin: 0; letter-spacing: 0; }
.panel-head h1 { font-size: 28px; line-height: 1.08; }
.panel-head h2 { font-size: 18px; }
.eyebrow { margin: 0 0 4px; color: var(--outlo-brand-text); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.organizer-hint { margin: 0; padding: 10px 12px; border: 1px solid var(--secondary-line); border-radius: 12px; background: var(--secondary-soft); color: var(--navy); font-size: 13px; font-weight: 750; line-height: 1.4; }
.count { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--outlo-brand-text); font-size: 12px; font-weight: 850; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 3px; border-radius: 15px; background: var(--soft-strong); }
.segmented-time { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
}
.segmented button:hover { box-shadow: none; background: #fff; transform: none; }
.segmented button.active { border-color: transparent; background: #fff; color: var(--outlo-brand-text); box-shadow: 0 6px 18px rgba(15, 23, 42, .1); }
.date-range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #F8FAFC;
}
.date-range-fields input { min-height: 40px; border-radius: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-actions button { flex: 1 1 140px; border-radius: 12px; }
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip-grid button {
  --chip-color: var(--accent);
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
}
.chip-grid button:hover {
  background: color-mix(in srgb, var(--chip-color) 8%, #fff);
  border-color: color-mix(in srgb, var(--chip-color) 25%, #dfe8f2);
  color: color-mix(in srgb, var(--chip-color) 72%, var(--navy));
  box-shadow: none;
  transform: translateY(-1px);
}
.chip-grid button.active {
  background: color-mix(in srgb, var(--chip-color) 13%, #fff);
  border-color: color-mix(in srgb, var(--chip-color) 38%, #dfe8f2);
  color: color-mix(in srgb, var(--chip-color) 78%, #07111f);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-color) 12%, transparent);
}
.chip-grid button[data-category="hudebni"] { --chip-color: #7c3aed; }
.chip-grid button[data-category="festivaly"] { --chip-color: #22c55e; }
.chip-grid button[data-category="motosraz"] { --chip-color: #f97316; }
.chip-grid button[data-category="autosraz"] { --chip-color: #f97316; }
.chip-grid button[data-category="sport"] { --chip-color: #0ea5e9; }
.chip-grid button[data-category="gastro"] { --chip-color: #eab308; }
.chip-grid button[data-category="trhy"] { --chip-color: #8b5e34; }
.chip-grid button[data-category="kulturni"] { --chip-color: #ec4899; }
.chip-grid button[data-category="ostatni"] { --chip-color: #536b82; }
.range-control { display: grid; gap: 8px; }
.range-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.range-head strong { color: var(--navy); font-size: 13px; }
.range-head span { color: var(--muted); font-size: 11px; font-weight: 750; }
input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--accent);
  box-shadow: 0 5px 13px rgba(15, 23, 42, .18);
}

.event-list, .admin-list { display: grid; gap: 9px; }
.event-card, .admin-card {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.event-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.event-card.is-linked-hover {
  border-color: var(--secondary-line);
  background: var(--secondary-soft);
  box-shadow: 0 16px 38px rgba(6, 182, 212, .14);
  transform: translateY(-1px);
}
.event-card strong, .admin-card strong { font-size: 14px; }
.event-card span, .admin-card span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.event-card-modern {
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(6, 26, 51, .07);
}
.event-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.event-card-top strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}
.event-meta, .event-place, .event-distance { display: block; }
.event-meta { color: var(--ink) !important; font-weight: 800; }
.event-place { color: var(--muted) !important; }
.event-distance { color: var(--outlo-brand-text) !important; font-weight: 750; }
.category-badge {
  --category-color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--category-color) 72%, #07111f);
  border: 0;
  font-size: 11px !important;
  font-weight: 850;
  white-space: nowrap;
}
.category-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--category-color);
}
.events-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.events-heading h2 { margin: 0; color: var(--navy); font-size: 17px; letter-spacing: 0; }
.breadcrumb {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.section-lead {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
#showAllEventsButton {
  flex: 0 0 auto;
  --btn-bg: var(--accent-soft);
  --btn-border: var(--accent-line);
  --btn-color: var(--accent-dark);
  --btn-hover-bg: var(--outlo-brand-soft-hover);
}
.empty-card { cursor: default; }
.admin-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-card .row-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.row-actions button[data-role="user"],
.row-actions button[data-role="moderator"],
.row-actions button[data-role="organizer"] {
  --btn-bg: #f7fafc;
  --btn-border: #dfe8f2;
  --btn-color: var(--navy);
  --btn-hover-bg: #eef4fb;
}
.row-actions button[data-status="active"] {
  --btn-bg: #f1f8f4;
  --btn-border: #cfe5d8;
  --btn-color: var(--success);
  --btn-hover-bg: #e6f2eb;
}
.row-actions button[data-status="blocked"] {
  --btn-bg: #fff9e8;
  --btn-border: #ecd99f;
  --btn-color: var(--warning);
  --btn-hover-bg: #fff2c7;
}
.row-actions button[data-correction-status="resolved"],
.row-actions button[data-status="resolved"] {
  --btn-bg: #f1f8f4;
  --btn-border: #cfe5d8;
  --btn-color: var(--success);
  --btn-hover-bg: #e6f2eb;
}
.row-actions button[data-status="rejected"] {
  --btn-bg: #fff7f6;
  --btn-border: #efcbc7;
  --btn-color: var(--danger);
  --btn-hover-bg: #fdecea;
}
.row-actions button[data-correction-detail] {
  --btn-bg: #f6f8fb;
  --btn-border: #dce5ef;
  --btn-color: var(--navy);
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid transparent;
}
.role-admin { background: #fdeaea; color: #8b2f2f; border-color: #f5cdcd; }
.role-moderator { background: #eef0ff; color: #3730a3; border-color: #c7d2fe; }
.role-organizer { background: #fff1df; color: #8a520f; border-color: #f4d8b7; }
.role-user { background: #eaf3ff; color: #2c5a8c; border-color: #cddff5; }
.status-blocked { background: var(--warning-soft); color: #B45309; border-color: var(--warning-line); }
.status-active { background: var(--secondary-soft); color: var(--secondary-dark); border-color: var(--secondary-line); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.admin-table { width: 100%; min-width: 920px; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
.admin-table th { background: var(--soft); color: #3f4d54; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 7px; border-radius: 999px; background: #edf2ef; font-weight: 800; font-size: 12px; }
.status-pill.resolved { background: var(--success-soft); color: var(--success); }
.status-pill.rejected { background: var(--danger-soft); color: var(--danger); }
.admin-detail { display: grid; gap: 10px; padding: 0 18px 18px; }
.admin-detail p { margin: 0; line-height: 1.5; }
.admin-detail div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-detail strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 12px; }
.request-detail-dialog { padding-bottom: 18px; }

.profile-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 48px;
}
.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(226, 234, 243, .82);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.profile-head h1 { margin: 2px 0 4px; color: var(--navy); font-size: 30px; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.profile-stat {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(226, 234, 243, .82);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(6, 26, 51, .06);
}
.profile-stat span { color: var(--muted); font-size: 13px; font-weight: 780; }
.profile-stat strong { color: var(--navy); font-size: 26px; line-height: 1.1; }
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-card {
  border: 1px solid rgba(226, 234, 243, .82);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}
.profile-card-head h2 { margin: 0; color: var(--navy); font-size: 17px; }
.subtle-link { color: var(--outlo-brand-text); font-size: 13px; font-weight: 800; text-decoration: none; }
.profile-event-list { display: grid; gap: 8px; padding: 0 14px 14px; }
.profile-event-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.profile-event-item:hover {
  background: #f7fbff;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.profile-event-item strong { display: block; color: var(--navy); font-size: 14px; }
.profile-event-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.profile-event-item em {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--outlo-brand-text);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.compact-empty { margin: 0; padding: 14px; }

.map-stage { position: absolute; inset: 0; min-width: 0; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; }
#map { width: 100%; height: 100%; min-height: 100%; }
/* Keep the standard arrow over the map instead of Leaflet's four-way move cursor. */
#map.leaflet-grab:not(.leaflet-crosshair) { cursor: default; }
.map-layout .leaflet-top.leaflet-left {
  top: 18px;
  left: 448px;
}
.map-layout .leaflet-control {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(6, 26, 51, .16);
  overflow: hidden;
}
.leaflet-container .leaflet-control-attribution {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  box-shadow: none;
  font-family: var(--outlo-font-family);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
.leaflet-container .leaflet-control-attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.leaflet-container .leaflet-control-attribution a:hover { color: var(--accent-dark); }
.leaflet-container .leaflet-control-attribution a:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 2px;
}
.detail-panel {
  position: absolute;
  right: 18px;
  top: 18px;
  bottom: 18px;
  z-index: 760;
  width: min(390px, calc(100% - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.detail-image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 190px;
  min-height: 190px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f4f8fc;
  box-shadow: none;
  cursor: pointer;
}
.detail-image-button[hidden] { display: none; }
.detail-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease, filter .2s ease;
}
.detail-image-button:hover img {
  transform: scale(1.045);
  filter: brightness(.86);
}
.detail-image-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  background: rgba(3, 14, 30, .32);
  transition: opacity .18s ease;
}
.detail-image-overlay svg {
  width: 24px;
  height: 24px;
}
.detail-image-button:hover .detail-image-overlay,
.detail-image-button:focus-visible .detail-image-overlay {
  opacity: 1;
}
.detail-image-button::after {
  content: attr(data-count);
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .74);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.detail-image-button[data-count=""]::after { display: none; }

.event-image-manager {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.event-image-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-image-manager-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.event-image-manager-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.event-image-manager-list {
  display: grid;
  gap: 10px;
}

.event-image-manager-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(221, 228, 238, .92);
  border-radius: var(--radius-md);
  background: #fff;
}

.event-image-manager-thumb {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2f7;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.event-image-manager-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-image-manager-thumb.is-muted {
  border: 1px dashed var(--line-strong);
}

.event-image-manager-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-image-manager-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-image-manager-title small,
.event-image-manager-info p,
.event-image-manager-actions span,
.event-image-manager-empty span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.event-image-manager-info p {
  margin: 0;
}

.event-image-manager-empty {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
}

.event-image-manager-empty strong {
  color: var(--text);
  font-size: 13px;
}

.event-image-manager-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.event-image-manager-actions button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
}
.detail-content { display: grid; gap: 14px; padding: 18px; }
.detail-content h2 { margin: 0; font-size: 25px; line-height: 1.1; }
.detail-content p { margin: 0; line-height: 1.5; }
.icon-button { min-width: 38px; width: 38px; padding: 0; font-size: 24px; line-height: 1; }
#closeDetail { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.92); }
dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
dd { margin: 0; font-weight: 750; color: var(--navy); }
.detail-description {
  color: #334155;
  font-size: 14px;
}
.detail-primary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding-top: 2px;
}
.detail-primary-actions > * {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
}
.detail-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}
.detail-secondary-actions > * {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}
.detail-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-category-badge {
  --category-color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  margin: 0;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--category-color) 10%, #fff);
  color: var(--category-color);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.detail-category-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--category-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--category-color) 14%, transparent);
  flex: 0 0 auto;
}

.detail-report-menu {
  position: relative;
  display: inline-flex;
  width: fit-content;
}

.report-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}

.menu-dots {
  margin-left: 1px;
  font-size: 16px;
  line-height: 1;
}

.detail-report-menu-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 1200;
  display: grid;
  gap: 3px;
  min-width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
}

.detail-report-menu-panel[hidden] {
  display: none;
}

.detail-report-menu-panel button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8A4B05;
  box-shadow: none;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.detail-report-menu-panel button:hover,
.detail-report-menu-panel button:focus-visible {
  background: rgba(255, 247, 237, .88);
  color: #783F04;
  transform: none;
  box-shadow: none;
}

dialog { width: min(900px, calc(100vw - 28px)); max-height: calc(100vh - 28px); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 24px 80px rgba(6,26,51,.24); }
dialog::backdrop { background: rgba(24,35,42,.45); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 0; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog-intro { margin: 8px 18px 0; color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.form-grid.single { grid-template-columns: 1fr; }
.wide { grid-column: 1 / -1; }
.inline-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.inline-search input, .panel-section select { min-height: 42px; border-radius: 12px; background: #fff; }
.inline-search button { border-radius: 12px; }
.location-search-field,
.origin-search-field { position: relative; }
.address-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.address-fields label:first-child,
.address-fields .autocomplete-list {
  grid-column: 1 / -1;
}
.autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 12px);
  z-index: 1200;
  display: grid;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(6, 26, 51, .16);
}
.autocomplete-list button {
  display: grid;
  justify-items: start;
  gap: 3px;
  width: 100%;
  min-height: auto;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}
.autocomplete-list button:hover {
  transform: none;
  background: #f5fbff;
  box-shadow: none;
}
.autocomplete-list button:last-child { border-bottom: 0; }
.autocomplete-list strong { font-size: 13px; }
.autocomplete-list span,
.autocomplete-empty { color: var(--muted); font-size: 12px; }
.autocomplete-empty { padding: 12px 13px; }
.origin-autocomplete {
  top: calc(100% + 6px);
  z-index: 1300;
}
.origin-autocomplete {
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .14);
}
.origin-autocomplete .origin-suggestion-item {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 10px;
  min-height: 54px;
  padding: 9px 11px;
}
.origin-suggestion-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: 999px;
  background: rgba(79, 70, 229, .08);
  color: var(--outlo-brand-accent);
}
.origin-suggestion-marker::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
  content: "";
}
.origin-suggestion-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.origin-suggestion-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.origin-suggestion-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.origin-type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 112px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft) !important;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.origin-suggestion-region .origin-suggestion-main { align-items: flex-start; }
.origin-suggestion-region .origin-suggestion-main strong { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.origin-suggestion-region .origin-type-badge { flex-shrink: 0; }
.origin-suggestion-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  overflow: hidden;
  color: var(--text-muted) !important;
  font-size: 12px !important;
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}
.origin-autocomplete .origin-suggestion-debug {
  font-family: monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.origin-suggestion-credit {
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
  overflow-wrap: anywhere;
  white-space: normal;
}
.origin-suggestion-credit a { color: inherit; text-decoration: underline; }
.origin-autocomplete .origin-suggestion-item[aria-selected="true"],
.origin-autocomplete .origin-suggestion-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: #eef2ff;
}
.autocomplete-loading {
  color: var(--text-soft);
}
.origin-search-field .hint {
  margin-top: 6px;
}
#locationHint {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--outlo-brand-text);
  box-shadow: none;
  font-size: inherit;
  font-weight: 850;
}
.link-button:hover {
  transform: none;
  background: transparent;
  color: var(--outlo-brand-text-hover);
  box-shadow: none;
}
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }
.location-picker { display: grid; gap: 8px; }
#eventLocationMap { height: 260px; min-height: 220px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; touch-action: pan-x pan-y; }
.stack-form { display: grid; gap: 12px; }

.auth-page {
  background: var(--soft);
}
.auth-layout {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px) 18px;
}
.auth-card {
  width: min(460px, 100%);
  display: grid;
  gap: 22px;
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid rgba(213, 225, 238, .9);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 28px 80px rgba(6, 26, 51, .13);
  backdrop-filter: blur(16px);
}
.auth-card-head { display: grid; gap: 7px; text-align: left; }
.auth-card h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.05; margin: 0; color: var(--navy); }
.auth-card .hint { font-size: 14px; }
.auth-card .stack-form { gap: 15px; }
.auth-card label { color: var(--navy); }
.auth-card input {
  min-height: 46px;
  border-radius: 12px;
  background: #F8FAFC;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .13);
}
.remember-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.auth-card .remember-login input {
  min-height: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.remember-login span {
  line-height: 1.2;
}
.auth-submit { width: 100%; min-height: 48px; border-radius: 14px; margin-top: 2px; }
.auth-card a { color: var(--outlo-brand-text); font-weight: 850; text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }

.auth-split-layout {
  width: min(100% - 32px, 1120px);
  min-height: calc(100dvh - 72px);
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr);
  place-items: stretch;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 24px 0 42px;
}

.auth-brand-panel {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f5f8ff 46%, #eef4ff 100%);
  box-shadow: var(--shadow-sm);
}

.auth-brand-logo {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.auth-brand-panel h1 {
  max-width: 520px;
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-brand-panel p:not(.auth-brand-logo) {
  max-width: 460px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.auth-event-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 18px 46px rgba(15, 23, 42, .08);
}

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

.auth-preview-head,
.auth-preview-event {
  display: grid;
  align-items: center;
}

.auth-preview-head {
  grid-template-columns: 1fr auto;
  padding: 2px 2px 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-preview-head strong {
  color: var(--outlo-brand-text);
  font-size: 12px;
}

.auth-preview-event {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
}

.auth-preview-event strong,
.auth-preview-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-preview-event strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.auth-preview-event small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-preview-dot {
  width: 11px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
}

.auth-preview-dot.music { background: #7c3aed; }
.auth-preview-dot.festival { background: #16a34a; }
.auth-preview-dot.gastro { background: #f59e0b; }

.auth-preview-tag {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.auth-preview-empty {
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 13px 14px;
  border: 1px dashed rgba(148, 163, 184, .42);
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
}

.auth-preview-empty strong {
  color: var(--text);
  font-size: 14px;
}

.auth-preview-empty small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  padding: 8px 11px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
}

.auth-split-layout .auth-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  border-radius: 20px;
}

.auth-back-link {
  justify-self: start;
  color: var(--text-muted) !important;
  font-size: 13px;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-label-row a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 760;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  display: block;
  width: 100%;
  padding-right: 46px;
}

.password-field button {
  position: absolute;
  right: 7px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.password-field button:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.password-field svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-switch {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.admin-layout { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 24px 0 42px; }
.admin-hero { display: grid; gap: 6px; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-section { display: grid; align-content: start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.wide-section { grid-column: 1 / -1; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stat-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #F8FAFC;
}
.stat-card span, .stat-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.stat-card strong {
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}
.stats-lists {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stats-lists h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
}
.stat-list {
  display: grid;
  gap: 7px;
}
.stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(229, 234, 240, .72);
  border-radius: 13px;
  background: #fff;
}
.stat-row strong {
  color: var(--outlo-brand-text);
  font-size: 13px;
}
.empty-stat { grid-template-columns: 1fr; color: var(--muted); font-size: 12px; }
.confirm-dialog { display: grid; gap: 12px; min-width: min(420px, calc(100vw - 32px)); padding-bottom: 18px; }
.confirm-dialog p { margin: 0; padding: 0 18px; color: var(--ink); line-height: 1.5; }

.dialog-kicker {
  margin: 3px 0 0 !important;
  padding: 0 !important;
  color: var(--muted, #64748b) !important;
  font-size: 12px;
}

.promotion-confirm-content {
  display: grid;
  gap: 10px;
  padding: 0 18px 4px;
}

.promotion-confirm-content > strong {
  color: var(--ink, #0f172a);
  font-size: 16px;
}

.promotion-confirm-content > span {
  margin-top: -6px;
  color: var(--muted, #64748b);
  font-size: 12px;
}

.promotion-confirm-content > p {
  padding: 0;
  color: var(--muted, #64748b);
  font-size: 13px;
}

.promotion-confirm-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: 11px;
  background: rgba(238, 242, 255, .72);
  color: var(--muted, #64748b);
  font-size: 12px;
}

.promotion-confirm-balance strong {
  color: #4338ca;
  font-size: 14px;
}

.promotion-confirm-content .promotion-confirm-notice {
  color: #9a5a08;
}

.promotion-credit-sources {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(238, 242, 255, .78), rgba(255, 255, 255, .8));
}

.promotion-credit-sources legend {
  padding: 0 4px;
  color: var(--ink, #0f172a);
  font-size: 12px;
  font-weight: 700;
}

.promotion-credit-source {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, .84);
  border-radius: 9px;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.promotion-credit-source input { margin: 3px 0 0; accent-color: #4f46e5; }
.promotion-credit-source span { display: grid; gap: 2px; }
.promotion-credit-source strong { color: var(--ink, #0f172a); font-size: 13px; }
.promotion-credit-source small { color: var(--muted, #64748b); font-size: 12px; line-height: 1.35; }
.promotion-credit-source:hover { border-color: rgba(79, 70, 229, .42); background: #fff; }
.promotion-credit-source:has(input:checked) { border-color: rgba(79, 70, 229, .7); box-shadow: 0 0 0 3px rgba(79, 70, 229, .09); }
.promotion-credit-source.is-unavailable { cursor: not-allowed; opacity: .64; background: rgba(248, 250, 252, .8); }
.promotion-credit-source.is-unavailable:hover { border-color: rgba(203, 213, 225, .84); background: rgba(248, 250, 252, .8); }

.promotion-offer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: 12px;
  background: rgba(248, 250, 255, .72);
}

.promotion-offer-options legend { padding: 0 4px; color: var(--ink, #0f172a); font-size: 12px; font-weight: 700; }
.promotion-offer-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; min-height: 72px; padding: 10px; border: 1px solid rgba(203, 213, 225, .86); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.promotion-offer-card input { margin: 3px 0 0; accent-color: #4f46e5; }
.promotion-offer-card span { display: grid; gap: 3px; }
.promotion-offer-card strong { color: var(--ink, #0f172a); font-size: 13px; }
.promotion-offer-card small { color: var(--muted, #64748b); font-size: 11px; line-height: 1.3; }
.promotion-offer-card b { color: #4338ca; font-size: 12px; white-space: nowrap; }
.promotion-offer-card em { grid-column: 2 / -1; color: #5b52ae; font-size: 10px; font-style: normal; font-weight: 600; }
.promotion-offer-card:hover { border-color: rgba(79, 70, 229, .42); }
.promotion-offer-card:has(input:checked) { border-color: rgba(79, 70, 229, .72); background: rgba(238, 242, 255, .62); box-shadow: 0 0 0 3px rgba(79, 70, 229, .09); }
.promotion-offer-card.top b { color: #6d28d9; }
.promotion-offer-card.custom { grid-column: 1 / -1; min-height: auto; }
.promotion-custom-period { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.promotion-custom-period label { display: grid; gap: 4px; color: var(--muted, #64748b); font-size: 11px; }
.promotion-custom-period input, .promotion-custom-period select { width: 100%; min-height: 38px; }
.promotion-campaign-summary { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid rgba(34, 197, 94, .24); border-radius: 10px; background: rgba(240, 253, 244, .72); }
.promotion-campaign-summary strong { color: #166534; font-size: 13px; }
.promotion-campaign-summary span, .promotion-campaign-summary small { color: #47725b; font-size: 12px; line-height: 1.35; }
.promotion-campaign-summary.is-warning { border-color: rgba(217, 119, 6, .25); background: #fffbeb; color: #9a5a08; font-size: 12px; }
@media (max-width: 540px) { .promotion-offer-options, .promotion-custom-period { grid-template-columns: 1fr; } }
.access-dialog,
.welcome-dialog { min-width: min(560px, calc(100vw - 32px)); }
#addEventAccessDialog {
  width: min(500px, calc(100vw - 28px));
}

.access-dialog {
  width: 100%;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(221, 228, 238, .82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 8%, rgba(79, 70, 229, .10), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.access-dialog .dialog-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  padding: 0;
}

.access-dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(199, 210, 254, .88);
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--outlo-brand-accent);
  box-shadow: 0 14px 30px rgba(79, 70, 229, .14);
}

.access-dialog-icon svg {
  width: var(--outlo-icon-xl, 24px);
  height: var(--outlo-icon-xl, 24px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: var(--outlo-icon-stroke, 1.8);
}

.access-dialog .dialog-head h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
}

.access-dialog .icon-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-color: transparent;
  background: rgba(248, 250, 252, .84);
  color: var(--text-muted);
  box-shadow: none;
}

.access-dialog .icon-button:hover,
.access-dialog .icon-button:focus-visible {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  transform: none;
}

.access-dialog #addEventAccessText {
  padding: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.62;
}

.access-dialog .dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 0 0;
}

.access-dialog .dialog-actions .button-link,
.access-dialog .dialog-actions button {
  min-height: 44px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.access-dialog #guestAccessActions .button-link.primary {
  order: 1;
}

.access-dialog #guestAccessActions .button-link:not(.primary) {
  order: 2;
  background: #fff;
}

@media (max-width: 560px) {
  .access-dialog {
    padding: 20px;
    border-radius: 20px;
  }

  .access-dialog .dialog-head {
    grid-template-columns: 46px minmax(0, 1fr) 36px;
    gap: 11px;
  }

  .access-dialog-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .access-dialog .dialog-head h2 {
    font-size: 21px;
  }

  .access-dialog .dialog-actions {
    grid-template-columns: 1fr;
  }
}
#organizerWelcomeDialog,
#eventCreateGuideDialog {
  width: min(720px, calc(100vw - 28px));
}
.welcome-dialog {
  width: 100%;
  max-width: none;
  max-height: min(86vh, 760px);
  overflow: auto;
  gap: 14px;
}
.access-dialog .dialog-actions,
.welcome-dialog .dialog-actions { padding-top: 4px; }
.welcome-steps {
  display: grid;
  gap: 10px;
  padding: 0 18px;
}
.welcome-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 750;
}
.welcome-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}
.welcome-rules {
  display: grid;
  gap: 0;
  margin: 0 18px;
  padding: 0;
  border: 1px solid rgba(221, 228, 238, .86);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.welcome-rules div {
  display: grid;
  gap: 5px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(221, 228, 238, .72);
  background: #fff;
}
.welcome-rules div:last-child { border-bottom: 0; }
.welcome-rules div:hover { background-color: rgba(248, 250, 252, .92); }
.welcome-rules strong {
  color: var(--navy);
  font-size: 13.5px;
}
.welcome-rules span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.rules-accepted-note {
  margin: 0 18px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--success-line);
  border-radius: 13px;
  background: var(--success-soft);
  color: #166534 !important;
  font-size: 13px;
  font-weight: 800;
}
.rules-confirm {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 18px 0;
  padding: 12px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  #organizerWelcomeDialog,
  #eventCreateGuideDialog {
    width: calc(100vw - 20px);
  }
  .welcome-dialog {
    max-width: calc(100vw - 20px);
  }
  .confirm-dialog p,
  .welcome-rules,
  .rules-accepted-note,
  .rules-confirm {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  .confirm-dialog p {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Admin events dropdown post-table override. */
#view-events .admin-panel,
#eventsGrid.data-grid,
#view-events .admin-events-table-wrap,
#view-events .admin-events-table,
#view-events .admin-events-table tbody,
#view-events .admin-events-table tr,
#view-events .admin-events-table td {
  overflow: visible !important;
}

#view-events .admin-events-table .event-actions-cell,
#view-events .admin-events-table .action-menu {
  position: relative;
}

#view-events .admin-events-table .admin-events-row:has(.action-menu[open]),
#view-events .admin-events-table .event-actions-cell:has(.action-menu[open]) {
  z-index: 80;
}

#view-events .admin-events-table .action-menu[open] {
  z-index: 120;
}

#view-events .admin-events-table .action-menu-panel {
  box-sizing: border-box !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(320px, calc(100vw - 32px)) !important;
  z-index: 130;
}

#view-events .admin-events-table .action-menu-panel *,
#view-events .admin-events-table .action-menu-panel button,
#view-events .admin-events-table .action-menu-panel a {
  box-sizing: border-box !important;
}

#view-events .admin-events-table .action-menu-panel button,
#view-events .admin-events-table .action-menu-panel a {
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

#view-events .admin-events-table .event-row-actions > button[data-edit-event],
#view-events .admin-events-table .event-row-actions > .action-menu > summary {
  border-color: var(--accent-line) !important;
  background: var(--accent-soft) !important;
  color: var(--accent-dark) !important;
}

#view-events .admin-events-table .event-row-actions > button[data-edit-event]:hover,
#view-events .admin-events-table .event-row-actions > button[data-edit-event]:focus-visible,
#view-events .admin-events-table .event-row-actions > .action-menu > summary:hover,
#view-events .admin-events-table .event-row-actions > .action-menu[open] > summary,
#view-events .admin-events-table .event-row-actions > .action-menu > summary:focus-visible {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #fff !important;
}

@media (max-width: 850px) {
  #view-events .admin-events-table .action-menu-panel {
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: calc(100% + 8px) !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 40px) !important;
  }
}

/* Outlo UI refresh final table priority lock. Keep this block last. */
.admin-main {
  width: auto;
  max-width: none;
}

.admin-shell-page {
  overflow-x: hidden;
}

@media (min-width: 901px) {
  #eventsGrid .data-head,
  #eventsGrid .data-row {
    min-width: 0;
    grid-template-columns:
      minmax(150px, 1.45fr)
      minmax(120px, .95fr)
      108px
      96px
      118px
      190px;
  }

  #eventsGrid .data-head > *:nth-child(3),
  #eventsGrid .data-head > *:nth-child(6),
  #eventsGrid .data-head > *:nth-child(7),
  #eventsGrid .data-row > div:nth-child(3),
  #eventsGrid .data-row > div:nth-child(6),
  #eventsGrid .data-row > div:nth-child(7),
  #usersGrid .data-head > *:nth-child(5),
  #usersGrid .data-row > div:nth-child(5),
  #reportsGrid .data-head > *:nth-child(3),
  #reportsGrid .data-head > *:nth-child(4),
  #reportsGrid .data-head > *:nth-child(7),
  #reportsGrid .data-row > div:nth-child(3),
  #reportsGrid .data-row > div:nth-child(4),
  #reportsGrid .data-row > div:nth-child(7),
  #imagesGrid .data-head > *:nth-child(1),
  #imagesGrid .data-head > *:nth-child(5),
  #imagesGrid .data-row > div:nth-child(1),
  #imagesGrid .data-row > div:nth-child(5) {
    display: none;
  }

  #usersGrid .data-head,
  #usersGrid .data-row {
    min-width: 0;
    grid-template-columns:
      minmax(110px, 1fr)
      minmax(160px, 1.18fr)
      92px
      82px
      100px
      48px
      58px
      182px;
  }

  #reportsGrid .data-head,
  #reportsGrid .data-row {
    min-width: 0;
    grid-template-columns:
      102px
      minmax(130px, 1.1fr)
      minmax(112px, .92fr)
      minmax(170px, 1.35fr)
      80px
      80px
      190px;
  }

  #imagesGrid .data-head,
  #imagesGrid .data-row {
    min-width: 0;
    grid-template-columns:
      126px
      minmax(170px, 1.25fr)
      minmax(120px, .9fr)
      132px
      96px
      160px;
  }
}

/* Admin events dropdown true final override. */
#view-events .admin-panel,
#eventsGrid.data-grid,
#view-events .admin-events-table-wrap,
#view-events .admin-events-table,
#view-events .admin-events-table tbody,
#view-events .admin-events-table tr,
#view-events .admin-events-table td {
  overflow: visible !important;
}

#view-events .admin-events-table .event-actions-cell,
#view-events .admin-events-table .action-menu {
  position: relative;
}

#view-events .admin-events-table .admin-events-row:has(.action-menu[open]),
#view-events .admin-events-table .event-actions-cell:has(.action-menu[open]) {
  z-index: 80;
}

#view-events .admin-events-table .action-menu[open] {
  z-index: 120;
}

#view-events .admin-events-table .action-menu-panel {
  box-sizing: border-box !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(320px, calc(100vw - 32px)) !important;
  z-index: 130;
}

#view-events .admin-events-table .action-menu-panel *,
#view-events .admin-events-table .action-menu-panel button,
#view-events .admin-events-table .action-menu-panel a {
  box-sizing: border-box !important;
}

#view-events .admin-events-table .action-menu-panel button,
#view-events .admin-events-table .action-menu-panel a {
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

@media (max-width: 850px) {
  #view-events .admin-events-table .action-menu-panel {
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: calc(100% + 8px) !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 40px) !important;
  }
}

/* Admin events dropdown final layer. Keep after generic table rules. */
#view-events .admin-panel,
#eventsGrid.data-grid,
#view-events .admin-events-table-wrap,
#view-events .admin-events-table,
#view-events .admin-events-table tbody,
#view-events .admin-events-table tr,
#view-events .admin-events-table td {
  overflow: visible;
}

#view-events .admin-events-table .event-actions-cell {
  position: relative;
  z-index: 20;
}

#view-events .admin-events-table .admin-events-row:has(.action-menu[open]),
#view-events .admin-events-table .event-actions-cell:has(.action-menu[open]) {
  position: relative;
  z-index: 80;
}

#view-events .admin-events-table .action-menu {
  position: relative;
  z-index: 90;
}

#view-events .admin-events-table .action-menu[open] {
  z-index: 120;
}

#view-events .admin-events-table .action-menu-panel {
  box-sizing: border-box;
  width: max-content;
  min-width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  z-index: 130;
}

#view-events .admin-events-table .action-menu-panel *,
#view-events .admin-events-table .action-menu-panel button,
#view-events .admin-events-table .action-menu-panel a {
  box-sizing: border-box;
}

#view-events .admin-events-table .action-menu-panel button,
#view-events .admin-events-table .action-menu-panel a {
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
}

@media (max-width: 850px) {
  #view-events .admin-events-table .action-menu-panel {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: max-content;
    min-width: max-content;
    max-width: calc(100vw - 40px);
  }

  #view-events .admin-events-table .action-menu-panel button,
  #view-events .admin-events-table .action-menu-panel a {
    min-height: 40px;
  }
}

/* Admin events polish: date labels, unclipped row menu, calm active map nav. */
#view-events .admin-filter-date {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

#view-events .admin-filter-date:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

#view-events .admin-filter-date span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

#view-events .admin-filter-date input {
  width: 100%;
  min-width: 0;
  min-height: calc(var(--control-height) - 2px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-events .admin-filter-date input:focus {
  outline: 0;
  box-shadow: none;
}

#eventsGrid.data-grid,
#view-events .admin-events-table-wrap {
  overflow: visible;
}

#view-events .action-menu {
  z-index: 120;
}

#view-events .action-menu[open] {
  z-index: 220;
}

#view-events .action-menu-panel {
  box-sizing: border-box;
  z-index: 230;
  min-width: 220px;
}

#view-events .action-menu-panel *,
#view-events .action-menu-panel button,
#view-events .action-menu-panel a {
  box-sizing: border-box;
}

#view-events .action-menu-panel button,
#view-events .action-menu-panel a {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-inline: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

@media (max-width: 850px) {
  #view-events .admin-events-table .action-menu-panel {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(230px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    min-width: min(230px, calc(100vw - 40px));
  }
}

.topnav .nav-item.active:not(.primary) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.topnav .nav-item.active:not(.primary):hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Final mobile admin events layout lock. Keep this block last. */
@media (max-width: 850px) {
  .admin-shell-page {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  .admin-sidebar {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding: 10px 12px !important;
    overflow: hidden !important;
  }

  .admin-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px !important;
    scrollbar-width: thin;
  }

  .admin-menu button {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    white-space: nowrap !important;
  }

  .admin-main {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
}

@media (max-width: 850px) {
  .admin-shell-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .admin-sidebar {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: auto;
    height: auto;
    min-height: 0;
    display: block;
    padding: 10px 12px;
    overflow: hidden;
  }

  .admin-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .admin-menu button {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .admin-main {
    grid-column: 1;
    grid-row: 3;
  }
}

#eventsGrid .data-head,
#eventsGrid .data-row {
  min-width: 0;
  grid-template-columns:
    minmax(140px, 1.35fr)
    minmax(108px, .9fr)
    minmax(82px, .65fr)
    108px
    90px
    120px
    216px;
}

#eventsGrid .data-head > *:nth-child(6),
#eventsGrid .data-head > *:nth-child(7),
#eventsGrid .data-row > div:nth-child(6),
#eventsGrid .data-row > div:nth-child(7) {
  display: none;
}

#usersGrid .data-head,
#usersGrid .data-row {
  min-width: 0;
  grid-template-columns:
    minmax(110px, 1fr)
    minmax(160px, 1.18fr)
    92px
    82px
    100px
    48px
    58px
    182px;
}

#usersGrid .data-head > *:nth-child(5),
#usersGrid .data-row > div:nth-child(5) {
  display: none;
}

#reportsGrid .data-head,
#reportsGrid .data-row {
  min-width: 0;
  grid-template-columns:
    102px
    minmax(130px, 1.1fr)
    minmax(112px, .92fr)
    minmax(170px, 1.35fr)
    80px
    80px
    190px;
}

#reportsGrid .data-head > *:nth-child(3),
#reportsGrid .data-head > *:nth-child(4),
#reportsGrid .data-head > *:nth-child(7),
#reportsGrid .data-row > div:nth-child(3),
#reportsGrid .data-row > div:nth-child(4),
#reportsGrid .data-row > div:nth-child(7) {
  display: none;
}

#imagesGrid .data-head,
#imagesGrid .data-row {
  min-width: 0;
  grid-template-columns:
    126px
    minmax(170px, 1.25fr)
    minmax(120px, .9fr)
    132px
    96px
    160px;
}

#imagesGrid .data-head > *:nth-child(1),
#imagesGrid .data-head > *:nth-child(5),
#imagesGrid .data-row > div:nth-child(1),
#imagesGrid .data-row > div:nth-child(5) {
  display: none;
}

#requestsGrid .data-head,
#requestsGrid .data-row {
  min-width: 0;
  grid-template-columns:
    108px
    minmax(130px, 1fr)
    minmax(190px, 1.2fr)
    minmax(240px, 1.5fr)
    100px
    180px;
}

#moderationGrid .data-head,
#moderationGrid .data-row {
  min-width: 0;
  grid-template-columns:
    minmax(150px, 1.3fr)
    minmax(190px, 1.3fr)
    130px
    92px
    78px
    116px
    190px;
}

#notificationsGrid .data-head,
#notificationsGrid .data-row,
#auditGrid .data-head,
#auditGrid .data-row {
  min-width: 1040px;
}

#eventsGrid .event-row-actions,
#usersGrid .row-actions {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  align-content: center;
}

#usersGrid .row-actions {
  grid-template-columns: repeat(3, max-content);
}

#reportsGrid .row-actions,
#imagesGrid .row-actions,
#requestsGrid .row-actions,
#moderationGrid .row-actions {
  max-width: none;
}

.action-menu {
  position: relative;
  display: inline-flex;
}

.action-menu summary {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  list-style: none;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu summary:hover,
.action-menu[open] summary {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.action-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.action-menu:not([open]) .action-menu-panel {
  display: none;
}

.action-menu-panel button,
.action-menu-panel a {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.action-menu-panel button:hover,
.action-menu-panel a:hover {
  background: var(--surface-muted);
  color: var(--text);
  box-shadow: none;
}

.action-menu-panel .danger {
  color: var(--danger);
}

#eventsGrid .event-row-actions,
#usersGrid .row-actions {
  grid-template-columns: repeat(3, max-content);
}

@media (min-width: 901px) {
  #eventsGrid .data-row,
  #reportsGrid .data-row,
  #requestsGrid .data-row,
  #moderationGrid .data-row {
    min-height: 68px;
  }

  #usersGrid .data-row {
    min-height: 76px;
  }
}

@media (max-width: 900px) {
  #eventsGrid .data-head,
  #eventsGrid .data-row,
  #usersGrid .data-head,
  #usersGrid .data-row,
  #reportsGrid .data-head,
  #reportsGrid .data-row,
  #imagesGrid .data-head,
  #imagesGrid .data-row,
  #requestsGrid .data-head,
  #requestsGrid .data-row,
  #moderationGrid .data-head,
  #moderationGrid .data-row,
  #notificationsGrid .data-head,
  #notificationsGrid .data-row,
  #auditGrid .data-head,
  #auditGrid .data-row {
    min-width: 0;
    grid-template-columns: 1fr !important;
  }

  #eventsGrid .event-row-actions,
  #usersGrid .row-actions {
    display: flex;
    justify-content: flex-start;
  }
}
.rules-confirm input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 18px;
  accent-color: var(--accent);
}
.rules-confirm a {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.event-confirm {
  margin: 0;
  background: #f8fbff;
}
.dialog-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}


.organizer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--secondary-line);
  border-radius: 18px;
  background: var(--secondary-soft);
  box-shadow: 0 12px 30px rgba(6, 182, 212, .08);
}
.organizer-card strong { display: block; color: var(--navy); font-size: 14px; }
.organizer-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.organizer-card button {
  grid-column: 1 / -1;
  --btn-border: var(--secondary-line);
  --btn-color: var(--accent-dark);
  --btn-bg: #fff;
  --btn-hover-bg: var(--accent-soft);
  border-radius: 12px;
}
.organizer-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.organizer-icon svg {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;

  stroke-linejoin: round;
}

.category-pin {
  --pin-color: var(--accent);
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 18px 18px 18px 5px;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--pin-color) 84%, #fff) 0%,
    var(--pin-color) 52%,
    color-mix(in srgb, var(--pin-color) 88%, #020617) 100%
  );
  border: 2px solid #fff;
  box-shadow: 0 10px 22px rgba(6, 26, 51, .28), 0 0 0 1px rgba(6, 26, 51, .13);
  cursor: pointer;
  transform: rotate(-45deg);
  transform-origin: 50% 74%;
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-chip-icon svg.category-icon-refined,
.category-badge-icon svg.category-icon-refined,
.category-pin-icon svg.category-icon-refined {
  stroke-width: 1.7;
}

/* Category artwork supplied for Outlo: tinted through masks so category colours remain consistent. */
.category-art {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--category-art) center / contain no-repeat;
  mask: var(--category-art) center / contain no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.category-art-hudebni { --category-art: url("/assets/category-icons/hudebni.png"); }
.category-art-festivaly { --category-art: url("/assets/category-icons/festivaly.png"); }
.category-art-kulturni { --category-art: url("/assets/category-icons/kulturni.png"); }
.category-art-sport { --category-art: url("/assets/category-icons/sport.png"); }
.category-art-auto-moto { --category-art: url("/assets/category-icons/auto-moto.png"); }
.category-art-gastro { --category-art: url("/assets/category-icons/gastro.png"); }
.category-art-trhy { --category-art: url("/assets/category-icons/trhy.png"); }
.category-art-priroda { --category-art: url("/assets/category-icons/priroda.png"); }
.category-art-ostatni { --category-art: url("/assets/category-icons/ostatni.png"); }

.category-chip-icon .category-art,
.category-badge-icon .category-art {
  width: 15px;
  height: 15px;
}

.category-pin-icon .category-art {
  width: 23px;
  height: 23px;
}

/* The supplied filled category artwork needs a little more visual room than the former line icons. */
.category-chip-icon .category-art {
  width: 18px;
  height: 18px;
}

.category-badge-icon .category-art {
  width: 17px;
  height: 17px;
}

.category-pin-icon {
  width: 30px;
  height: 30px;
}

.category-pin-icon .category-art {
  width: 30px;
  height: 30px;
}

/* Optical alignment for the supplied artwork: source files have different transparent margins. */
.category-art-sport,
.category-art-kulturni {
  transform: scale(1.24);
  transform-origin: center;
}

.category-art-gastro {
  transform: scale(.88);
  transform-origin: center;
}

/* Pin artwork uses optical, category-specific scaling only. The marker geometry stays untouched. */
.category-pin-icon .category-art {
  transform: scale(var(--pin-art-scale, 1));
  transform-origin: center;
}

.category-pin-icon .category-art-hudebni { --pin-art-scale: 1; }
.category-pin-icon .category-art-festivaly { --pin-art-scale: 1.1; }
.category-pin-icon .category-art-kulturni { --pin-art-scale: 1.36; }
.category-pin-icon .category-art-sport { --pin-art-scale: 1.38; }
.category-pin-icon .category-art-auto-moto { --pin-art-scale: 1.1; }
.category-pin-icon .category-art-gastro { --pin-art-scale: .88; }
.category-pin-icon .category-art-trhy { --pin-art-scale: 1.15; }
.category-pin-icon .category-art-priroda { --pin-art-scale: 1.03; }
.category-pin-icon .category-art-ostatni { --pin-art-scale: 1; }
.category-pin::before {
  display: none;
}
.category-pin-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
.category-pin-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(6, 26, 51, .22));
}
.category-pin::after {
  display: none;
}
.category-pin-wrap { cursor: pointer; }
.category-pin-wrap.is-hovered .category-pin {
  transform: rotate(-45deg) scale(1.13);
  box-shadow: 0 14px 30px rgba(6, 26, 51, .36), 0 0 0 1px rgba(6, 26, 51, .2);
}
.category-pin-wrap.is-hovered { z-index: 720 !important; }
.event-marker-tooltip {
  min-width: 0;
  max-width: 240px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 11px;
  padding: 8px 11px;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--navy);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .05);
}
.event-marker-tooltip::before { border-top-color: rgba(255,255,255,.96); }
.event-marker-tooltip-title,
.event-marker-tooltip-meta {
  display: block;
}
.event-marker-tooltip-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #0f172a;
  font-weight: 650;
}
.event-marker-tooltip-meta {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}
/* Zoom stays paired; location sits separately below it. */
#map .leaflet-control-zoom.outlo-map-controls {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, .10));
  overflow: visible;
}
#map .outlo-map-controls > :is(a, button) {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e6ed;
  border-radius: 0;
  background: #fff;
  color: #24324a;
  box-shadow: none;
  line-height: 1;
  text-decoration: none;
  transform: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s ease, color .16s ease;
}
#map .outlo-map-controls > a:first-child { border-bottom: 0; border-radius: 10px 10px 0 0; }
#map .outlo-map-controls > a + a { border-top-color: #e6e9f0; border-radius: 0 0 10px 10px; }
#map .outlo-map-controls > :is(a, button):is(:hover, :focus-visible) { background: var(--outlo-brand-soft); color: var(--outlo-brand-accent); }
#map .outlo-map-controls > :is(a, button):focus-visible { outline: 2px solid var(--outlo-brand-accent); outline-offset: -3px; }
#map .outlo-map-controls > :is(.leaflet-disabled, :disabled) { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
#map .outlo-map-controls > .map-location-button { margin-top: 8px; border-radius: 10px; color: var(--outlo-brand-accent); }
#map .map-location-button svg { width: var(--outlo-icon-md, 18px); height: var(--outlo-icon-md, 18px); fill: none; stroke: currentColor; stroke-width: var(--outlo-icon-stroke, 1.8); stroke-linecap: round; stroke-linejoin: round; }
#map .outlo-map-controls > .map-location-button.is-loading { background: var(--outlo-brand-soft); color: var(--outlo-brand-accent); cursor: wait; }
#map .map-location-button.is-loading svg { animation: mapLocationLoading 1.6s linear infinite; }
@keyframes mapLocationLoading { to { transform: rotate(360deg); } }
@media (max-width: 1120px), (pointer: coarse) {
  #map .outlo-map-controls > :is(a, button) { width: 36px; height: 36px; }
  #map .outlo-map-controls > a { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #map .map-location-button.is-loading svg { animation: none; }
  #map .outlo-map-controls > :is(a, button) { transition: none; }
}
.origin-marker-wrap {
  cursor: default;
  border-radius: 50%;
}
.origin-marker-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.origin-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(79, 70, 229, .09);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .16);
}
.origin-marker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(79, 70, 229, .36);
  background: rgba(79, 70, 229, .08);
  animation: originPulse 3.6s ease-out infinite;
  pointer-events: none;
}
.origin-marker::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: linear-gradient(145deg, #6366f1, #4f46e5 65%, #4338ca);
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(49, 46, 129, .25), 0 0 0 1px rgba(79, 70, 229, .18);
}
.origin-marker span {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
}
.leaflet-tooltip.origin-marker-tooltip {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: min(260px, calc(100vw - 40px));
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 6px 11px 6px 6px;
  background: #fff;
  color: #312e81;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
  box-shadow: 0 4px 14px rgba(49, 46, 129, .13), 0 1px 3px rgba(15, 23, 42, .06);
}
.leaflet-tooltip-top.origin-marker-tooltip::before {
  bottom: -5px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border: 0;
  border-right: 1px solid #c7d2fe;
  border-bottom: 1px solid #c7d2fe;
  background: #fff;
  transform: rotate(45deg);
}
.origin-tooltip-icon {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #eef2ff;
  color: var(--outlo-brand-accent);
}
.origin-tooltip-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.origin-tooltip-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
@keyframes originPulse {
  0% { transform: scale(.9); opacity: .55; }
  75%, 100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .origin-marker::before { animation: none; opacity: .3; }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 108px;
    padding: 10px 14px;
  }
  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    gap: 7px;
  }
  .top-actions { justify-content: flex-end; gap: 7px; }
  .nav-item { justify-content: center; }
  .top-actions .nav-item span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-menu-panel {
    right: 0;
    min-width: min(300px, calc(100vw - 28px));
  }
  .profile-layout { width: min(100% - 24px, 720px); margin-top: 18px; }
  .profile-head { display: grid; padding: 18px; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-event-item { grid-template-columns: 1fr; }
  .profile-event-item em { width: fit-content; }
  .map-layout {
    position: relative;
    display: block;
    height: calc(100dvh - 108px);
    min-height: 560px;
    padding: 0;
    overflow: hidden;
    background: #eaf1f8;
  }
  .filter-panel {
    position: absolute;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    z-index: 780;
    width: auto;
    height: min(72dvh, 620px);
    max-height: calc(100% - 20px);
    padding: 8px 14px 16px;
    border: 1px solid rgba(229, 234, 240, .72);
    border-radius: 24px 24px 20px 20px;
    box-shadow: 0 22px 70px rgba(6, 26, 51, .22);
    transform: translateY(calc(100% - 174px));
    transition: transform .24s ease, box-shadow .24s ease;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .filter-panel.sheet-expanded {
    overflow-y: auto;
    transform: translateY(0);
  }
  .filter-panel:not(.sheet-expanded) {
    overflow: hidden;
  }
  .mobile-sheet-handle {
    position: sticky;
    top: -8px;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 5px;
    width: calc(100% + 28px);
    min-height: 42px;
    margin: -8px -14px 8px;
    padding: 8px 14px 7px;
    border: 0;
    border-bottom: 1px solid rgba(229, 234, 240, .75);
    border-radius: 24px 24px 0 0;
    background: rgba(255,255,255,.98);
    color: var(--navy);
    box-shadow: none;
    touch-action: none;
    cursor: grab;
  }
  .mobile-sheet-handle:hover {
    transform: none;
    box-shadow: none;
    background: #fff;
  }
  .mobile-sheet-handle span {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #c8d4df;
  }
  .mobile-sheet-handle strong {
    font-size: 12px;
    line-height: 1;
    letter-spacing: .02em;
  }
  .segmented-time { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date-range-fields { grid-template-columns: 1fr; }
  .map-stage {
    position: absolute;
    inset: 0;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  #map { height: 100%; min-height: 100%; }
  .map-layout .leaflet-top.leaflet-left {
    top: 10px;
    left: 10px;
  }
  .detail-panel { position: fixed; inset: auto 10px 10px; width: auto; max-height: 70vh; z-index: 820; }
  .form-grid, dl, .admin-grid, .stats-grid, .stats-lists, .address-fields { grid-template-columns: 1fr; }
  .wide-section { grid-column: auto; }
  .inline-search { grid-template-columns: 1fr; }
}

.admin-shell-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--soft);
}
.admin-shell-page > .topbar {
  grid-column: 1 / -1;
  grid-row: 1;
}
.admin-sidebar {
  position: sticky;
  top: 70px;
  grid-column: 1;
  grid-row: 2;
  height: calc(100vh - 70px);
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 28px rgba(15, 23, 42, .05);
}
.admin-brand {
  color: var(--navy);
  font-size: 27px;
  font-weight: 950;
  text-decoration: none;
}
.admin-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}
.admin-menu button {
  justify-content: flex-start;
  min-height: 44px;
  border-radius: 14px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted);
}
.admin-menu button.active,
.admin-menu button:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-dark);
  box-shadow: none;
  transform: none;
}
.admin-sidebar-foot {
  display: grid;
  gap: 8px;
}
.admin-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}
.admin-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.admin-topline h1 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}
.admin-view { display: none; }
.admin-view.active {
  display: grid;
  gap: 18px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric-card {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.metric-card strong {
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
}
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.admin-panel,
.admin-panel *,
.data-grid,
.data-row,
.activity-list,
.stat-list {
  min-width: 0;
}
.activity-list *,
.stat-list *,
.data-row > div {
  overflow-wrap: anywhere;
}
.admin-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}
.activity-list {
  display: grid;
  gap: 9px;
}
.activity-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: 15px;
  background: #F8FAFC;
  border: 1px solid var(--line);
}
.activity-item strong {
  min-width: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.activity-item span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(130px, 1fr));
  gap: 10px;
}
.admin-toolbar input,
.admin-toolbar select {
  min-height: 42px;
  border-radius: 13px;
  background: #F8FAFC;
}

.admin-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-attention-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  justify-items: start;
  align-items: center;
  min-height: 82px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  text-align: left;
  box-shadow: var(--shadow-sm);
  border-left-width: 3px;
  border-left-color: transparent;
}

.admin-attention-card:hover {
  border-color: var(--accent-line);
  background: var(--surface-muted);
  transform: translateY(-1px);
}

.admin-attention-card span,
.admin-attention-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-attention-card small {
  grid-column: 1 / -1;
}

.admin-attention-card strong {
  color: var(--outlo-brand-text);
  font-size: 26px;
  line-height: 1;
  justify-self: end;
}

.admin-attention-card.is-zero strong,
.organizer-action-card.is-zero strong {
  color: var(--muted);
}

.admin-attention-card.has-value.info,
.organizer-action-card.has-value.info {
  border-left-color: var(--info);
}

.admin-attention-card.has-value.warning,
.organizer-action-card.has-value.warning {
  border-left-color: var(--warning);
}

.organizer-action-card.has-value.critical {
  border-left-color: var(--danger);
}

.admin-attention-card.has-value.info:hover {
  border-left-color: var(--info);
}

.admin-attention-card.has-value.warning:hover {
  border-left-color: var(--warning);
}

.admin-attention-card.has-value.info strong,
.organizer-action-card.has-value.info strong {
  color: var(--info);
}

.admin-attention-card.has-value.warning strong,
.organizer-action-card.has-value.warning strong {
  color: #B45309;
}

.organizer-action-card.has-value.critical strong {
  color: var(--danger);
}

.moderation-toolbar {
  grid-template-columns: minmax(260px, 1.4fr) minmax(170px, .7fr) minmax(190px, auto) minmax(180px, auto);
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(229, 234, 240, .78);
  border-radius: 18px;
  background: #f8fbff;
}

.moderation-maintenance-button {
  min-height: 42px;
  white-space: nowrap;
}

.switch-filter {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #F8FAFC;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.switch-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-filter span {
  width: 38px;
  height: 22px;
  position: relative;
  border-radius: 999px;
  background: #dbe5ef;
  transition: background .16s ease;
}

.switch-filter span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(6, 26, 51, .18);
  transition: transform .16s ease;
}

.switch-filter input:checked + span {
  background: var(--accent);
}

.switch-filter input:checked + span::after {
  transform: translateX(16px);
}

.moderation-row-actions .action-add {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-dark);
  font-weight: 850;
}

.moderation-row-actions .action-history {
  background: #f7f9fc;
  border-color: #e2eaf3;
  color: var(--navy);
  font-weight: 800;
}

.moderation-history-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-left: 4px solid #cbd5e1;
  background: #fff;
}

.moderation-history-card.warning { border-left-color: var(--warning); background: var(--warning-soft); }
.moderation-history-card.block_new_events,
.moderation-history-card.block_event_edits { border-left-color: var(--warning); background: var(--warning-soft); }
.moderation-history-card.require_event_approval { border-left-color: var(--accent); background: var(--accent-soft); }
.moderation-history-card.suspend_organizer { border-left-color: #8b5cf6; background: #f6f3ff; }
.moderation-history-card.ban_organizer { border-left-color: var(--danger); background: var(--danger-soft); }
.moderation-history-card.restore_organizer { border-left-color: var(--success); background: var(--success-soft); }
.moderation-history-card.revoked,
.moderation-history-card.expired {
  background: #f8fafc;
  border-left-color: #94a3b8;
}

.moderation-history-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.moderation-history-head strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.moderation-history-head span:not(.moderation-action-icon):not(.status-pill) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.moderation-action-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.moderation-history-card .small.ghost {
  justify-self: start;
  min-height: 34px;
}

.moderation-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.moderation-detail-hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(229, 234, 240, .86);
  background: #f8fbff;
}

.moderation-detail-hero h3 {
  margin: 3px 0;
  color: var(--navy);
  font-size: 22px;
}

.moderation-detail-hero p {
  margin: 0;
  color: var(--muted);
}

.moderation-detail-hero.warning { background: var(--warning-soft); border-color: var(--warning-line); }
.moderation-detail-hero.block_new_events,
.moderation-detail-hero.block_event_edits { background: var(--warning-soft); border-color: var(--warning-line); }
.moderation-detail-hero.require_event_approval { background: var(--accent-soft); border-color: var(--accent-line); }
.moderation-detail-hero.suspend_organizer { background: #f6f3ff; border-color: #ddd6fe; }
.moderation-detail-hero.ban_organizer { background: var(--danger-soft); border-color: var(--danger-line); }

.moderation-detail-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.moderation-detail-grid > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.moderation-detail-grid > .wide {
  grid-column: 1 / -1;
}

.moderation-detail-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.moderation-detail-grid p {
  margin: 0;
  color: var(--navy);
  line-height: 1.45;
}

.moderation-detail-grid span {
  color: var(--muted);
  font-size: 12px;
}
.data-grid {
  display: grid;
  gap: 8px;
}
.data-head,
.data-row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.data-head {
  padding: 0 10px;
}
.data-head button {
  min-height: 34px;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.data-head button span { margin-left: 4px; }
.data-row {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.data-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.data-row .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.data-row .event-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  width: min(100%, 260px);
  margin-left: auto;
}
.data-row .event-row-actions::after {
  content: "";
  flex-basis: 100%;
  height: 0;
  order: 2;
}
.data-row .event-row-actions button:nth-child(1),
.data-row .event-row-actions button:nth-child(2) {
  order: 1;
}
.data-row .event-row-actions button:nth-child(3),
.data-row .event-row-actions button:nth-child(4) {
  order: 3;
}
.data-row .event-row-actions button:nth-child(5),
.data-row .event-row-actions button:nth-child(6) {
  order: 4;
}
.data-row .row-actions button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 11px;
}
.data-row .event-row-actions button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.review-image-preview {
  position: relative;
  width: 132px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 22px rgba(15, 23, 42, .08);
}
.review-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.review-image-preview span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(248, 250, 252, .88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.review-image-preview.is-error span {
  background: var(--danger-soft);
  color: var(--danger);
}
.image-review-grid .data-row { align-items: center; }
.image-file-meta {
  display: grid;
  gap: 6px;
  min-width: 126px;
  color: var(--ink);
  line-height: 1.25;
}
.image-file-meta span {
  display: grid;
  gap: 2px;
}
.image-file-meta strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.image-file-meta em {
  color: var(--navy);
  font-style: normal;
  font-weight: 800;
}
#imageReasonDialog {
  width: min(540px, calc(100vw - 28px));
}
.image-reason-form {
  display: grid;
  gap: 14px;
  width: 100%;
  padding-bottom: 18px;
}
.image-reason-form label {
  display: grid;
  gap: 8px;
  margin: 0 18px;
  color: var(--navy);
  font-weight: 850;
}
.image-reason-form textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  resize: vertical;
}
.image-reason-form .dialog-actions {
  padding-top: 2px;
}

#eventsGrid .data-head,
#eventsGrid .data-row {
  grid-template-columns:
    minmax(150px, 1.35fr)
    minmax(120px, 1fr)
    minmax(96px, .82fr)
    minmax(92px, .82fr)
    minmax(96px, .82fr)
    minmax(88px, .72fr)
    minmax(64px, .55fr)
    minmax(86px, .72fr)
    minmax(190px, 1.45fr);
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.pager-summary,
.pager-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pager-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}
.pager-size span {
  flex: 0 0 auto;
}
.pager-size select {
  flex: 0 0 auto;
  width: 58px;
  min-height: 30px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  padding: 4px 6px;
  box-shadow: var(--shadow-xs);
}
.empty-data,
.empty-stat {
  padding: 14px;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
}
.status-pill.active { background: var(--secondary-soft); color: var(--secondary-dark); }
.status-pill.draft { background: #f1f5f9; color: #475569; }
.status-pill.pending,
.status-pill.pending_image,
.status-pill.needs_review,
.status-pill.new { background: var(--warning-soft); color: #B45309; }
.status-pill.expired { background: #f1f5f9; color: #475569; }
.status-pill.revoked { background: #f8fafc; color: #64748b; }
.status-pill.completed { background: var(--success-soft); color: var(--success); }
.status-pill.hidden { background: var(--warning-soft); color: #B45309; }
.status-pill.rejected { background: var(--danger-soft); color: var(--danger); }
.status-pill.archived { background: #eef2ff; color: #3730a3; }
.status-pill.approved { background: var(--success-soft); color: var(--success); }

.organizer-shell {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}
.organizer-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(229, 234, 240, .72);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.organizer-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.05;
}
.organizer-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.organizer-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.organizer-stat-card {
  padding: 16px;
  border: 1px solid rgba(229, 234, 240, .74);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 26, 51, .06);
}
.organizer-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.organizer-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}
.organizer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(229, 234, 240, .74);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 26, 51, .05);
}
.organizer-sections {
  display: grid;
  gap: 16px;
}
.organizer-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.organizer-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #F8FAFC;
}
.organizer-section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
}
.organizer-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.organizer-event-list {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}
.organizer-event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.organizer-event-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.organizer-event-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.organizer-event-title strong {
  color: var(--navy);
  font-size: 16px;
}
.organizer-event-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.organizer-image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.organizer-image-strip.empty {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-muted);
}
.organizer-image-item {
  width: 138px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.organizer-image-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.organizer-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.organizer-image-thumb.is-muted {
  border: 1px dashed var(--line-strong);
}
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mini-actions button {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}
.organizer-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 13px;
}
.organizer-empty span {
  color: var(--ink);
  font-weight: 700;
}
.organizer-empty small {
  color: var(--muted);
  font-size: 12px;
}
.organizer-workspace {
  display: grid;
  gap: 16px;
}

.organizer-dashboard-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.organizer-dashboard-block.priority-block {
  background: #fff;
}

.organizer-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.organizer-dashboard-head h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.organizer-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.organizer-quick-grid.compact .organizer-quick-card {
  min-height: 88px;
}

.organizer-quick-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #F8FAFC;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

.organizer-quick-card:hover {
  border-color: var(--accent-line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.organizer-quick-card.primary {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.organizer-quick-card strong {
  color: var(--navy);
  font-size: 15px;
}

.organizer-quick-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.compact-card {
  padding: 14px;
}

.organizer-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.organizer-context-bar label { min-width: min(420px, 100%); }
.organizer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.organizer-tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
.organizer-tabs button.active {
  background: var(--accent-soft);
  color: var(--outlo-brand-text);
}

.menu-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.organizer-action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  justify-content: start;
  gap: 10px;
}

.organizer-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  justify-items: start;
  align-items: center;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: transparent;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-align: left;
}

.organizer-action-card:hover {
  border-color: rgba(79, 70, 229, .3);
  transform: translateY(-1px);
}

.organizer-action-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.organizer-action-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.organizer-action-card strong {
  color: var(--outlo-brand-text);
  font-size: 24px;
  line-height: 1;
  justify-self: end;
}

.organizer-attention-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.organizer-attention-empty strong {
  color: var(--navy);
}

.organizer-attention-empty span {
  color: var(--muted);
  font-size: 13px;
}

.rules-status-card {
  border-left: 4px solid var(--warning);
  background: #fff;
}
.rules-status-card.is-accepted {
  border-left-color: var(--success);
}
.rules-status-card.needs-action {
  background: linear-gradient(135deg, var(--warning-soft), #fff 55%);
}
.rules-status-head {
  align-items: center;
}
.rules-status-head h2 {
  margin: 2px 0 0;
}
.rules-status-head p {
  max-width: 680px;
}
.rules-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.notification-card {
  border-left: 3px solid transparent;
}

.notification-card.unread {
  border-left-color: var(--accent);
  background: rgba(79, 70, 229, .06);
}

.moderation-notice {
  border-color: rgba(245, 158, 11, .28);
  background: var(--warning-soft);
}

.moderation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.moderation-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff3d6;
  color: #8a520f;
  font-size: 12px;
  font-weight: 800;
}

.moderation-notice-actions {
  display: flex;
  justify-content: flex-start;
}

.organizer-moderation-view {
  gap: 16px;
}

.organizer-moderation-list {
  display: grid;
  gap: 10px;
}

.organizer-moderation-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.organizer-moderation-card.warning,
.organizer-moderation-card.block_new_events,
.organizer-moderation-card.block_event_edits {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.organizer-moderation-card.require_event_approval {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.organizer-moderation-card.suspend_organizer {
  border-left-color: #8b5cf6;
  background: #f6f3ff;
}

.organizer-moderation-card.ban_organizer {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.organizer-moderation-card.expired,
.organizer-moderation-card.revoked {
  border-left-color: var(--line-strong);
  background: #F8FAFC;
}

.organizer-moderation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.organizer-moderation-card strong {
  display: block;
  color: var(--navy);
}

.organizer-moderation-card span,
.organizer-moderation-card small {
  color: var(--muted);
  font-size: 12px;
}

.organizer-moderation-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}
.organizer-moderation-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.organizer-moderation-card-actions .primary-soft {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.read-note,
.moderation-read-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 850;
}
.moderation-read-note.unread {
  background: #f8fafc;
  color: var(--muted);
}
.organizer-view { display: none; }
.organizer-view.active {
  display: grid;
  gap: 16px;
}
.organizer-panel-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.organizer-panel-card h2 {
  margin: 0;
  font-size: 20px;
}
.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.team-list, .data-list {
  display: grid;
  gap: 10px;
}
.team-row, .data-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #F8FAFC;
}
.data-card {
  grid-template-columns: 1fr auto;
  align-items: start;
}
.data-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}
.team-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}
.team-row strong, .data-card strong {
  display: block;
  color: var(--navy);
}
.team-row span, .data-card span {
  color: var(--muted);
  font-size: 12px;
}
.team-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.team-owner {
  background: #fff4cf;
  color: #7a5400;
  border-color: #f1d987;
}
.team-manager {
  background: var(--secondary-soft);
  color: var(--secondary-dark);
  border-color: var(--secondary-line);
}
.activity-timeline { display: grid; }
.activity-timeline .activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.activity-timeline .activity-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #dceaf6;
}
.activity-timeline .activity-item:last-child::before { display: none; }
.activity-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 4px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--accent);
}
.activity-timeline .activity-item strong {
  display: block;
  color: var(--navy);
}
.activity-timeline .activity-item span {
  color: var(--muted);
  font-size: 12px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.organizer-toolbar.compact {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
}
.empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid #d6ebff;
  border-radius: 20px;
  background: #f3f9ff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.empty-state span {
  color: var(--muted);
}

.profile-shell {
  display: grid;
  gap: 18px;
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}
.profile-hero,
.profile-panel {
  border: 1px solid rgba(229, 234, 240, .74);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
}
.profile-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.05;
}
.profile-hero p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.profile-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.profile-event-grid,
.favorite-organizer-grid {
  display: grid;
  gap: 12px;
}
.profile-event-card,
.favorite-organizer-card {
  display: grid;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}
.profile-event-card {
  grid-template-columns: 130px minmax(0, 1fr);
  padding: 10px;
}
.profile-event-card:hover,
.favorite-organizer-card:hover {
  border-color: #cfe0ef;
  box-shadow: 0 14px 34px rgba(6, 26, 51, .08);
}
.profile-event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #f4f7fb;
}
.profile-event-card strong,
.favorite-organizer-card strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}
.profile-event-card span,
.favorite-organizer-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.profile-event-card small {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 850;
}
.favorite-organizer-card {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

/* Favorite organizers page. */
.favorite-organizers-shell {
  width: min(100% - 28px, 1120px);
  gap: 14px;
  padding-top: 18px;
}

.favorite-organizers-hero {
  align-items: center;
  padding: 18px 20px;
}

.favorite-organizers-hero h1 {
  font-size: clamp(25px, 3vw, 32px);
}

.favorite-organizers-hero .breadcrumb {
  margin-bottom: 5px;
  font-size: 12px;
}

.favorite-organizers-hero p:not(.breadcrumb) {
  margin-top: 6px;
  font-size: 14px;
}

.favorite-organizers-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.favorite-organizer-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: start;
}

.favorite-organizer-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 210px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
}

.favorite-organizer-card:hover {
  transform: translateY(-1px);
}

.favorite-organizer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--avatar-color, var(--accent)), color-mix(in srgb, var(--avatar-color, var(--accent)) 70%, #111827));
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--avatar-color, var(--accent)) 18%, transparent);
}

.favorite-organizer-avatar.has-image {
  color: transparent;
}

.favorite-organizer-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.favorite-organizer-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.favorite-organizer-title h2 {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-organizer-title p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-organizer-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, #fff);
}

.favorite-organizer-stats strong {
  color: var(--outlo-brand-text);
  font-size: 20px;
  line-height: 1;
}

.favorite-organizer-stats span {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 760;
}

.favorite-next-event {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.favorite-next-event span {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.favorite-next-event strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-next-event small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-next-event.muted strong {
  color: var(--text-muted);
  font-weight: 760;
}

.favorite-organizer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.favorite-organizer-actions .action-menu {
  overflow: visible;
}

.favorite-organizer-menu summary {
  min-width: 38px;
  min-height: 38px;
}

.favorite-organizer-menu .action-menu-panel {
  min-width: max-content;
  white-space: nowrap;
}

.favorite-organizer-menu button {
  width: 100%;
  text-align: left;
}

.favorite-organizer-empty {
  display: grid;
  justify-items: start;
  gap: 9px;
  max-width: 560px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.favorite-organizer-empty strong {
  color: var(--text);
  font-size: 17px;
}

.favorite-organizer-empty span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Public organizer profile. */
.public-organizer-shell {
  display: grid;
  gap: 14px;
  width: min(100% - 28px, 1080px);
  margin: 0 auto;
  padding: 18px 0 42px;
}

.public-organizer-hero,
.public-organizer-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.public-organizer-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
}

.public-organizer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--avatar-color, var(--accent)), color-mix(in srgb, var(--avatar-color, var(--accent)) 70%, #111827));
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--avatar-color, var(--accent)) 18%, transparent);
}

.public-organizer-avatar.has-image {
  color: transparent;
}

.public-organizer-main {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.public-organizer-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.public-organizer-title h1 {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-organizer-title p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 680;
}

.public-organizer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.public-organizer-metrics span {
  display: inline-grid;
  gap: 3px;
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-muted);
}

.public-organizer-metrics strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.public-organizer-metrics small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 720;
}

.public-organizer-actions,
.public-organizer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-organizer-section {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.public-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.public-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.public-section-head p,
.public-organizer-section > p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.public-organizer-links a {
  color: var(--outlo-brand-text);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.public-organizer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-muted);
}

.public-organizer-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  padding: 7px 11px;
}

.public-organizer-tabs button.active {
  background: #fff;
  color: var(--outlo-brand-text);
  box-shadow: var(--shadow-xs);
}

.public-organizer-events {
  display: grid;
  gap: 0;
}

.public-organizer-event {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  min-height: 96px;
  padding: 11px 0;
  border-top: 1px solid rgba(226, 232, 240, .8);
  color: inherit;
  text-decoration: none;
}

.public-organizer-event:first-child {
  border-top: 0;
}

.public-organizer-event:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--category-color) 6%, transparent), transparent 70%);
}

.public-organizer-event img,
.public-organizer-event-placeholder {
  width: 120px;
  height: 84px;
  border-radius: 12px;
}

.public-organizer-event img {
  display: block;
  object-fit: cover;
  background: var(--surface-muted);
}

.public-organizer-event img + .public-organizer-event-placeholder {
  display: none;
}

.public-organizer-event-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--category-color) 22%, var(--line));
  background: color-mix(in srgb, var(--category-color) 9%, #fff);
  color: color-mix(in srgb, var(--category-color) 82%, #111827);
}

.public-organizer-event-placeholder svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.public-organizer-event-main {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
}

.public-organizer-event-main strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-organizer-event-main small {
  overflow: hidden;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-organizer-empty {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.public-organizer-empty strong {
  color: var(--text);
}

.public-organizer-empty span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .admin-shell-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow-x: hidden;
  }
  .admin-sidebar {
    position: static;
    grid-column: 1;
    grid-row: 2;
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .admin-menu {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    overflow: visible;
  }
  .admin-sidebar-foot { grid-template-columns: 1fr 1fr; }
  .admin-main {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    padding: 18px;
  }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-attention-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .moderation-toolbar { grid-template-columns: 1fr 1fr; }
  .organizer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .organizer-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .organizer-event-card { grid-template-columns: 1fr; }
  .organizer-event-actions { justify-content: flex-start; }
  .row-actions {
    max-width: 100%;
  }
  .row-actions button,
  .row-actions a {
    width: auto;
    min-width: 0;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .data-head { display: none; }
  .data-row {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }
  .data-row > div::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
  }
  .data-row .row-actions {
    justify-content: flex-start;
  }
  .data-row .event-row-actions {
    width: min(100%, 280px);
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .public-organizer-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 12px;
  }

  .public-organizer-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .public-organizer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 19px;
  }

  .public-organizer-title {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .public-organizer-title h1 {
    font-size: 28px;
    white-space: normal;
  }

  .public-organizer-title .status-pill {
    justify-self: start;
  }

  .public-organizer-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-organizer-section {
    padding: 15px;
  }

  .public-section-head {
    align-items: flex-start;
  }

  .public-organizer-event {
    grid-template-columns: 82px minmax(0, 1fr) 18px;
    gap: 12px;
    min-height: 82px;
  }

  .public-organizer-event img,
  .public-organizer-event-placeholder {
    width: 82px;
    height: 62px;
    border-radius: 10px;
  }

  .public-organizer-event-main strong {
    font-size: 14px;
  }

  .public-organizer-event-main small {
    white-space: normal;
  }

  .favorite-organizers-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 12px;
  }

  .favorite-organizers-hero {
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .favorite-organizer-grid {
    grid-template-columns: 1fr;
  }

  .favorite-organizer-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }

  .favorite-organizer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 14px;
  }

  .favorite-organizer-title {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .favorite-organizer-title .status-pill {
    justify-self: start;
  }

  .favorite-organizer-actions .button-link {
    min-height: 40px;
  }

  .organizer-action-cards {
    grid-template-columns: 1fr;
  }

  .event-image-manager {
    padding: 12px;
  }

  .event-image-manager-head,
  .event-image-manager-actions {
    display: grid;
    justify-items: start;
  }

  .event-image-manager-item {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
  }

  .event-image-manager-thumb {
    width: 88px;
  }

  .event-image-manager .mini-actions button {
    min-height: 34px;
  }

  .detail-image-button {
    height: 210px;
  }
  .detail-image-overlay {
    align-items: end;
    justify-items: start;
    place-items: end start;
    padding: 14px;
    opacity: 1;
    background: rgba(3, 14, 30, .42);
  }
  .admin-sidebar {
    gap: 10px;
    padding: 12px;
  }
  .admin-brand {
    font-size: 22px;
  }
  .admin-main { padding: 12px; }
  .admin-topline {
    display: grid;
    align-items: start;
  }
  .admin-topline h1 {
    font-size: 24px;
  }
  .admin-menu { grid-template-columns: 1fr; }
  .admin-menu button {
    min-height: 40px;
  }
  .admin-sidebar-foot { grid-template-columns: 1fr; }
  .metric-grid, .admin-toolbar, .admin-attention-grid, .moderation-toolbar { grid-template-columns: 1fr; }
  .metric-card,
  .admin-attention-card,
  .admin-panel {
    border-radius: 16px;
    padding: 14px;
  }
  .metric-card {
    min-height: 92px;
  }
  .metric-card strong {
    font-size: 28px;
  }
  .switch-filter { justify-content: flex-start; width: 100%; }
  .moderation-row-actions button { flex: 1 1 150px; }
  .moderation-history-head { grid-template-columns: auto minmax(0, 1fr); }
  .moderation-history-head .status-pill { grid-column: 2; justify-self: start; }
  .moderation-detail-hero { align-items: flex-start; flex-direction: column; }
  .moderation-detail-grid { grid-template-columns: 1fr; }
  .data-head { display: none; }
  .data-row {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }
  .data-row > div::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
  }
  .data-row .row-actions { justify-content: flex-start; }
  .data-row .event-row-actions {
    width: 100%;
    margin-left: 0;
  }
  .pager { align-items: stretch; flex-direction: column; }
  .pager-summary,
  .pager-actions {
    width: 100%;
  }
  .pager-actions button {
    flex: 1 1 0;
  }
  .pager-size {
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
  }
  .organizer-shell { width: min(100vw - 20px, 1180px); padding-top: 14px; }
  .organizer-hero { display: grid; padding: 18px; }
  .organizer-hero h1 { font-size: 28px; }
  .organizer-dashboard-block { padding: 14px; border-radius: 18px; }
  .organizer-dashboard-head { display: grid; }
  .organizer-quick-grid { grid-template-columns: 1fr; }
  .organizer-stats, .organizer-toolbar { grid-template-columns: 1fr; }
  .organizer-event-actions a,
  .organizer-event-actions button { width: 100%; }
  .profile-shell { width: min(100vw - 20px, 1080px); padding-top: 14px; }
  .profile-hero { display: grid; padding: 18px; }
  .profile-hero h1 { font-size: 28px; }
  .profile-event-card,
  .favorite-organizer-card { grid-template-columns: 1fr; }
  .favorite-organizer-card .actions { justify-content: flex-start; }
}

/* Glass topbar variant v4 - remove this block to restore the previous topbar style. */
:root {
  --topbar-height: 62px;
  --topbar-bg-glass: rgba(255, 255, 255, .84);
  --topbar-border-glass: rgba(15, 23, 42, .075);
  --topbar-shadow-glass: 0 4px 16px rgba(15, 23, 42, .045);
}

.topbar {
  min-height: var(--topbar-height);
  padding: 9px 22px;
  gap: 16px;
  background: var(--topbar-bg-glass);
  border-bottom: 1px solid var(--topbar-border-glass);
  box-shadow: var(--topbar-shadow-glass);
  backdrop-filter: blur(10px) saturate(1.03);
  -webkit-backdrop-filter: blur(10px) saturate(1.03);
}

.brand-link {
  min-height: 42px;
  padding-inline: 4px;
}

.brand-text-only {
  font-size: 21px;
  font-weight: 950;
}

.topnav,
.top-actions {
  gap: 10px;
}

.nav-item {
  min-height: 38px;
  padding: 8px 10px;
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--navy);
  line-height: 1;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .48);
  border-color: rgba(15, 23, 42, .045);
  box-shadow: none;
}

.topnav .nav-item.active {
  position: relative;
  background: rgba(255, 255, 255, .42);
  border-color: transparent;
  color: var(--accent-dark);
  box-shadow: none;
}

.topnav .nav-item.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: rgba(79, 70, 229, .72);
}

.nav-item.primary {
  min-height: 40px;
  padding-inline: 15px;
  border-color: var(--accent);
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .18);
}

.nav-item.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(79, 70, 229, .22);
}

.user-menu-button {
  max-width: min(250px, 34vw);
  padding-left: 6px;
  padding-right: 8px;
  gap: 7px;
}

.user-menu-button > .nav-icon:first-child {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .12);
  color: var(--accent-dark);
  stroke-width: 1.8;
}

.user-menu-button span:not(.profile-menu-badge) {
  font-weight: 850;
}

.profile-menu-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(79, 70, 229, .12);
  background: var(--accent);
  color: #fff;
}

.nav-chevron {
  width: var(--outlo-icon-xs, 14px);
  height: var(--outlo-icon-xs, 14px);
  opacity: .72;
}

.nav-icon,
.button-icon {
  stroke-width: var(--outlo-icon-stroke, 1.8);
}

.map-page .map-layout {
  margin-top: calc(-1 * var(--topbar-height));
  height: 100vh;
  min-height: 640px;
}

.map-page .filter-panel,
.map-page .detail-panel {
  top: calc(var(--topbar-height) + 18px);
}

.map-page .map-layout .leaflet-top.leaflet-left {
  top: calc(var(--topbar-height) + 18px);
}

.admin-sidebar {
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
}

.auth-layout {
  min-height: calc(100vh - var(--topbar-height));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: rgba(255, 255, 255, .97);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .nav-item {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 64px;
    --topbar-bg-glass: rgba(255, 255, 255, .92);
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: var(--topbar-height);
    padding: 8px 12px;
    gap: 8px;
    backdrop-filter: blur(8px) saturate(1.02);
    -webkit-backdrop-filter: blur(8px) saturate(1.02);
  }

  .brand-text-only {
    font-size: 21px;
  }

  .topnav {
    display: none;
  }

  .top-actions {
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }

  .top-actions .nav-item {
    min-height: 38px;
    padding: 8px 10px;
    flex: 0 1 auto;
  }

  .top-actions .nav-item span {
    max-width: 112px;
  }

  .user-menu-button {
    max-width: min(168px, 42vw);
  }

  .user-menu-button > .nav-icon:first-child {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .map-layout {
    height: calc(100dvh - var(--topbar-height));
  }

  .map-page .map-layout {
    margin-top: calc(-1 * var(--topbar-height));
    height: 100dvh;
    min-height: 560px;
  }

  .map-page .filter-panel {
    top: auto;
  }

  .map-page .map-layout .leaflet-top.leaflet-left {
    top: calc(var(--topbar-height) + 10px);
    left: 10px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-inline: 10px;
  }

  .nav-item.primary {
    padding-inline: 10px;
  }

  .nav-item.primary span {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-menu-button span:not(.profile-menu-badge) {
    max-width: 58px;
  }
}

/* Outlo unified SaaS visual refresh v1 - remove this block to return to the previous visual density. */
:root {
  --accent: var(--outlo-brand-accent);
  --accent-hover: var(--outlo-brand-text);
  --accent-dark: var(--outlo-brand-text-hover);
  --accent-soft: var(--outlo-brand-soft);
  --accent-line: var(--outlo-brand-border);
  --page-bg: #F3F6FB;
  --surface: #ffffff;
  --surface-muted: #F8FAFC;
  --surface-raised: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --line: #DDE4EE;
  --line-strong: #cbd5e1;
  --info: #2563EB;
  --info-soft: #EFF6FF;
  --info-line: #BFDBFE;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .045);
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, .055);
  --shadow-md: 0 18px 46px rgba(15, 23, 42, .12);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--outlo-brand-accent) 20%, transparent);
  --control-height: 38px;
  --control-height-sm: 32px;
  --content-max: 1440px;
}

html {
  text-rendering: optimizeLegibility;
}

body {
  color: var(--text);
  background: var(--page-bg);
}

button,
.button-link,
.nav-item {
  min-height: var(--control-height);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: none;
}

button:hover,
.button-link:hover,
.nav-item:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .055);
}

button:disabled,
.button-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
  box-shadow: none;
}

.small,
.data-row .row-actions button,
.data-row .row-actions a,
.mini-actions button {
  min-height: var(--control-height-sm);
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 740;
}

input,
select,
textarea {
  min-height: var(--control-height);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

textarea {
  min-height: 86px;
}

label,
.compact-label {
  gap: 5px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 760;
}

.hint,
.section-lead,
.dialog-intro,
.organizer-section-head p,
.organizer-hero p:not(.eyebrow),
.profile-event-item span,
.activity-item span,
.data-card span,
.team-row span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.42;
}

.eyebrow {
  margin-bottom: 3px;
  color: var(--outlo-brand-text);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
}

.topbar {
  min-height: 58px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, .82);
  border-bottom-color: rgba(15, 23, 42, .07);
  box-shadow: 0 3px 14px rgba(15, 23, 42, .045);
  backdrop-filter: blur(8px) saturate(1.02);
  -webkit-backdrop-filter: blur(8px) saturate(1.02);
}

.brand-link {
  min-height: 38px;
}

.brand-text-only {
  font-size: 20px;
}

.topnav,
.top-actions {
  gap: 7px;
}

.nav-item {
  border-color: transparent;
  background: transparent;
  color: var(--text-soft);
}

.nav-item:hover {
  background: rgba(255, 255, 255, .54);
  color: var(--text);
}

.topnav .nav-item.active,
.nav-item.active {
  background: rgba(79, 70, 229, .08);
  border-color: rgba(79, 70, 229, .12);
  color: var(--accent-dark);
}

.topnav .nav-item.active::after {
  background: rgba(79, 70, 229, .72);
}

.nav-item.primary,
.primary {
  --btn-bg: var(--accent);
  --btn-border: var(--accent);
  --btn-hover-bg: var(--accent-hover);
  --btn-hover-border: var(--accent-hover);
}

.nav-item.primary {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 18px rgba(79, 70, 229, .17);
}

.user-menu-button > .nav-icon:first-child {
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .13);
}

.profile-menu-badge,
.menu-count-badge,
.menu-badge {
  background: var(--accent);
}

.user-menu-panel {
  border-radius: var(--radius-lg);
  border-color: rgba(226, 232, 240, .95);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
  padding: 7px;
}

.menu-item {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 720;
}

.menu-item .nav-icon {
  width: 18px;
  height: 18px;
}

.menu-item.active {
  background: var(--accent-soft);
  color: var(--outlo-brand-text);
}

.user-menu-panel .promotion-menu-item {
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  font-weight: 750;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.user-menu-panel .promotion-menu-item .promotion-menu-icon {
  display: inline-flex;
  color: var(--outlo-brand-accent);
}
.user-menu-panel .promotion-menu-item:hover,
.user-menu-panel .promotion-menu-item.active {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, var(--surface));
  color: var(--accent-dark);
  transform: none;
}
.user-menu-panel .promotion-menu-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .user-menu-panel .promotion-menu-item { transition: none; }
}

.badge,
.status-pill,
.category-badge {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.status-pill.active,
.status-active,
.status-pill.approved,
.status-pill.resolved,
.status-pill.completed {
  background: var(--success-soft);
  border-color: var(--success-line);
  color: #14783a;
}

.status-pill.pending,
.status-pill.pending_image,
.status-pill.needs_review,
.status-pill.new,
.status-pill.hidden,
.status-blocked {
  background: var(--warning-soft);
  border-color: var(--warning-line);
  color: #a16207;
}

.status-pill.rejected,
.status-pill.failed,
.danger-menu,
.role-admin {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: #b91c1c;
}

.status-pill.expired,
.status-pill.archived,
.status-pill.revoked,
.status-pill.draft,
.badge:not([class*="role-"]):not([class*="status-"]):not([class*="team-"]) {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.role-moderator,
.role-organizer,
.role-user {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.admin-main,
.organizer-shell,
.profile-layout,
.profile-shell,
.favorite-organizer-shell,
.organizer-profile-shell {
  width: min(var(--content-max), calc(100vw - 32px));
}

.admin-main {
  padding: 20px 22px 34px;
  gap: 14px;
}

.admin-topline,
.organizer-hero,
.profile-head {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(226, 232, 240, .82);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.admin-topline h1,
.organizer-hero h1,
.profile-head h1 {
  font-size: 24px;
  line-height: 1.16;
}

.admin-view.active,
.organizer-workspace,
.organizer-view.active,
.organizer-sections {
  gap: 12px;
}

.admin-sidebar {
  width: 260px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, .88);
  border-right-color: rgba(226, 232, 240, .9);
  box-shadow: none;
}

.admin-menu {
  gap: 4px;
}

.admin-menu button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 720;
}

.admin-menu button.active,
.admin-menu button:hover {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-dark);
}

.admin-panel,
.organizer-dashboard-block,
.organizer-panel-card,
.organizer-section,
.profile-card,
.favorite-organizer-card,
.profile-event-card {
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.admin-panel,
.organizer-dashboard-block,
.organizer-panel-card {
  gap: 12px;
  padding: 14px;
}

.admin-panel h2,
.organizer-dashboard-head h2,
.organizer-section-head h2,
.organizer-panel-card h2,
.profile-card-head h2 {
  font-size: 16px;
  line-height: 1.25;
}

.metric-grid {
  gap: 10px;
}

.metric-card,
.profile-stat,
.organizer-stat-card,
.admin-attention-card,
.organizer-action-card,
.organizer-quick-card {
  min-height: auto;
  padding: 13px 14px;
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.metric-card {
  gap: 6px;
}

.metric-card span,
.organizer-stat-card span,
.profile-stat span,
.admin-attention-card span,
.organizer-action-card span {
  font-size: 12px;
  font-weight: 760;
  text-transform: none;
}

.metric-card strong,
.organizer-stat-card strong,
.profile-stat strong,
.admin-attention-card strong,
.organizer-action-card strong {
  font-size: 24px;
  line-height: 1;
}

.admin-dashboard-grid {
  gap: 12px;
}

.activity-list,
.stat-list,
.data-list,
.team-list,
.organizer-event-list,
.organizer-moderation-list {
  gap: 0;
  border: 1px solid rgba(226, 232, 240, .82);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.activity-item,
.stat-row,
.data-card,
.team-row,
.organizer-moderation-card,
.notification-card {
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.activity-item:last-child,
.stat-row:last-child,
.data-card:last-child,
.team-row:last-child,
.organizer-moderation-card:last-child,
.notification-card:last-child {
  border-bottom: 0;
}

.activity-item {
  padding: 10px 12px;
}

.activity-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.32;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.activity-item span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-toolbar,
.organizer-toolbar,
.moderation-toolbar {
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  box-shadow: none;
}

.admin-toolbar input,
.admin-toolbar select,
.organizer-toolbar input,
.organizer-toolbar select,
.moderation-toolbar input,
.moderation-toolbar select {
  min-height: 36px;
  border-radius: 9px;
  background: #fff;
}

.data-grid {
  gap: 0;
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: auto;
}

.data-head,
.data-row {
  gap: 8px;
  min-width: 980px;
  align-items: center;
}

.data-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: #f8fafc;
}

.data-head button {
  min-height: 28px;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 830;
}

.data-row {
  min-height: 62px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  border-radius: 0;
  box-shadow: none;
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row:hover {
  background: #f8fbff;
}

.data-row > div {
  display: block;
  min-width: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
}

.data-row > div:first-child,
.data-row strong {
  color: var(--text);
  font-weight: 780;
}

.data-row > div:not(:first-child) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.data-row > div[data-label=""],
.data-row > div:last-child {
  display: block;
  overflow: visible;
}

.data-row .row-actions,
.data-row .event-row-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
  width: auto;
  max-width: 260px;
  margin-left: auto;
}

.data-row .event-row-actions::after {
  content: none;
}

.data-row .event-row-actions button {
  order: initial;
}

.row-actions .danger,
.mini-actions .danger {
  margin-left: 2px;
}

.empty-data,
.empty-stat,
.empty-card,
.organizer-empty,
.organizer-attention-empty,
.compact-empty {
  min-height: auto;
  padding: 12px 14px;
  border: 1px dashed rgba(148, 163, 184, .45);
  border-radius: var(--radius-lg);
  background: #f8fafc;
  color: var(--text-muted);
  box-shadow: none;
  font-size: 13px;
}

.organizer-empty {
  display: grid;
  gap: 3px;
}

.organizer-empty span {
  color: var(--text-soft);
  font-weight: 760;
}

.organizer-context-bar,
.organizer-tabs {
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.organizer-tabs {
  gap: 4px;
}

.organizer-tabs button {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--text-muted);
}

.organizer-tabs button.active {
  background: var(--accent-soft);
  color: var(--outlo-brand-text);
}

.organizer-section {
  overflow: hidden;
}

.organizer-section-head {
  padding: 12px 14px;
  background: #f8fafc;
}

.organizer-event-list {
  padding: 0;
}

.organizer-event-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  border-radius: 0;
  box-shadow: none;
}

.organizer-event-card:last-child {
  border-bottom: 0;
}

.organizer-event-card:hover {
  background: #f8fbff;
}

.organizer-event-title strong {
  font-size: 14px;
}

.organizer-event-card p {
  margin-top: 4px;
  font-size: 12px;
}

.organizer-event-actions {
  max-width: 270px;
  gap: 5px;
}

.organizer-event-actions a,
.organizer-event-actions button {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 12px;
}

.organizer-image-strip {
  gap: 8px;
  margin-top: 8px;
}

.organizer-image-strip.empty {
  display: none;
}

.organizer-image-item {
  width: 118px;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.organizer-image-thumb {
  border-radius: 8px;
}

.mini-actions {
  gap: 4px;
}

.notification-card.unread {
  background: var(--info-soft);
  border-left-color: var(--info);
}

.moderation-history-card.warning,
.organizer-moderation-card.warning {
  background: var(--warning-soft);
}

.panel-section {
  padding-block: 11px;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
}

.panel-section:last-of-type {
  border-bottom: 0;
}

.filter-panel {
  border-color: rgba(226, 232, 240, .82);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

.event-card,
.admin-card,
.event-card-modern {
  border-radius: var(--radius-md);
  box-shadow: none;
}

.event-card-modern {
  padding: 11px 12px;
}

.detail-panel {
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .14);
}

.detail-content {
  gap: 12px;
  padding: 16px;
}

.detail-content h2 {
  font-size: 22px;
}

.detail-primary-actions > * {
  min-height: 40px;
  border-radius: var(--radius-md);
}

.detail-secondary-actions > *,
.report-menu-trigger {
  min-height: 32px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: none;
}

.detail-report-actions #reportMenuButton {
  --btn-bg: rgba(255, 247, 237, .52);
  --btn-border: rgba(217, 119, 6, .24);
  --btn-color: #9A5A08;
  --btn-hover-bg: rgba(255, 247, 237, .82);
  --btn-hover-border: rgba(217, 119, 6, .36);
  color: var(--btn-color);
}

.detail-report-actions #reportMenuButton:hover {
  box-shadow: 0 6px 16px rgba(217, 119, 6, .08);
}

dialog {
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

dialog form,
.confirm-dialog {
  border-radius: var(--radius-xl);
}

.dialog-head {
  padding: 16px 18px 12px;
}

.dialog-head h2 {
  font-size: 18px;
}

.dialog-actions {
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(226, 232, 240, .82);
}

.form-grid {
  gap: 12px;
}

.form-info,
.organizer-hint {
  border-radius: var(--radius-md);
}

@media (max-width: 1100px) {
  .admin-main,
  .organizer-shell,
  .profile-layout,
  .profile-shell,
  .favorite-organizer-shell,
  .organizer-profile-shell {
    width: min(100vw - 24px, var(--content-max));
  }

  .admin-sidebar {
    width: auto;
    padding: 10px 12px;
  }

  .admin-menu {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .admin-menu button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-toolbar,
  .moderation-toolbar,
  .organizer-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  }
}

@media (max-width: 900px) {
  .auth-split-layout {
    width: min(100% - 24px, 620px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0 28px;
  }

  .auth-brand-panel {
    order: 2;
    min-height: 0;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .auth-brand-panel h1 {
    font-size: 22px;
    line-height: 1.15;
  }

  .auth-brand-panel p:not(.auth-brand-logo) {
    margin-top: 6px;
    font-size: 13px;
  }

  .auth-event-preview {
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  .auth-preview-head {
    padding-bottom: 2px;
  }

  .auth-preview-event {
    min-height: 56px;
    padding: 9px 10px;
    border-radius: 13px;
  }

  .auth-preview-tag {
    display: none;
  }

  .auth-benefits {
    display: none;
  }

  .auth-split-layout .auth-card {
    order: 1;
    max-width: none;
    justify-self: stretch;
    padding: 22px;
    border-radius: 18px;
  }

  .topbar {
    min-height: 58px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px) saturate(1.01);
    -webkit-backdrop-filter: blur(6px) saturate(1.01);
  }

  .top-actions .nav-item.primary {
    min-width: 42px;
  }

  .admin-main {
    padding: 12px;
  }

  .admin-topline,
  .organizer-hero,
  .profile-head {
    padding: 14px;
  }

  .admin-topline h1,
  .organizer-hero h1,
  .profile-head h1 {
    font-size: 22px;
  }

  .data-grid {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .data-row {
    min-width: 0;
    min-height: auto;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: var(--radius-lg);
    background: #fff;
  }

  .data-row > div:not(:first-child) {
    display: block;
    overflow: visible;
    -webkit-line-clamp: initial;
  }

  .data-row > div::before {
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 10px;
  }

  .data-row .row-actions,
  .data-row .event-row-actions,
  .organizer-event-actions {
    justify-content: flex-start;
    max-width: 100%;
    width: 100%;
  }

  .data-row .row-actions button,
  .data-row .row-actions a,
  .organizer-event-actions a,
  .organizer-event-actions button {
    flex: 0 1 auto;
    width: auto;
  }

  .admin-toolbar,
  .moderation-toolbar,
  .organizer-toolbar {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .metric-grid,
  .admin-attention-grid,
  .organizer-stats,
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card,
  .profile-stat,
  .organizer-stat-card,
  .admin-attention-card,
  .organizer-action-card {
    padding: 12px;
  }

  .organizer-event-card {
    grid-template-columns: 1fr;
  }

  .organizer-image-item {
    width: min(45vw, 132px);
  }

  #eventsGrid .data-row > div:nth-child(2),
  #eventsGrid .data-row > div:nth-child(3),
  #eventsGrid .data-row > div:nth-child(5),
  #eventsGrid .data-row > div:nth-child(6),
  #eventsGrid .data-row > div:nth-child(7),
  #usersGrid .data-row > div:nth-child(4),
  #usersGrid .data-row > div:nth-child(5),
  #usersGrid .data-row > div:nth-child(6),
  #usersGrid .data-row > div:nth-child(7),
  #usersGrid .data-row > div:nth-child(8),
  #reportsGrid .data-row > div:nth-child(3),
  #reportsGrid .data-row > div:nth-child(4),
  #reportsGrid .data-row > div:nth-child(1),
  #reportsGrid .data-row > div:nth-child(7),
  #reportsGrid .data-row > div:nth-child(8),
  #imagesGrid .data-row > div:nth-child(1),
  #imagesGrid .data-row > div:nth-child(4),
  #imagesGrid .data-row > div:nth-child(5),
  #requestsGrid .data-row > div:nth-child(3),
  #requestsGrid .data-row > div:nth-child(4),
  #moderationGrid .data-row > div:nth-child(2),
  #moderationGrid .data-row > div:nth-child(5),
  #moderationGrid .data-row > div:nth-child(6) {
    display: none;
  }

  #eventsGrid .data-row,
  #usersGrid .data-row,
  #reportsGrid .data-row,
  #imagesGrid .data-row,
  #requestsGrid .data-row,
  #moderationGrid .data-row {
    gap: 5px;
    padding: 10px;
  }

  .data-row > div::before {
    display: inline;
    margin: 0 6px 0 0;
  }

  .data-row > div:first-child::before,
  #reportsGrid .data-row > div:nth-child(2)::before,
  #imagesGrid .data-row > div:nth-child(3)::before,
  #requestsGrid .data-row > div:nth-child(2)::before,
  #moderationGrid .data-row > div:first-child::before {
    display: none;
  }

  #reportsGrid .data-row > div:nth-child(6) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  #eventsGrid .data-row > div:first-child,
  #usersGrid .data-row > div:first-child,
  #reportsGrid .data-row > div:nth-child(2),
  #imagesGrid .data-row > div:nth-child(3),
  #requestsGrid .data-row > div:nth-child(2),
  #moderationGrid .data-row > div:first-child {
    font-size: 14px;
    font-weight: 820;
  }

  #imagesGrid .data-row {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }

  #imagesGrid .data-row > div:nth-child(2) {
    grid-row: 1 / span 4;
  }

  #imagesGrid .data-row > div:nth-child(8) {
    grid-column: 1 / -1;
  }

  .review-image-preview {
    width: 96px;
  }
}

@media (max-width: 560px) {
  .top-actions {
    gap: 5px;
  }

  .top-actions .nav-item span {
    max-width: 86px;
  }

  .nav-item.primary {
    padding-inline: 9px;
  }

  .admin-main,
  .organizer-shell,
  .profile-layout,
  .profile-shell,
  .favorite-organizer-shell,
  .organizer-profile-shell {
    width: min(100vw - 16px, var(--content-max));
  }

  .metric-grid,
  .admin-attention-grid,
  .organizer-stats,
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-grid,
  .profile-grid,
  .organizer-quick-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    display: grid;
  }

  .dialog-actions > * {
    width: 100%;
  }
}

/* Global search results */
.search-results-page {
  min-height: 100vh;
  background: #f7f8fb;
}

.search-results-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.search-results-heading {
  display: grid;
  gap: 9px;
}

.search-results-back {
  width: fit-content;
  color: var(--outlo-brand-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.results-search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(760px, 100%);
  margin: 10px 0 17px;
}

.results-search-form > svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #52637b;
  stroke-width: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.results-search-form input {
  min-width: 0;
  height: 52px;
  padding: 0 52px 0 48px;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 14px 0 0 14px;
  background: #fff;
  color: #172033;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.results-search-form input::-webkit-search-cancel-button,
.topbar-search input::-webkit-search-cancel-button {
  appearance: none;
  -webkit-appearance: none;
}

.results-search-clear,
.topbar-search-clear {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-height: 0;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(226, 232, 240, .74);
  color: #64748b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.results-search-clear {
  top: 12px;
  right: 104px;
}

.topbar-search-clear {
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.results-search-clear:hover,
.topbar-search-clear:hover {
  border-color: rgba(99, 102, 241, .18);
  background: #e9e8ff;
  color: var(--outlo-brand-text-hover);
}

.topbar-search-clear:hover {
  transform: translateY(-50%) scale(1.04);
}

.results-search-clear:focus-visible,
.topbar-search-clear:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .24);
  outline-offset: 2px;
}

.results-search-clear svg,
.topbar-search-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.results-search-form > button[type="submit"] {
  height: 52px;
  padding: 0 22px;
  border-radius: 0 14px 14px 0;
  background: var(--outlo-action-fill, linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%)) no-repeat border-box;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.search-results-heading h1 {
  margin: 0;
  color: #111827;
  font-size: 27px;
  font-weight: 720;
  line-height: 1.2;
}

.search-results-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search-results-count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(99, 102, 241, .16);
  border-radius: 999px;
  background: #f1f0ff;
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.search-results-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.search-results-controls {
  margin: 25px 0 28px;
  padding: 0 16px 12px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.search-type-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.search-type-tabs button {
  position: relative;
  min-height: 46px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.search-type-tabs button.is-active {
  color: var(--outlo-brand-text);
}

.search-type-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--outlo-brand-accent);
}

.search-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(124px, 1fr));
  gap: 11px;
  padding: 14px 0 10px;
}

.search-filter-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.search-filter-grid label > span {
  color: #526078;
  font-size: 12px;
  font-weight: 600;
}

.search-filter-grid input,
.search-filter-grid select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 7px;
  background: #fff;
  color: #24324a;
  font-size: 13px;
}

.search-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.search-active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--outlo-brand-border);
  border-radius: 999px;
  background: var(--outlo-brand-soft);
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 620;
}

.search-active-filters button:hover {
  border-color: var(--outlo-brand-border-hover);
  background: var(--outlo-brand-soft-hover);
}

.search-active-filters button span {
  color: var(--outlo-brand-accent);
  font-size: 15px;
  font-weight: 500;
  line-height: .7;
}

.search-controls-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.search-controls-footer .search-active-filters {
  flex: 1;
}

.search-view-toggle {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 8px;
  background: #f8fafc;
}

.search-view-toggle button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #718096;
  box-shadow: none;
}

.search-view-toggle button:hover {
  background: #eef0ff;
  color: var(--outlo-brand-accent);
}

.search-view-toggle button.is-active {
  background: #fff;
  color: var(--outlo-brand-accent);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.search-view-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-results-list,
.search-result-section,
.search-result-items {
  display: grid;
  gap: 11px;
}

.search-result-section + .search-result-section {
  margin-top: 24px;
}

.search-result-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 3px;
}

.search-result-section h2 {
  margin: 0;
  color: #1e293b;
  font-size: 15px;
  font-weight: 680;
}

.search-result-section-heading > span {
  color: #8390a5;
  font-size: 12px;
  font-weight: 550;
}

.search-result-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  gap: 13px;
  align-items: center;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.search-result-card-button {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-result-card:hover {
  border-color: rgba(79, 70, 229, .3);
  box-shadow: 0 7px 20px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}

.search-result-card:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .22);
  outline-offset: 2px;
}

.search-event-detail {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}

.search-event-media {
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border-radius: 7px;
  background: #f3f5f8;
}

.search-event-media.has-image {
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: stretch;
}

.search-event-primary-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 310px;
  object-fit: cover;
}

.search-event-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding-top: 5px;
  background: #fff;
}

.search-event-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  object-fit: cover;
}

.search-event-image-placeholder {
  color: #64748b;
  font-size: 14px;
}

.search-event-body {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
}

.search-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.search-event-category,
.search-event-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid rgba(99, 102, 241, .16);
  border-radius: 999px;
  background: #f6f5ff;
  color: #5046c7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.search-event-status {
  border-color: rgba(168, 85, 247, .2);
  background: #fbf5ff;
  color: #7e22ce;
}

.search-event-body h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
  line-height: 1.14;
}

.search-event-description {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.search-event-facts {
  display: grid;
  gap: 9px;
  margin: 2px 0 0;
}

.search-event-facts > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.search-event-facts dt,
.search-event-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.search-event-facts dt {
  color: #64748b;
  font-weight: 500;
}

.search-event-facts dd {
  display: grid;
  gap: 2px;
  color: #1e293b;
}

.search-event-facts dd span {
  color: #64748b;
}

.search-event-facts a {
  color: var(--outlo-brand-text);
  font-weight: 600;
  text-decoration: none;
}

.search-event-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.search-event-main-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.search-event-utility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(280px, 100%);
}

.search-event-actions button,
.search-event-actions .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.search-event-actions .primary {
  border-color: transparent;
  background: var(--outlo-action-fill, linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%)) no-repeat border-box;
  color: #fff;
}

.search-event-actions .search-save-button.is-saved {
  color: #e11d48;
}

.search-event-utility-actions button {
  min-height: 36px;
  border-color: rgba(148, 163, 184, .22);
  box-shadow: none;
  color: #526078;
  font-size: 12px;
  font-weight: 560;
}

.search-event-actions .search-report-button {
  justify-self: start;
  min-height: 28px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.search-event-actions .search-report-button:hover {
  color: #b45309;
  text-decoration: underline;
}

.search-event-body > .search-result-meta {
  justify-content: flex-end;
  padding-top: 2px;
}

.search-report-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.search-report-dialog form {
  padding: 22px;
}

.search-result-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f3f2ff;
  color: var(--outlo-brand-accent);
}

.search-result-icon svg,
.search-result-arrow {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-result-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.search-result-copy strong {
  overflow: hidden;
  color: #172033;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span,
.search-result-meta {
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
}

.search-result-arrow {
  color: #94a3b8;
  transition: color .16s ease, transform .16s ease;
}

.search-result-card:hover .search-result-arrow {
  color: var(--outlo-brand-accent);
  transform: translateX(2px);
}

.search-result-meta {
  display: flex;
  gap: 12px;
  text-align: right;
}

.search-results-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 180px;
  padding: 30px;
  border: 1px dashed rgba(148, 163, 184, .4);
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 14px;
}

.search-results-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 2px 0;
  border-top: 1px solid rgba(148, 163, 184, .18);
  color: #718096;
  font-size: 13px;
}

.search-results-end button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--outlo-brand-text);
  font: inherit;
  font-weight: 650;
}

.search-results-end button:hover {
  color: var(--outlo-brand-text-hover);
  text-decoration: underline;
}

.search-results-sticky-bar {
  position: fixed;
  z-index: 1050;
  top: 82px;
  left: 50%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: min(760px, calc(100% - 40px));
  min-height: 46px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity .16s ease, transform .16s ease;
}

.search-results-sticky-visible .search-results-sticky-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.search-results-sticky-bar > a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: var(--outlo-brand-text);
  font-size: 18px;
  text-decoration: none;
}

.search-results-sticky-bar > a:hover {
  background: #f1f0ff;
}

.search-results-sticky-bar > span:not(.search-results-sticky-count) {
  overflow: hidden;
  color: #24324a;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results-sticky-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f0ff;
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 700;
}

.search-results-sticky-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 650;
}

.search-results-sticky-bar button:hover {
  background: #f1f0ff;
}

.search-results-sticky-bar svg {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;

  stroke-linejoin: round;
}

.search-results-compact .search-event-detail {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 13px;
  padding: 12px;
}

.search-results-compact .search-event-media,
.search-results-compact .search-event-primary-image {
  min-height: 96px;
  height: 96px;
  max-height: 96px;
  border-radius: 6px;
}

.search-results-compact .search-event-thumbs,
.search-results-compact .search-event-description,
.search-results-compact .search-event-actions,
.search-results-compact .search-event-body > .search-result-meta {
  display: none;
}

.search-results-compact .search-event-body {
  gap: 6px;
}

.search-results-compact .search-event-badges {
  gap: 5px;
}

.search-results-compact .search-event-category,
.search-results-compact .search-event-status {
  min-height: 21px;
  padding: 2px 7px;
  font-size: 11px;
}

.search-results-compact .search-event-body h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.search-results-compact .search-event-facts {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.search-results-compact .search-event-facts > div {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
}

.search-results-compact .search-event-facts > div:nth-child(4) {
  display: none;
}

.search-results-compact .search-event-facts dt,
.search-results-compact .search-event-facts dd span {
  display: none;
}

.search-results-compact .search-event-facts dd,
.search-results-compact .search-event-facts dd strong {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .search-results-shell {
    width: min(100% - 24px, 680px);
    padding: 24px 0 48px;
  }

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

  .search-results-controls {
    padding-inline: 13px;
  }

  .search-filter-grid label:first-child {
    grid-column: 1 / -1;
  }

  .search-event-detail {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
  }

  .search-event-main-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-results-sticky-bar {
    display: none;
  }
}

@media (max-width: 560px) {
  .results-search-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .results-search-form input,
  .results-search-form > button[type="submit"] {
    border-radius: 12px;
  }

  .results-search-clear {
    top: 12px;
    right: 10px;
  }

  .search-results-heading h1 {
    font-size: 23px;
  }

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

  .search-filter-grid label:first-child {
    grid-column: auto;
  }

  .search-results-title-row {
    gap: 8px;
  }

  .search-result-card {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
  }

  .search-result-meta {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .search-result-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 16px;
    height: 16px;
  }

  .search-event-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 12px;
  }

  .search-event-media,
  .search-event-primary-image {
    min-height: 190px;
  }

  .search-event-primary-image {
    max-height: 260px;
  }

  .search-event-body h3 {
    font-size: 22px;
  }

  .search-event-facts > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .search-event-main-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-event-utility-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-results-end {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .search-results-compact .search-event-detail {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 11px;
    padding: 10px;
  }

  .search-results-compact .search-event-media,
  .search-results-compact .search-event-primary-image {
    min-height: 76px;
    height: 76px;
    max-height: 76px;
  }

  .search-results-compact .search-event-facts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .search-results-compact .search-event-facts > div:nth-child(3) {
    display: none;
  }

  .search-event-body > .search-result-meta {
    grid-column: auto;
  }
}

/* Give every category pin depth while retaining its own category colour. */
.category-pin {
  background: var(--pin-color);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--pin-color) 78%, white) 0%,
    var(--pin-color) 48%,
    color-mix(in srgb, var(--pin-color) 82%, #0f172a) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, .88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 9px 22px rgba(15, 23, 42, .18),
    0 2px 6px rgba(15, 23, 42, .08),
    0 0 0 1px rgba(15, 23, 42, .09);
}

/* Admin events fixed-width table. Scoped to Administrace -> Akce only. */
#view-events .admin-panel {
  overflow: visible;
}

#view-events .admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(190px, .8fr) minmax(180px, .75fr) 180px 180px;
  gap: 12px;
  width: 100%;
  max-width: none;
}

#view-events .admin-toolbar > * {
  width: 100%;
  min-width: 0;
}

#eventsGrid.data-grid {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

.admin-events-table-wrap {
  width: 100%;
  max-width: none;
}

.admin-events-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.admin-events-table .col-name { width: 28%; }
.admin-events-table .col-organizer { width: 23%; }
.admin-events-table .col-date { width: 190px; }
.admin-events-table .col-category { width: 180px; }
.admin-events-table .col-status { width: 170px; }
.admin-events-table .col-actions { width: 150px; }

.admin-events-table th,
.admin-events-table td {
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, .86);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.admin-events-table th {
  height: 38px;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 830;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-events-table th button {
  min-height: 28px;
  justify-content: flex-start;
  padding: 4px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.admin-events-table th button:hover {
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark);
}

.admin-events-table tbody tr {
  height: 66px;
  transition: background-color .16s ease;
}

.admin-events-table tbody tr:hover {
  background: #f8fbff;
}

.admin-events-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-events-table td:first-child {
  color: var(--text);
  font-weight: 780;
}

.admin-events-table th:last-child,
.admin-events-table td:last-child {
  text-align: right;
}

.admin-events-table .cell-ellipsis {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-events-table .status-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-events-table .event-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  width: auto;
  max-width: none;
}

.admin-events-table .event-row-actions button,
.admin-events-table .event-row-actions summary {
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-events-table .event-row-actions summary {
  width: 32px;
  padding: 0;
}

@media (max-width: 1400px) and (min-width: 851px) {
  #view-events .admin-toolbar {
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 220px) minmax(180px, 220px);
  }
}

@media (max-width: 850px) {
  #view-events .admin-panel {
    padding-inline: 0;
  }

  #view-events .admin-toolbar {
    width: auto;
    margin-inline: 14px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #eventsGrid.data-grid,
  .admin-events-table-wrap {
    width: 100%;
    max-width: 100%;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .admin-events-table,
  .admin-events-table tbody {
    display: block;
    width: 100%;
  }

  .admin-events-table thead,
  .admin-events-table colgroup {
    display: none;
  }

  .admin-events-table tbody {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
  }

  .admin-events-table tr,
  .admin-events-table td {
    display: block;
  }

  .admin-events-table .admin-events-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  }

  .admin-events-table td {
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }

  .admin-events-table .event-title-cell {
    color: var(--text);
    font-size: 15px;
    font-weight: 840;
    line-height: 1.3;
  }

  .admin-events-table .event-title-cell .cell-ellipsis {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .admin-events-table .event-organizer-cell {
    margin-top: -6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 680;
  }

  .admin-events-table .event-meta-cell {
    display: grid;
    grid-template-columns: minmax(88px, .55fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--text-soft);
    font-size: 13px;
  }

  .admin-events-table .event-meta-cell::before {
    content: attr(data-mobile-label);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 830;
  }

  .admin-events-table .event-meta-cell .cell-ellipsis {
    text-align: right;
  }

  .admin-events-table .event-meta-cell .status-pill {
    justify-self: end;
  }

  .admin-events-table .event-actions-cell {
    padding-top: 4px;
  }

  .admin-events-table .event-row-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .admin-events-table .event-row-actions button,
  .admin-events-table .event-row-actions summary {
    min-height: 44px;
    height: 44px;
    font-size: 13px;
  }

  .admin-events-table .event-row-actions > button {
    flex: 0 0 auto;
    min-width: 96px;
  }

  .admin-events-table .event-row-actions summary {
    width: 44px;
  }
}

/* Outlo UI refresh final table priority lock. Keep this block last. */
.admin-shell-page {
  overflow-x: hidden;
}

.admin-shell-page .admin-main {
  width: auto !important;
  max-width: none !important;
}

@media (min-width: 901px) {
  #eventsGrid .data-head,
  #eventsGrid .data-row {
    min-width: 0;
    grid-template-columns:
      minmax(150px, 1.45fr)
      minmax(120px, .95fr)
      108px
      96px
      118px
      190px;
  }

  #eventsGrid .data-head > *:nth-child(3),
  #eventsGrid .data-head > *:nth-child(6),
  #eventsGrid .data-head > *:nth-child(7),
  #eventsGrid .data-row > div:nth-child(3),
  #eventsGrid .data-row > div:nth-child(6),
  #eventsGrid .data-row > div:nth-child(7),
  #usersGrid .data-head > *:nth-child(5),
  #usersGrid .data-row > div:nth-child(5),
  #reportsGrid .data-head > *:nth-child(3),
  #reportsGrid .data-head > *:nth-child(4),
  #reportsGrid .data-head > *:nth-child(7),
  #reportsGrid .data-row > div:nth-child(3),
  #reportsGrid .data-row > div:nth-child(4),
  #reportsGrid .data-row > div:nth-child(7),
  #imagesGrid .data-head > *:nth-child(1),
  #imagesGrid .data-head > *:nth-child(5),
  #imagesGrid .data-row > div:nth-child(1),
  #imagesGrid .data-row > div:nth-child(5) {
    display: none;
  }

  #usersGrid .data-head,
  #usersGrid .data-row {
    min-width: 0;
    grid-template-columns:
      minmax(110px, 1fr)
      minmax(160px, 1.18fr)
      92px
      82px
      100px
      48px
      58px
      182px;
  }

  #reportsGrid .data-head,
  #reportsGrid .data-row {
    min-width: 0;
    grid-template-columns:
      102px
      minmax(130px, 1.1fr)
      minmax(112px, .92fr)
      minmax(170px, 1.35fr)
      80px
      80px
      190px;
  }

  #imagesGrid .data-head,
  #imagesGrid .data-row {
    min-width: 0;
    grid-template-columns:
      126px
      minmax(170px, 1.25fr)
      minmax(120px, .9fr)
      132px
      96px
      160px;
  }
}

/* Admin events dropdown EOF override. */
#view-events .admin-panel,
#eventsGrid.data-grid,
#view-events .admin-events-table-wrap,
#view-events .admin-events-table,
#view-events .admin-events-table tbody,
#view-events .admin-events-table tr,
#view-events .admin-events-table td {
  overflow: visible !important;
}

#view-events .admin-events-table .event-actions-cell,
#view-events .admin-events-table .action-menu {
  position: relative;
}

#view-events .admin-events-table .admin-events-row:has(.action-menu[open]),
#view-events .admin-events-table .event-actions-cell:has(.action-menu[open]) {
  z-index: 80;
}

#view-events .admin-events-table .action-menu[open] {
  z-index: 120;
}

#view-events .admin-events-table .action-menu-panel {
  box-sizing: border-box !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(320px, calc(100vw - 32px)) !important;
  z-index: 130;
}

#view-events .admin-events-table .action-menu-panel *,
#view-events .admin-events-table .action-menu-panel button,
#view-events .admin-events-table .action-menu-panel a {
  box-sizing: border-box !important;
}

#view-events .admin-events-table .action-menu-panel button,
#view-events .admin-events-table .action-menu-panel a {
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

@media (max-width: 850px) {
  #view-events .admin-events-table .action-menu-panel {
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: calc(100% + 8px) !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 40px) !important;
  }
}

/* Admin tablet layout EOF override. */
@media (min-width: 851px) and (max-width: 1180px) {
  .admin-shell-page {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  .admin-sidebar {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, .9) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
    overflow: hidden !important;
  }

  .admin-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 2px !important;
    scrollbar-width: thin;
  }

  .admin-menu button {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  .admin-sidebar-foot {
    display: none !important;
  }

  .admin-main {
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding: 16px !important;
  }
}

/* Admin responsive menu width lock. */
@media (max-width: 1180px) {
  .admin-shell-page {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .admin-shell-page > .topbar,
  .admin-sidebar,
  .admin-main {
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .admin-sidebar {
    justify-self: stretch !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-inline-size: 100vw !important;
    contain: inline-size !important;
  }

  .admin-menu {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-self: stretch !important;
  }

  .admin-menu button {
    max-width: max-content !important;
  }
}

/* Admin user badge responsive lock. */
#adminUserBadge {
  flex: 0 1 auto;
  justify-self: end;
  max-width: min(220px, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: none !important;
}

@media (max-width: 1180px) {
  .admin-topline {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-topline > div {
    min-width: 0 !important;
  }

  #adminUserBadge {
    max-width: min(180px, 32vw);
  }
}

@media (max-width: 560px) {
  .admin-topline {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  #adminUserBadge {
    max-width: 120px;
    min-height: 22px;
    padding-inline: 7px;
    font-size: 10px;
  }
}

/* Admin topline stable badge position. */
.admin-topline {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-content: normal !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.admin-topline > div {
  min-width: 0 !important;
}

.admin-topline h1 {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}

#adminUserBadge {
  grid-column: 2;
  justify-self: end !important;
  align-self: center !important;
}

@media (max-width: 560px) {
  .admin-topline {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
  }

  #adminUserBadge {
    align-self: start !important;
  }
}

/* Admin events desktop column density. */
@media (min-width: 851px) {
  #view-events .admin-events-table .col-date {
    width: 170px !important;
  }

  #view-events .admin-events-table .col-category {
    width: 160px !important;
  }

  #view-events .admin-events-table .col-status {
    width: 150px !important;
  }
}

/* Unified admin tables. Mirrors the approved Administrace -> Akce density without changing its custom table. */
.admin-panel > .admin-toolbar,
.admin-panel > .admin-data-table,
.admin-panel > .pager {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.admin-toolbar .admin-filter-date {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.admin-toolbar .admin-filter-date span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-toolbar .admin-filter-date input {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-toolbar .admin-filter-date input:focus {
  box-shadow: none;
}

.admin-toolbar .switch-filter {
  position: relative;
}

.admin-toolbar .switch-filter input {
  inset: auto !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
}

.admin-data-table {
  display: block !important;
  border: 1px solid rgba(226, 232, 240, .86) !important;
  border-radius: var(--radius-lg) !important;
  background: #fff !important;
  overflow: visible !important;
}

.admin-data-table .admin-table-head,
.admin-data-table .admin-table-row {
  display: grid !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 0 !important;
}

.admin-data-table .admin-table-head {
  min-height: 38px !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, .9) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  background: #f8fafc !important;
  color: var(--text-muted) !important;
  overflow: visible !important;
}

.admin-data-table .admin-table-head > *,
.admin-data-table .admin-table-head button {
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
  font-weight: 830 !important;
  letter-spacing: .04em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  text-align: left !important;
}

.admin-data-table .admin-table-head button {
  display: inline-flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
}

.admin-data-table .admin-table-head button:hover,
.admin-data-table .admin-table-head button:focus-visible {
  background: transparent !important;
  color: var(--accent-dark) !important;
}

.admin-data-table .admin-table-row {
  min-height: 68px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, .82) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: background-color .16s ease !important;
  overflow: visible !important;
}

.admin-data-table .admin-table-row:last-child {
  border-bottom: 0 !important;
}

.admin-data-table .admin-table-row:hover {
  background: #f8fbff !important;
}

.admin-data-table .admin-table-cell {
  display: block !important;
  min-width: 0 !important;
  padding: 10px 12px !important;
  color: var(--text-soft) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-data-table .admin-table-cell[data-col="actions"] {
  overflow: visible !important;
}

.admin-cell-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.admin-cell-stack strong,
.admin-cell-stack span,
.admin-cell-stack small,
.admin-data-table .admin-table-cell:not([data-col="actions"]) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-cell-stack strong,
.admin-data-table .admin-table-cell > strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.admin-cell-stack span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.admin-cell-stack small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 620;
  white-space: nowrap;
}

.admin-cell-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-cell-metrics span {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 9px;
  background: #f8fafc;
}

.admin-cell-metrics small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 760;
}

.admin-cell-metrics strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
}

.admin-data-table .row-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 0 auto !important;
  overflow: visible !important;
}

.admin-data-table .row-actions button,
.admin-data-table .row-actions a,
.admin-data-table .row-actions summary {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.admin-data-table .row-actions .action-menu summary {
  width: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
}

.admin-data-table .action-menu,
.admin-data-table .admin-table-cell[data-col="actions"] {
  position: relative;
}

.admin-data-table .admin-table-row:has(.action-menu[open]),
.admin-data-table .admin-table-cell:has(.action-menu[open]) {
  z-index: 90;
}

.admin-data-table .action-menu[open] {
  z-index: 130;
}

.admin-data-table .action-menu-panel {
  box-sizing: border-box !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(320px, calc(100vw - 32px)) !important;
  z-index: 150 !important;
}

.admin-data-table .action-menu-panel button,
.admin-data-table .action-menu-panel a {
  width: 100% !important;
  max-width: 100% !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}

.admin-data-table .admin-table-cell[data-col="actions"],
.admin-data-table .admin-table-head > *:last-child {
  text-align: right !important;
}

.admin-data-table .empty-data {
  margin: 12px;
}

@media (min-width: 851px) {
  .admin-data-table .admin-table-head > *,
  .admin-data-table .admin-table-row > .admin-table-cell {
    display: block !important;
  }

  .admin-data-table .admin-table-head > button {
    display: inline-flex !important;
  }
}

#notificationsGrid .admin-table-head,
#notificationsGrid .admin-table-row {
  grid-template-columns: minmax(240px, 1.45fr) 150px 142px 116px 132px !important;
}

#usersGrid .admin-table-head,
#usersGrid .admin-table-row {
  grid-template-columns:
    minmax(170px, 1.45fr)
    94px
    104px
    96px
    124px
    104px
    220px !important;
}

#reportsGrid .admin-table-head,
#reportsGrid .admin-table-row {
  grid-template-columns: minmax(230px, 1.15fr) minmax(230px, 1.05fr) 142px 150px 116px 132px !important;
}

#imagesGrid .admin-table-head,
#imagesGrid .admin-table-row {
  grid-template-columns: 118px minmax(240px, 1.45fr) 178px 122px 142px !important;
}

#requestsGrid .admin-table-head,
#requestsGrid .admin-table-row {
  grid-template-columns: minmax(210px, 1.1fr) minmax(240px, 1.25fr) 142px minmax(180px, .9fr) 120px 132px !important;
}

#moderationGrid .admin-table-head,
#moderationGrid .admin-table-row {
  grid-template-columns: minmax(260px, 1.55fr) 132px 92px 92px 142px 160px !important;
}

#auditGrid .admin-table-head,
#auditGrid .admin-table-row {
  grid-template-columns: 150px minmax(170px, .9fr) minmax(210px, 1fr) minmax(160px, .8fr) minmax(250px, 1.2fr) !important;
}

.admin-data-table .review-image-preview {
  width: 92px;
  height: 60px;
  border-radius: 10px;
}

.admin-data-table .image-file-meta {
  gap: 3px;
}

.admin-data-table .image-file-meta span {
  display: grid;
  gap: 1px;
}

.admin-data-table .image-file-meta strong {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 780;
}

.admin-data-table .image-file-meta em {
  color: var(--text-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.admin-dashboard-grid .activity-list,
.admin-dashboard-grid .stat-list {
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.admin-dashboard-grid .activity-item,
.admin-dashboard-grid .stat-row {
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  background: #fff;
  box-shadow: none;
}

.admin-dashboard-grid .activity-item:last-child,
.admin-dashboard-grid .stat-row:last-child {
  border-bottom: 0;
}

.admin-dashboard-grid .activity-item strong,
.admin-dashboard-grid .stat-row span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.admin-dashboard-grid .activity-item span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1180px) and (min-width: 851px) {
  .admin-data-table .admin-table-row {
    min-height: 64px !important;
  }

  .admin-data-table .admin-table-cell {
    padding-inline: 10px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 850px) {
  .admin-panel > .admin-toolbar {
    width: auto !important;
    margin-inline: 14px !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-panel > .admin-data-table {
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .admin-data-table .admin-table-head {
    display: none !important;
  }

  .admin-data-table .admin-table-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    min-height: 0 !important;
    margin: 0 14px 12px !important;
    padding: 16px !important;
    border: 1px solid rgba(226, 232, 240, .9) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05) !important;
    overflow: visible !important;
  }

  #notificationsGrid.admin-data-table .admin-table-row,
  #usersGrid.admin-data-table .admin-table-row,
  #reportsGrid.admin-data-table .admin-table-row,
  #requestsGrid.admin-data-table .admin-table-row,
  #moderationGrid.admin-data-table .admin-table-row,
  #auditGrid.admin-data-table .admin-table-row {
    grid-template-columns: 1fr !important;
  }

  .admin-data-table .admin-table-cell {
    display: grid !important;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: 13px !important;
    text-align: right !important;
  }

  .admin-data-table .admin-table-cell::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 830;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: left;
  }

  .admin-data-table .admin-table-cell:first-child {
    display: block !important;
    text-align: left !important;
  }

  .admin-data-table .admin-table-cell:first-child::before,
  .admin-data-table .admin-table-cell[data-col="preview"]::before,
  .admin-data-table .admin-table-cell[data-col="actions"]::before {
    display: none !important;
  }

  .admin-data-table .admin-table-cell[data-col="actions"] {
    display: block !important;
    padding-top: 4px !important;
  }

  .admin-cell-stack strong {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .admin-cell-stack span,
  .admin-cell-stack small {
    white-space: normal;
  }

  .admin-data-table .row-actions {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .admin-data-table .row-actions button,
  .admin-data-table .row-actions a,
  .admin-data-table .row-actions summary {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13px !important;
  }

  .admin-data-table .row-actions > button,
  .admin-data-table .row-actions > a {
    flex: 0 0 auto !important;
    min-width: 96px !important;
  }

  .admin-data-table .row-actions .action-menu summary {
    width: 44px !important;
    min-width: 44px !important;
  }

  .admin-data-table .action-menu-panel {
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: calc(100% + 8px) !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - 40px) !important;
  }

  #imagesGrid .admin-table-cell[data-col="preview"] {
    display: block !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    text-align: left !important;
  }

  #imagesGrid.admin-data-table .admin-table-row {
    grid-template-columns: 1fr !important;
  }

  #imagesGrid.admin-data-table .admin-table-cell {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: auto !important;
    text-align: left !important;
  }

  #imagesGrid .admin-table-cell[data-col="event"],
  #imagesGrid .admin-table-cell[data-col="meta"],
  #imagesGrid .admin-table-cell[data-col="status"],
  #imagesGrid .admin-table-cell[data-col="actions"] {
    grid-column: auto !important;
  }

  #imagesGrid .review-image-preview {
    width: 100%;
    height: 172px;
  }

  .admin-dashboard-grid .activity-item,
  .admin-dashboard-grid .stat-row {
    min-height: 0;
  }
}

/* Organizer panel MVP refresh: uses the approved admin density, with a friendlier owner-facing layout. */
.organizer-shell {
  width: min(var(--content-max), calc(100vw - 28px)) !important;
  gap: 14px !important;
  padding: 18px 0 34px !important;
}

.organizer-hero {
  padding: 14px 16px !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-xs) !important;
}

.organizer-hero h1 {
  font-size: 22px !important;
  line-height: 1.18 !important;
}

.organizer-hero p:not(.eyebrow) {
  margin-top: 6px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.organizer-workspace {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.organizer-toolbar,
.organizer-events-panel,
.organizer-dashboard-block,
.organizer-panel-card {
  border: 1px solid rgba(226, 232, 240, .86) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--shadow-xs) !important;
}

.organizer-page .topbar #newEventButton {
  display: none !important;
}

.organizer-page-head {
  display: grid;
  gap: 12px;
  padding: 16px 16px 0;
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f7ff, #fff 62%);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.organizer-head-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.organizer-head-main h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.12;
}

.organizer-head-main p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.organizer-head-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.organizer-context-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.organizer-context-bar label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  width: min(280px, 36vw);
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 760;
}

.organizer-context-bar select {
  min-height: 34px;
  border-radius: 9px;
  background: #fff;
}

.organizer-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(226, 232, 240, .76) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-x: auto;
}

.organizer-tabs button {
  position: relative;
  min-height: 44px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

.organizer-tabs,
.organizer-status-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none !important;
}

.organizer-tabs::-webkit-scrollbar,
.organizer-status-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.organizer-tabs button:hover,
.organizer-tabs button.active {
  color: var(--accent-dark) !important;
}

.organizer-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.organizer-view.active {
  gap: 12px !important;
}

#orgView-overview.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.organizer-dashboard-block {
  padding: 14px !important;
}

.organizer-dashboard-block.priority-block {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px !important;
}

.organizer-dashboard-block.priority-block .organizer-dashboard-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
}

.organizer-dashboard-head {
  align-items: center !important;
  gap: 12px;
  margin-bottom: 10px;
}

.organizer-dashboard-head h2,
.organizer-events-headline h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.organizer-dashboard-head p {
  max-width: 620px;
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.organizer-stats,
.organizer-action-cards,
.organizer-quick-grid {
  gap: 10px !important;
}

.organizer-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.organizer-action-cards {
  grid-template-columns: 1fr !important;
  justify-content: start !important;
}

.organizer-stat-card,
.organizer-action-card,
.organizer-quick-card {
  min-height: 0 !important;
  padding: 12px 13px !important;
  border-radius: 12px !important;
  text-align: left;
}

.organizer-stat-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  --stat-tone: #94a3b8;
  --stat-soft: #f8fafc;
  gap: 0 10px;
  align-items: center;
  min-height: 48px !important;
  border-left: 3px solid var(--stat-tone) !important;
  background: linear-gradient(90deg, var(--stat-soft), #fff 52%) !important;
  cursor: pointer;
}

.organizer-stat-card:hover {
  border-color: rgba(203, 213, 225, .95) !important;
  background: linear-gradient(90deg, var(--stat-soft, #f8fbff), #fff 64%) !important;
}

.organizer-action-card:hover,
.organizer-quick-card:hover {
  border-color: var(--accent-line) !important;
  background: var(--surface-muted) !important;
}

.organizer-action-card.has-value.info:hover {
  border-left-color: var(--info) !important;
}

.organizer-action-card.has-value.warning:hover {
  border-left-color: var(--warning) !important;
}

.organizer-action-card.has-value.critical:hover {
  border-left-color: var(--danger) !important;
}

.organizer-stat-card.stat-active {
  --stat-tone: var(--success);
  --stat-soft: var(--success-soft);
}

.organizer-stat-card.stat-todo {
  --stat-tone: var(--warning);
  --stat-soft: var(--warning-soft);
}

.organizer-stat-card.stat-past {
  --stat-tone: #64748b;
  --stat-soft: #f8fafc;
}

.organizer-stat-card.stat-hidden {
  --stat-tone: #475569;
  --stat-soft: #f1f5f9;
}

.organizer-stat-card span,
.organizer-action-card > span {
  color: var(--text-muted);
  font-size: 12px !important;
  font-weight: 680 !important;
  text-transform: none !important;
}

.organizer-stat-card strong {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0 !important;
  color: var(--stat-tone);
  font-size: 20px !important;
}

.organizer-stat-card small {
  display: none;
}

.organizer-action-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-height: 68px !important;
  align-items: center !important;
}

.organizer-action-card > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.organizer-action-card > span > strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-action-card > span > small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 640;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-action-card > em {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--outlo-brand-text);
  font-size: 15px;
  font-style: normal;
  font-weight: 860;
}

.organizer-actions-hub {
  padding: 12px 14px !important;
  background: var(--surface-muted) !important;
}

.organizer-actions-hub .organizer-dashboard-head {
  margin-bottom: 8px;
}

.organizer-command-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.organizer-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 10px;
  background: #fff;
  color: var(--text-soft);
  box-shadow: none;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.organizer-command:hover,
.organizer-command:focus-visible {
  border-color: var(--accent-line);
  background: #f8fbff;
  color: var(--accent-dark);
}

.organizer-command.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.organizer-command.primary:hover,
.organizer-command.primary:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.moderation-notice {
  padding: 0 !important;
  border-color: var(--warning-line) !important;
  border-left: 3px solid var(--warning) !important;
  background: var(--warning-soft) !important;
}

.organizer-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
}

.organizer-check-row:last-child {
  border-bottom: 0;
}

.organizer-check-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.organizer-check-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-check-row small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 630;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-check-actions,
.rules-status-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.moderation-notice .organizer-check-row {
  align-items: center;
  background: transparent;
}

.moderation-notice .moderation-notice-actions {
  padding: 10px 14px 12px;
}

.rules-status-card {
  padding: 0 !important;
}

.rules-status-card.is-accepted {
  border-color: var(--success-line) !important;
  border-left: 3px solid var(--success) !important;
  background: var(--success-soft) !important;
}

.rules-status-card.is-accepted .organizer-check-row strong {
  color: var(--text);
}

.rules-status-card.is-accepted .organizer-check-row small {
  color: var(--text-muted);
}

.rules-status-actions .button-link.quiet {
  min-height: 30px;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.organizer-invite-notice {
  gap: 0 !important;
  padding: 0 !important;
  border-color: var(--info-line) !important;
  background: var(--info-soft) !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .08) !important;
  overflow: hidden;
}

.organizer-invite-head {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--info-line);
  background: var(--info-soft);
}

.organizer-invite-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 840;
  line-height: 1.25;
}

.organizer-invite-head small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.38;
}

.organizer-invite-list {
  display: grid;
}

.organizer-pending-invite {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .76) !important;
}

.organizer-pending-invite + .organizer-pending-invite {
  border-top: 1px solid rgba(226, 232, 240, .86) !important;
}

.organizer-pending-invite .invite-avatar {
  background: var(--info);
  color: #fff;
}

.organizer-pending-invite .invite-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.organizer-pending-invite .invite-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-pending-invite .invite-copy span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 660;
}

.organizer-toolbar {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.2fr) minmax(200px, 280px) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 10px !important;
  background: var(--surface-muted) !important;
  box-shadow: none !important;
}

.organizer-events-panel .organizer-toolbar {
  border-width: 0 0 1px 0 !important;
  border-color: rgba(226, 232, 240, .86) !important;
  border-radius: 0 !important;
}

.organizer-toolbar label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 780;
}

.organizer-toolbar input,
.organizer-toolbar select {
  min-height: 36px !important;
  border-radius: 9px !important;
  background: #fff !important;
}

.organizer-sections {
  gap: 12px !important;
}

.organizer-events-panel {
  overflow: visible;
}

.organizer-events-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, .86);
}

.organizer-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, .86);
  background: #f8fafc;
  overflow-x: visible;
  scrollbar-width: thin;
}

.organizer-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.organizer-status-tab strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  font-weight: 830;
}

.organizer-status-tab:hover,
.organizer-status-tab.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.organizer-events-table {
  overflow: visible;
}

.organizer-events-table-head,
.organizer-event-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) 170px minmax(190px, 1fr) 130px 132px 122px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.organizer-events-table-head {
  min-height: 38px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: #f8fafc;
}

.organizer-events-table-head span {
  min-width: 0;
  padding: 7px 12px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 830;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.organizer-event-row {
  min-height: 68px;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  background: #fff;
  transition: background-color .16s ease;
}

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

.organizer-event-row:hover {
  background: #f8fbff;
}

.organizer-event-cell {
  min-width: 0;
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.organizer-event-cell.actions {
  overflow: visible;
}

.organizer-cell-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.organizer-cell-stack strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-cell-stack span {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  overflow: visible;
}

.organizer-row-actions .button-link,
.organizer-row-actions button,
.organizer-row-actions summary {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.organizer-row-actions .action-menu summary {
  width: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
}

.organizer-row-actions .primary-soft {
  border-color: var(--accent-line) !important;
  background: var(--accent-soft) !important;
  color: var(--accent-dark) !important;
}

.organizer-row-actions .promotion-action {
  border-color: rgba(79, 70, 229, .25) !important;
  background: rgba(238, 242, 255, .82) !important;
  color: #4338ca !important;
}

.organizer-events-table .action-menu,
.organizer-event-cell.actions {
  position: relative;
}

.organizer-event-row:has(.action-menu[open]),
.organizer-event-cell:has(.action-menu[open]) {
  z-index: 90;
}

.organizer-events-table .action-menu[open] {
  z-index: 130;
}

.organizer-events-table .action-menu-panel {
  box-sizing: border-box;
  width: max-content;
  min-width: 0;
  max-width: min(320px, calc(100vw - 32px));
  z-index: 150;
}

.organizer-events-table .action-menu-panel button,
.organizer-events-table .action-menu-panel a {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 36px !important;
  height: auto !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-soft) !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-decoration: none !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
  transform: none !important;
}

.organizer-events-table .action-menu-panel button:hover,
.organizer-events-table .action-menu-panel a:hover {
  background: var(--surface-muted) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.image-summary-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.image-summary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.image-summary.approved {
  background: var(--success-soft);
  color: var(--success);
}

.image-summary.review {
  background: var(--warning-soft);
  color: #b45309;
}

.image-summary.problem {
  background: var(--danger-soft);
  color: var(--danger);
}

.image-summary.muted {
  background: #f1f5f9;
  color: var(--text-muted);
}

.organizer-events-table .organizer-empty {
  margin: 12px;
  border: 1px dashed rgba(203, 213, 225, .95);
  border-radius: 12px;
  background: #f8fafc;
}

.organizer-work-panel {
  gap: 12px !important;
  padding: 14px !important;
}

.organizer-work-panel .organizer-section-head {
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
}

.organizer-work-panel .data-list {
  border-color: rgba(226, 232, 240, .9);
  border-radius: 12px;
}

.organizer-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(124px, auto) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  background: #fff;
  transition: background-color .16s ease;
}

.organizer-work-row:last-child {
  border-bottom: 0;
}

.organizer-work-row:hover {
  background: #f8fbff;
}

.organizer-work-row.unread {
  box-shadow: inset 3px 0 0 var(--accent);
}

.organizer-work-main,
.organizer-work-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.organizer-work-title strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-work-title span,
.organizer-work-meta time {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-work-main p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.organizer-work-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.organizer-work-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 7px;
}

.organizer-work-actions button {
  min-height: 32px !important;
  height: 32px !important;
  padding-inline: 10px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  white-space: nowrap;
}

.organizer-source-link {
  display: block;
  overflow: hidden;
  max-width: 560px;
  margin-top: 5px;
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizer-empty.compact {
  display: grid;
  gap: 3px;
  padding: 16px;
  border: 1px dashed rgba(203, 213, 225, .9);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text);
}

.organizer-empty.compact strong {
  font-size: 13px;
  line-height: 1.3;
}

.organizer-empty.compact span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.status-pill.unread {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.status-pill.read {
  background: #eef2ff;
  color: #4338ca;
}

.status-pill.dismissed {
  background: #f1f5f9;
  color: #64748b;
}

.organizer-profile-panel {
  gap: 14px !important;
  padding: 16px !important;
}

.organizer-profile-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, .84);
}

.organizer-profile-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
}

.organizer-profile-header h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.organizer-profile-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.organizer-profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.organizer-profile-metrics span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 12px;
  background: #f8fafc;
}

.organizer-profile-metrics strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.organizer-profile-metrics small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 680;
}

.organizer-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.organizer-profile-actions .button-link {
  min-height: 34px;
  border-radius: 9px;
}

.organizer-profile-note {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid rgba(191, 219, 254, .82);
  border-radius: 12px;
  background: #eff6ff;
}

.organizer-profile-note strong {
  color: var(--text);
  font-size: 13px;
}

.organizer-profile-note span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 1180px) and (min-width: 851px) {
  .organizer-events-table-head,
  .organizer-event-row {
    grid-template-columns: minmax(210px, 1.15fr) 150px minmax(170px, .95fr) 118px 120px 116px;
  }

  .organizer-event-cell {
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (max-width: 850px) {
  .organizer-shell {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 0 28px !important;
    overflow-x: hidden !important;
  }

  .organizer-workspace,
  .organizer-view,
  .organizer-view.active,
  .organizer-sections {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .organizer-page-head,
  .organizer-hero,
  .organizer-dashboard-block,
  .organizer-panel-card,
  .organizer-toolbar,
  .organizer-events-panel {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    margin-inline: 14px !important;
  }

  .organizer-hero {
    display: grid !important;
    gap: 12px !important;
  }

  .organizer-page-head {
    gap: 10px;
    padding: 14px 14px 0 !important;
  }

  .organizer-head-main {
    display: grid;
    gap: 14px;
  }

  .organizer-head-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .organizer-context-bar {
    display: grid;
    width: 100%;
  }

  .organizer-context-bar label {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .organizer-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    margin-inline: 0 !important;
  }

  .organizer-tabs button {
    flex: 0 0 auto;
  }

  .organizer-toolbar {
    grid-template-columns: 1fr !important;
  }

  .organizer-events-panel .organizer-toolbar {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  .organizer-stats,
  .organizer-action-cards,
  .organizer-quick-grid {
    grid-template-columns: 1fr !important;
  }

  .organizer-dashboard-block.priority-block {
    grid-template-columns: 1fr !important;
  }

  .organizer-dashboard-block.priority-block .organizer-dashboard-head,
  .organizer-dashboard-block.priority-block #organizerModerationNotice,
  .organizer-dashboard-block.priority-block #organizerRulesStatus,
  .organizer-dashboard-block.priority-block #organizerActionCards,
  .organizer-dashboard-block.priority-block #organizerInviteNotice {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .organizer-check-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .organizer-check-row strong,
  .organizer-check-row small {
    white-space: normal;
  }

  .organizer-check-actions,
  .rules-status-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .organizer-pending-invite {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  .organizer-pending-invite .team-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .organizer-pending-invite .team-actions button {
    flex: 1 1 140px;
    min-height: 40px;
  }

  .organizer-pending-invite .invite-copy strong {
    white-space: normal;
  }

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

  .organizer-events-table-head {
    display: none;
  }

  .organizer-events-panel {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .organizer-events-headline,
  .organizer-status-tabs {
    border: 1px solid rgba(226, 232, 240, .86);
    background: #fff;
  }

  .organizer-events-headline {
    border-radius: 16px 16px 0 0;
  }

  .organizer-status-tabs {
    border-top: 0;
    border-radius: 0 0 16px 16px;
    flex-wrap: nowrap;
    margin-bottom: 12px;
    overflow-x: auto;
  }

  .organizer-events-table-body {
    display: grid;
    gap: 12px;
  }

  .organizer-event-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  }

  .organizer-event-cell {
    display: grid;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0;
    overflow: visible;
    text-align: right;
  }

  .organizer-event-cell::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 830;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
  }

  .organizer-event-cell.primary {
    display: block;
    text-align: left;
  }

  .organizer-event-cell.primary::before,
  .organizer-event-cell.actions::before {
    display: none;
  }

  .organizer-cell-stack strong {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .organizer-cell-stack span {
    white-space: normal;
  }

  .organizer-event-cell.actions {
    display: block;
    padding-top: 4px;
  }

  .organizer-row-actions {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .organizer-row-actions .button-link,
  .organizer-row-actions button,
  .organizer-row-actions summary {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13px !important;
  }

  .organizer-row-actions .button-link {
    min-width: 96px;
  }

  .organizer-row-actions .action-menu summary {
    width: 44px !important;
    min-width: 44px !important;
  }

  .organizer-events-table .action-menu-panel {
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: calc(100% + 8px) !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .organizer-work-panel {
    padding: 13px !important;
  }

  .organizer-work-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 14px;
  }

  .organizer-work-title strong {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .organizer-work-title span,
  .organizer-work-meta time,
  .organizer-source-link {
    white-space: normal;
  }

  .organizer-work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .organizer-work-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .organizer-work-actions button {
    min-height: 40px !important;
    height: 40px !important;
  }

  .organizer-profile-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .organizer-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .organizer-profile-metrics {
    grid-template-columns: 1fr;
  }

  .organizer-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .organizer-profile-actions .button-link {
    width: 100%;
  }
}

/* Badge sizing guard: status chips must keep content width in grids, cards and tables. */
.badge,
.status-pill,
.category-badge,
.tag-badge,
.role-badge,
.status-badge,
.count-badge,
.image-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  justify-self: start;
  align-self: center;
  gap: 5px;
  white-space: nowrap;
}

.badge,
.status-pill,
.category-badge,
.tag-badge,
.role-badge,
.status-badge,
.image-summary {
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.2;
}

.profile-menu-badge,
.menu-count-badge,
.menu-badge {
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 20px;
  max-width: 100%;
  flex: 0 0 auto;
  justify-self: auto;
  align-self: center;
  white-space: nowrap;
}

.admin-events-table .event-meta-cell .status-pill,
.admin-data-table .admin-table-cell .badge,
.admin-data-table .admin-table-cell .status-pill,
.admin-data-table .admin-table-cell .category-badge,
.admin-data-table .admin-table-cell .image-summary,
.organizer-event-cell .badge,
.organizer-event-cell .status-pill,
.organizer-event-cell .category-badge,
.organizer-event-cell .image-summary,
.organizer-work-meta .status-pill,
.organizer-work-meta .badge,
.moderation-history-head .status-pill {
  width: fit-content;
  flex: 0 0 auto;
  justify-self: end;
  align-self: center;
}

.admin-data-table .admin-table-cell:first-child .badge,
.admin-data-table .admin-table-cell:first-child .status-pill,
.organizer-event-cell.primary .badge,
.organizer-event-cell.primary .status-pill {
  justify-self: start;
}

.image-summary-group {
  align-items: center;
}

/* Event form redesign: sectioned, compact and mobile-friendly. */
#eventDialog {
  width: min(960px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

#eventDialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 28px);
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}

#eventDialog .dialog-head {
  flex: 0 0 auto;
  align-items: flex-start;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(221, 228, 238, .92);
}

#eventDialog .event-dialog-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#eventDialog .event-outlo-tip-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--outlo-brand-border);
  border-radius: 8px;
  color: var(--outlo-brand-text);
  background: var(--outlo-brand-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#eventDialog .event-outlo-tip-control input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--outlo-brand-accent);
}

#eventDialog .event-outlo-tip-control:has(input:checked) {
  border-color: var(--outlo-brand-accent);
  background: var(--outlo-brand-soft-hover);
}

@media (max-width: 640px) {
  #eventDialog .event-outlo-tip-control {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}

#eventDialog .dialog-head h2 {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.01em;
}

#eventDialog .event-form-main-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#eventDialog .event-form-title-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--outlo-brand-accent);
}

#eventDialog .event-form-title-icon svg {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialog-subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

#eventDialog .event-form-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  padding: 2px 20px 96px;
  overflow: auto;
}

#eventDialog .form-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 18px 0 0;
}

#eventDialog .form-section + .form-section {
  margin-top: 6px;
  border-top: 1px solid rgba(221, 228, 238, .9);
}

#eventDialog .form-section-head {
  display: grid;
  gap: 3px;
}

#eventDialog .form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#eventDialog .form-section-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--outlo-brand-accent);
}

#eventDialog .form-section-icon svg {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

#eventDialog .form-section-head h3 {
  margin: 0;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.005em;
  white-space: nowrap;
}

#eventDialog .form-section-line {
  height: 1px;
  flex: 1 1 auto;
  min-width: 24px;
  margin-left: 2px;
  background: rgba(221, 228, 238, .95);
}

#eventDialog .form-section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

#eventDialog .form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

#eventDialog .form-section-grid .wide {
  grid-column: 1 / -1;
}

#eventDialog label,
#eventDialog fieldset legend {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 560;
}

#eventDialog input,
#eventDialog select,
#eventDialog textarea {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 450;
}

#eventDialog textarea {
  min-height: 108px;
  line-height: 1.45;
}

#eventDialog .hint {
  color: var(--text-muted);
  font-size: 12px;
}

#eventDialog .datetime-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

#eventDialog .datetime-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#eventDialog .datetime-group legend {
  margin: 0 0 5px;
  padding: 0;
  color: var(--text);
  font-weight: 650;
}

#eventDialog .datetime-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  max-width: 520px;
}

#eventDialog .address-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 150px 180px;
  gap: 12px;
}

#eventDialog .address-fields label:first-child {
  grid-column: auto;
}

#eventDialog .address-fields .autocomplete-list {
  grid-column: 1 / -1;
  top: calc(100% + 6px);
}

#eventDialog .location-search-button {
  align-self: end;
  min-height: 40px;
  border-radius: 10px;
}

#eventDialog .location-picker {
  gap: 10px;
}

#eventLocationMap {
  height: 240px;
  min-height: 220px;
  border-color: rgba(203, 213, 225, .86);
  border-radius: 12px;
}

.location-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(221, 228, 238, .92);
  border-radius: 12px;
  background: var(--surface-muted);
}

#coordinateHint {
  margin: 0;
  min-width: 0;
}

#coordinateHint.is-warning {
  color: var(--warning);
  font-weight: 560;
}

#coordinateHint.is-confirmed {
  color: var(--success);
  font-weight: 560;
}

#confirmLocationButton {
  flex: 0 0 auto;
  white-space: nowrap;
}

#eventDialog .form-info {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--info-line);
  border-radius: 12px;
  background: var(--info-soft);
  color: var(--info);
  font-size: 12px;
  line-height: 1.45;
}

#eventDialog #imageReviewTimingNotice {
  display: grid;
  gap: 3px;
  border-color: #cdd4fb;
  background: #f7f7ff;
  color: #434a76;
}

#eventDialog #imageReviewTimingNotice strong {
  color: #3730a3;
  font-size: 12px;
  font-weight: 750;
}

#eventDialog #imageReviewTimingNotice .image-review-trust-note {
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid #dfe2fb;
  color: #596181;
}

#eventDialog #imageReviewTimingNotice .image-review-trust-note b {
  color: #434a76;
  font-weight: 700;
}

#eventDialog .rules-confirm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 550;
  line-height: 1.45;
}

#eventDialog .rules-confirm input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
}

#eventDialog .event-image-manager {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(221, 228, 238, .92);
  border-radius: 12px;
  background: var(--surface-muted);
}

#eventDialog .event-image-manager-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 850;
}

#eventDialog .event-image-manager-head p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

#eventDialog .pending-image-selection {
  display: grid;
  gap: 9px;
  margin-top: -2px;
  padding: 12px;
  border: 1px solid rgba(221, 228, 238, .95);
  border-radius: 12px;
  background: var(--surface-muted);
}

#eventDialog .pending-image-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
}

#eventDialog .pending-image-selection-head strong {
  font-weight: 820;
}

#eventDialog .pending-image-selection-head span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

#eventDialog .pending-image-list {
  display: grid;
  gap: 7px;
}

#eventDialog .pending-image-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(221, 228, 238, .82);
  border-radius: 10px;
  background: #fff;
}

#eventDialog .pending-image-thumb {
  width: 64px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(221, 228, 238, .92);
  border-radius: 9px;
  background: var(--surface-muted);
}

#eventDialog .pending-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#eventDialog .pending-image-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#eventDialog .pending-image-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#eventDialog .pending-image-meta strong,
#eventDialog .pending-image-meta > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#eventDialog .pending-image-meta strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

#eventDialog .pending-image-meta > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 550;
}

#eventDialog .pending-main-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

#eventDialog .pending-image-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

#eventDialog .pending-image-actions .icon-only {
  width: 34px;
  min-width: 34px;
  padding-inline: 0;
  font-size: 15px;
  line-height: 1;
}

#eventDialog .pending-image-actions button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
  box-shadow: none;
}

#eventDialog .event-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(221, 228, 238, .95);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#eventDialog .event-form-actions button {
  min-width: 130px;
}

@media (max-width: 780px) {
  #eventDialog {
    width: min(100vw - 12px, 720px);
    max-height: calc(100vh - 12px);
    border-radius: 16px;
  }

  #eventDialog form {
    max-height: calc(100vh - 12px);
  }

  #eventDialog .dialog-head {
    padding: 14px 14px 12px;
  }

  #eventDialog .dialog-head h2 {
    font-size: 18px !important;
  }

  #eventDialog .event-form-body {
    padding: 0 14px 92px;
  }

  #eventDialog .form-section {
    gap: 13px;
    padding-top: 20px;
  }

  #eventDialog .form-section + .form-section {
    margin-top: 8px;
  }

  #eventDialog .form-section-grid,
  #eventDialog .datetime-section,
  #eventDialog .address-fields {
    grid-template-columns: 1fr;
  }

  #eventDialog .datetime-fields {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
  }

  #eventDialog .location-search-button {
    width: 100%;
  }

  #eventLocationMap {
    height: 230px;
    min-height: 220px;
  }

  .location-confirm-row {
    display: grid;
    gap: 10px;
  }

  #confirmLocationButton {
    width: 100%;
    min-height: 44px;
  }

  #eventDialog .event-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  }

  #eventDialog .event-form-actions button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  #eventDialog .pending-image-item {
    grid-template-columns: 1fr;
  }

  #eventDialog .pending-image-thumb {
    width: 100%;
    max-height: 180px;
  }

  #eventDialog .pending-image-actions {
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr);
    justify-content: stretch;
  }

  #eventDialog .pending-image-actions button {
    min-height: 40px;
  }

  #eventDialog .pending-image-actions .icon-only {
    width: 44px;
    min-width: 44px;
  }
}

@media (max-width: 390px) {
  #eventDialog .datetime-fields {
    grid-template-columns: 1fr;
  }
}

/* Event form visual variant inspired by compact product dashboards. */
#eventDialog {
  width: min(980px, calc(100vw - 24px));
  overflow: visible;
  border: 1px solid rgba(221, 228, 238, .96);
  border-radius: 15px;
  background: #f5f7fb;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

#eventDialog form {
  background: #f5f7fb;
}

#eventDialog .dialog-head {
  min-height: 58px;
  padding: 13px 18px 12px;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#eventDialog .dialog-head .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
}

#eventDialog .event-form-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

#eventDialog .event-form-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  padding: 12px 14px 78px;
  background:
    radial-gradient(circle at 18% 0, rgba(79, 70, 229, .05), transparent 28%),
    #f5f7fb;
}

#eventDialog .form-section {
  align-self: start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(221, 228, 238, .96);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

#eventDialog .form-section + .form-section {
  margin-top: 0;
  border-top: 1px solid rgba(221, 228, 238, .96);
}

#eventDialog .form-section-basic,
#eventDialog .form-section-schedule,
#eventDialog .form-section-location,
#eventDialog .form-section-organizer,
#eventDialog .form-section-publish {
  grid-column: 1 / -1;
}

#eventDialog .form-section-images {
  grid-column: 1 / 2;
  order: 4;
}

#eventDialog .form-section-links {
  grid-column: 2 / 3;
  order: 5;
}

#eventDialog .form-section-organizer {
  order: 6;
}

#eventDialog .form-section-publish {
  order: 7;
}

#eventDialog .form-section-title {
  gap: 8px;
}

#eventDialog .form-section-icon svg {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
}

#eventDialog .form-section-head h3 {
  font-size: 15px;
  font-weight: 780;
}

#eventDialog .form-section-line {
  opacity: .62;
}

#eventDialog .form-section-grid {
  gap: 11px 18px;
}

#eventDialog label,
#eventDialog fieldset legend {
  font-size: 12px;
  font-weight: 700;
}

#eventDialog input,
#eventDialog select,
#eventDialog textarea {
  min-height: 38px;
  border-color: #dce5ef;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 430;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .025);
}

#eventDialog input::placeholder,
#eventDialog textarea::placeholder {
  color: #8a97aa;
  font-weight: 430;
}

#eventDialog textarea {
  min-height: 86px;
  resize: vertical;
}

#eventDialog #descriptionInput {
  min-height: 154px;
  line-height: 1.5;
}

#eventDialog .description-field-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: #718096;
  font-size: 11px;
  font-weight: 500;
}

#eventDialog .description-field-footer output {
  text-align: right;
}

#eventDialog .description-field-footer output.is-over-limit {
  color: #c2415d;
  font-weight: 650;
}

#eventDialog .schedule-section {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(260px, .72fr);
  gap: 12px 18px;
  align-items: start;
}

#eventDialog .term-type-group {
  grid-column: 1 / 2;
  grid-row: 1 / span 4;
}

#eventDialog .term-type-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#eventDialog .term-type-card {
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 118px;
  padding: 14px 13px !important;
  align-content: start;
  align-items: start;
  border-radius: 10px;
}

#eventDialog .term-type-card input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--primary);
}

#eventDialog .term-type-icon {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0 0 14px;
  color: #44536b;
}

#eventDialog .term-type-icon svg {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

#eventDialog .term-type-card > span:last-child {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}

#eventDialog .term-type-card strong {
  font-size: 13px;
  font-weight: 760;
}

#eventDialog .term-type-card small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 430;
  line-height: 1.35;
}

#eventDialog .term-type-card:has(input:checked) {
  border-color: var(--primary);
  background: #fbfbff;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .12);
}

#eventDialog .datetime-group {
  grid-column: 2 / 3;
}

#eventDialog .datetime-fields {
  grid-template-columns: minmax(0, 174px) 112px;
  justify-content: start;
  max-width: 300px;
}

#eventDialog #unknownEndRow,
#eventDialog #visibilityUntilGroup,
#eventDialog #recurrenceSettings,
#eventDialog .event-detail-preview {
  grid-column: 1 / -1;
}

#eventDialog #recurrenceSettings {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(221, 228, 238, .9);
  background: var(--surface-muted);
}

#eventDialog .event-price-field {
  display: grid;
  align-content: start;
  gap: 6px;
}

#eventDialog .event-price-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

#eventDialog .event-price-input-wrap {
  position: relative;
  min-width: 0;
  flex: 1 1 142px;
}

#eventDialog .event-price-input-wrap input {
  width: 100%;
  padding-right: 38px;
}

#eventDialog .price-currency-suffix {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

#eventDialog .event-price-options {
  display: inline-flex;
  align-items: stretch;
  gap: 5px;
  flex: 0 0 auto;
}

#eventDialog .event-price-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
  color: #536278;
  font-size: 12px !important;
  font-weight: 650 !important;
  white-space: nowrap;
  cursor: pointer;
}

#eventDialog .event-price-option:has(input:checked) {
  border-color: rgba(79, 70, 229, .46);
  background: #f5f4ff;
  color: var(--outlo-brand-text);
}

#eventDialog .event-price-option input {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

#eventDialog .event-detail-preview {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid #e3e9f3;
  border-radius: 10px;
  background: #f8faff;
}

#eventDialog .event-detail-preview-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 138px;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 239, .92);
  border-radius: 9px;
  background: #fff;
}

#eventDialog .event-detail-preview-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--event-preview-accent, #536b82) 13%, #f8faff);
}

#eventDialog .event-detail-preview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#eventDialog .event-detail-preview-category-art {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--event-preview-accent, #536b82);
  color: #fff;
}

#eventDialog .event-detail-preview-category-art .category-art {
  transform: scale(1.25);
}

#eventDialog .event-detail-preview-content {
  min-width: 0;
  padding: 10px 12px 11px;
}

#eventDialog .event-detail-preview-badge {
  display: inline-flex;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

#eventDialog .event-detail-preview h4 {
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 14px;
  font-weight: 790;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#eventDialog .event-detail-preview-content > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 8px;
  color: #718096;
  font-size: 11.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#eventDialog .event-detail-preview dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

#eventDialog .event-detail-preview dl div {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

#eventDialog .event-detail-preview dt {
  color: #8793a7;
  font-size: 10.5px;
  font-weight: 700;
}

#eventDialog .event-detail-preview dd {
  min-width: 0;
  margin: 0;
  color: #45556e;
  font-size: 10.5px;
  font-weight: 560;
  line-height: 1.32;
}

#eventDialog .event-detail-preview .detail-date-stack,
#eventDialog .event-detail-preview .detail-place-stack {
  display: grid;
  gap: 1px;
}

#eventDialog .event-detail-preview .detail-date-stack strong,
#eventDialog .event-detail-preview .detail-place-name {
  color: #45556e;
  font-size: 10.5px;
  font-weight: 680;
}

#eventDialog .event-detail-preview .detail-date-stack span,
#eventDialog .event-detail-preview .detail-date-stack small,
#eventDialog .event-detail-preview .detail-place-address,
#eventDialog .event-detail-preview-empty {
  color: #8190a6;
  font-size: 10px;
  font-weight: 470;
  line-height: 1.3;
}

#eventDialog .address-fields {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(140px, .55fr) minmax(170px, .7fr);
  gap: 11px 14px;
}

#eventDialog .address-fields .location-search-button {
  min-height: 38px;
}

#eventDialog .location-picker {
  position: relative;
}

#eventDialog .map-address-search {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 550;
}

#eventDialog .map-address-search-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .97);
  color: #334155;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .14);
}

#eventDialog .map-address-search-toggle:hover,
#eventDialog .map-address-search-toggle[aria-expanded="true"] {
  border-color: rgba(79, 70, 229, .42);
  color: var(--outlo-brand-accent);
  box-shadow: 0 8px 20px rgba(79, 70, 229, .16);
}

#eventDialog .map-address-search-toggle svg,
#eventDialog .map-address-search-input-row > svg {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;

  stroke-linejoin: round;
}

#eventDialog .map-address-search-panel {
  width: min(310px, calc(100vw - 64px));
  padding: 4px 6px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
}

#eventDialog .map-address-search:has(.map-address-search-panel:not([hidden])) .map-address-search-toggle {
  display: none;
}

#eventDialog .map-address-search-input-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 7px;
  color: #64748b;
}

#eventDialog .map-address-search-input-row input {
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  font: inherit;
}

#eventDialog .map-address-search-input-row button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  font-size: 19px;
  line-height: 1;
}

#eventDialog .map-address-suggestions {
  position: static;
  width: 100%;
  max-height: 230px;
  margin-top: 6px;
  overflow-y: auto;
  border: 0;
  border-top: 1px solid rgba(226, 232, 240, .9);
  border-radius: 0 0 10px 10px;
  box-shadow: none;
}

#eventDialog .map-address-suggestions button {
  padding: 10px 8px;
  text-align: left;
}

#eventDialog .map-address-suggestions .map-address-suggestion {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .72);
  border-radius: 0;
  background: transparent;
}

#eventDialog .map-address-suggestions .map-address-suggestion:last-child {
  border-bottom: 0;
}

#eventDialog .map-address-suggestion:hover,
#eventDialog .map-address-suggestion:focus-visible {
  background: rgba(99, 102, 241, .06);
}

#eventDialog .map-address-suggestion-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(99, 102, 241, .08);
  color: var(--outlo-brand-accent);
}

#eventDialog .map-address-suggestion-icon svg {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;

  stroke-linejoin: round;
}

#eventDialog .map-address-suggestion-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

#eventDialog .map-address-suggestion-copy strong,
#eventDialog .map-address-suggestion-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#eventDialog .map-address-suggestion-copy strong {
  color: #172033;
  font-size: 12px;
}

#eventDialog .map-address-suggestion-copy > span {
  color: #64748b;
  font-size: 10.5px;
}

#eventDialog .map-address-suggestion-copy mark {
  border-radius: 3px;
  background: rgba(99, 102, 241, .11);
  color: inherit;
}

#eventDialog .map-address-suggestion-arrow {
  display: grid;
  place-items: center;
  color: #94a3b8;
  line-height: 0;
}

#eventDialog .map-address-suggestion-arrow svg {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

#eventDialog .form-location-marker-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
}

#eventDialog .form-location-marker {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50% 50% 50% 4px;
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 50%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 7px 15px rgba(49, 46, 129, .24), 0 0 0 2px rgba(99, 102, 241, .1);
  transform: rotate(-45deg);
}

#eventDialog .form-location-marker svg {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  opacity: .78;
  transform: rotate(45deg);

  stroke-linejoin: round;
}

#eventDialog .form-location-marker-wrap.leaflet-drag-target .form-location-marker {
  box-shadow: 0 10px 24px rgba(49, 46, 129, .4), 0 0 0 5px rgba(99, 102, 241, .2);
}

#eventDialog .form-location-marker-wrap.is-confirmed .form-location-marker {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  box-shadow: 0 7px 15px rgba(21, 128, 61, .24), 0 0 0 2px rgba(34, 197, 94, .1);
}

#eventLocationMap {
  height: 240px;
  min-height: 220px;
  border-radius: 10px;
}

#eventDialog .location-confirm-row {
  position: static;
  display: flex;
  width: 100%;
  max-width: none;
  padding: 9px 12px;
  border: 1px solid rgba(221, 228, 238, .92);
  border-radius: 12px;
  background: var(--surface-muted);
}

#eventDialog #coordinateHint {
  position: static;
  font-size: 12px;
}

#eventDialog #confirmLocationButton {
  min-height: 40px;
  padding-inline: 16px;
  border-color: var(--accent-line);
  background: #fff;
  color: var(--outlo-brand-text);
  box-shadow: none;
}

#eventDialog .form-section-images .form-section-grid,
#eventDialog .form-section-links .form-section-grid {
  grid-template-columns: 1fr;
}

#eventDialog .image-upload-field {
  min-height: 94px;
  padding: 16px;
  border: 1px dashed #cfd9e7;
  border-radius: 12px;
  background: #fbfcff;
}

#eventDialog .form-info {
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 12px;
}

#eventDialog .event-form-actions {
  padding: 10px 18px 12px;
  background: rgba(255, 255, 255, .94);
}

#eventDialog .event-form-actions button {
  min-height: 44px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  #eventDialog .event-form-body {
    grid-template-columns: 1fr;
    padding: 12px 14px 92px;
  }

  #eventDialog .form-section-images,
  #eventDialog .form-section-links {
    grid-column: 1 / -1;
  }

  #eventDialog .schedule-section {
    grid-template-columns: 1fr;
  }

  #eventDialog .term-type-group,
  #eventDialog .datetime-group {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  #eventDialog .term-type-options {
    grid-template-columns: 1fr;
  }

  #eventDialog .term-type-card {
    min-height: 76px;
  }

  #eventDialog .address-fields {
    grid-template-columns: 1fr;
  }

  #eventDialog .location-confirm-row {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 9px;
  }

  #eventDialog #coordinateHint {
    position: static;
  }
}

/* Compact public map filters. */
.sr-only {
  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;
}

.filter-panel {
  gap: 9px;
  padding: 14px;
}

.panel-hero {
  align-items: center;
  padding: 2px 2px 0;
}

.panel-hero h1 {
  font-size: 23px;
}

.panel-hero .panel-count-line {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.panel-section {
  gap: 7px;
  padding: 6px 2px 10px;
}

.search-panel-section {
  padding-top: 2px;
}

.search-field {
  position: relative;
  display: block;
  width: 100%;
}

.search-field input {
  min-height: 42px;
  padding-left: 42px;
  border-radius: 14px;
  background: #fff;
  font-weight: 650;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-icon svg {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.segmented button {
  min-height: 32px;
}

.date-range-fields {
  gap: 7px;
  padding: 7px;
}

.date-range-fields input {
  min-height: 36px;
}

.compact-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(221, 228, 238, .9);
  border-radius: 14px;
  background: var(--surface-muted);
}

.compact-select-row label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.compact-select-row select {
  width: 100%;
  min-height: 36px;
  padding: 8px 34px 8px 10px;
  border-radius: 10px;
  background-color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.distance-select-row {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

.distance-select-row select {
  min-height: 38px;
}

.distance-select-row select:disabled {
  color: var(--text-muted);
  background-color: var(--surface-muted);
  cursor: not-allowed;
}

.chip-grid {
  gap: 6px;
}

.chip-grid button {
  min-height: 30px;
  padding: 5px 9px;
}

.category-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

.category-toggle:hover {
  background: transparent;
  color: var(--outlo-brand-text-hover);
  box-shadow: none;
  transform: none;
}

.category-toggle-icon {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.origin-input-wrap {
  display: block;
  width: 100%;
}

.origin-input-wrap input {
  min-height: 39px;
  font-weight: 500;
}

.origin-input-wrap input::placeholder {
  font-weight: 500;
}

.filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.filter-actions:has(#clearOriginButton[hidden]) {
  grid-template-columns: 1fr;
}

.filter-actions button {
  flex: initial;
  min-height: 36px;
  border-radius: 12px;
}

.filter-actions #clearOriginButton {
  min-width: 86px;
}

#locationHint {
  min-height: 18px;
  color: var(--text-muted);
}

.proximity-section {
  gap: 8px;
}

.proximity-section .origin-search-field {
  display: grid;
  gap: 6px;
}

.proximity-section .compact-label {
  display: grid;
  gap: 5px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 820;
}

.proximity-section #locationHint {
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.35;
}

.event-card-modern {
  grid-template-columns: minmax(0, 1fr);
  min-height: 110px;
  align-content: start;
  align-items: start;
  justify-content: stretch;
  justify-items: stretch;
  gap: 7px;
  padding: 12px 13px;
  border-radius: 12px;
  border-color: rgba(221, 228, 238, .95);
  background: #fff;
  box-shadow: none;
  text-align: left;
}
.event-feed-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 104px;
  padding: 11px 12px 11px 18px;
  overflow: visible;
}
.event-feed-card::before {
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--category-color) 72%, #fff) 0%,
    var(--category-color) 46%,
    color-mix(in srgb, var(--category-color) 82%, #0f172a) 100%
  );
  box-shadow: 0 1px 6px color-mix(in srgb, var(--category-color) 26%, transparent);
  opacity: .94;
  content: "";
}
.event-feed-rail {
  align-self: stretch;
  width: 4px;
  min-height: 78px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--category-color) 72%, #fff) 0%,
    var(--category-color) 46%,
    color-mix(in srgb, var(--category-color) 82%, #0f172a) 100%
  );
  box-shadow: 0 1px 6px color-mix(in srgb, var(--category-color) 26%, transparent);
  opacity: .94;
}
.event-feed-content {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.event-feed-line {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.event-feed-line > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-feed-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: var(--text-soft);
}
.event-feed-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.filter-panel .event-list {
  gap: 9px;
}

.event-card-top {
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  align-items: start;
}

.filter-panel .event-card-modern > .event-card-top {
  justify-self: stretch;
  width: 100% !important;
}

.event-card-title {
  display: block;
  justify-self: start;
  min-width: 0;
  overflow: visible;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 860;
  line-height: 1.5;
  padding-block: 2px;
  text-align: left;
  white-space: normal;
  word-break: normal;
}

.event-card-top .event-card-title {
  line-height: 1.55 !important;
}

.event-card-modern .category-badge {
  --category-color: inherit;
  justify-self: end;
  align-self: start;
  width: fit-content;
  max-width: 138px;
  background: transparent;
  color: color-mix(in srgb, var(--category-color) 78%, #07111f);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-modern .category-badge .category-dot {
  background: var(--category-color);
}

.event-card-modern .category-dot {
  flex: 0 0 auto;
}

.event-card-modern .event-meta,
.event-card-modern .event-place,
.event-card-modern .event-distance {
  justify-self: start;
  min-width: 0;
  overflow: hidden;
  font-size: 12px !important;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-modern .event-meta {
  color: var(--text) !important;
  font-weight: 820;
}

.event-card-modern .event-place {
  color: var(--text-muted) !important;
  font-weight: 700;
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 0;
  padding: 9px 0 0;
  border-top: 1px solid rgba(221, 228, 238, .92);
  background: transparent;
}

.filter-summary span {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.summary-reset-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: none;
}

.summary-reset-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-dark);
  box-shadow: none;
  transform: none;
}

/* Desktop map panel refresh: compact product-like filter card. */
@media (min-width: 901px) {
  .map-page .filter-panel {
    width: min(344px, calc(100vw - 40px));
    max-height: calc(100dvh - 92px);
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(221, 228, 238, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .13);
  }

  .map-page .panel-hero {
    padding: 0 2px 10px;
  }

  .map-page .panel-hero h1 {
    font-size: 21px;
    line-height: 1.18;
  }

  .map-page .panel-hero .panel-count-line {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 760;
  }

  .map-page .panel-section {
    gap: 7px;
    padding: 10px 0;
    border-top: 1px solid rgba(221, 228, 238, .78);
  }

  .map-page .search-panel-section {
    padding-top: 0;
    border-top: 0;
  }

  .map-page .section-title {
    min-height: 0;
  }

  .map-page .section-title span,
  .map-page .distance-label {
    color: var(--text);
    font-size: 12px;
    font-weight: 820;
    line-height: 1.25;
  }

  .map-page .search-field input,
  .map-page .origin-input-wrap input,
  .map-page .distance-select-row select {
    min-height: 39px;
    border-radius: 12px;
    font-size: 13px;
  }

  .map-page .search-field input {
    padding-left: 38px;
    font-weight: 720;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  }

.map-page .search-icon {
    left: 12px;
    width: var(--outlo-icon-md, 18px);
    height: var(--outlo-icon-md, 18px);
  }

.map-page .search-icon svg {
    width: var(--outlo-icon-md, 18px);
    height: var(--outlo-icon-md, 18px);
  }

  .map-page .segmented {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 2px;
    border: 0;
    border-radius: 13px;
    background: #f1f5f9;
  }

  .map-page .segmented button {
    min-height: 31px;
    padding: 6px 8px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 820;
    box-shadow: none;
  }

  .map-page .segmented button.active,
  .map-page .segmented button[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 7px 16px rgba(79, 70, 229, .18);
  }

  .map-page .date-range-fields {
    gap: 7px;
    padding: 8px;
    border-radius: 12px;
    background: var(--surface-muted);
  }

  .map-page .date-range-fields label {
    font-size: 11px;
    font-weight: 720;
  }

  .map-page .date-range-fields input {
    min-height: 34px;
  }

  .map-page .chip-grid {
    gap: 6px;
  }

  .map-page .chip-grid button {
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 780;
    box-shadow: none;
  }

.map-page .category-toggle {
    justify-self: start;
    min-height: 30px;
    padding: 5px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--outlo-brand-text);
    font-size: 12px;
    font-weight: 830;
    text-align: left;
  }

.map-page .category-toggle:hover,
  .map-page .category-toggle:focus-visible {
    background: transparent;
    color: var(--outlo-brand-text-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .map-page .proximity-section {
    gap: 7px;
  }

  .map-page .origin-search-field {
    gap: 5px;
  }

  .map-page .origin-input-wrap {
    position: relative;
  }

  .map-page .origin-input-wrap::before {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 1;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transform: translateY(-50%);
    pointer-events: none;
    content: "";
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-4.7 7-11a7 7 0 1 0-14 0c0 6.3 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-4.7 7-11a7 7 0 1 0-14 0c0 6.3 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .map-page .origin-input-wrap input {
    padding-left: 36px;
  }

  .map-page .filter-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .map-page .filter-actions button {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
  }

  .map-page .filter-actions #clearOriginButton {
    min-width: 0;
    min-height: 32px;
  }

  .map-page .distance-select-row {
    gap: 5px;
  }

  .map-page .proximity-section #locationHint {
    margin: 0;
    min-height: 0;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .map-page .filter-summary {
    margin: 0;
    padding: 9px 0;
    border-top: 1px solid rgba(221, 228, 238, .78);
  }

  .map-page .filter-summary span {
    font-size: 12.5px;
    font-weight: 840;
  }

  .map-page .summary-reset-button {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 11.5px;
  }

  .map-page .organizer-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px 9px;
    margin: 0 0 9px;
    padding: 10px;
    border: 1px solid rgba(199, 210, 254, .8);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef2ff 100%);
    box-shadow: none;
  }

.map-page .organizer-card .organizer-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #fff;
    color: var(--outlo-brand-accent);
  }

  .map-page .organizer-card strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .map-page .organizer-card p {
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .map-page .organizer-card button {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .map-page .events-heading {
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 0 7px;
    border-top: 1px solid rgba(221, 228, 238, .78);
  }

  .map-page .events-heading h2 {
    font-size: 15px;
    line-height: 1.25;
  }

  .map-page #showAllEventsButton:not([hidden]) {
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
  }

  .map-page .filter-panel .event-list {
    gap: 8px;
    padding-bottom: 2px;
  }

  .map-page .event-card-modern {
    min-height: 0;
    border-color: rgba(221, 228, 238, .9);
    border-radius: 12px;
    background: #fff;
  }

  .map-page .event-feed-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 78px;
    padding: 10px 10px 10px 16px;
  }

  .map-page .event-feed-card.has-thumb {
    grid-template-columns: 50px minmax(0, 1fr);
    padding-left: 12px;
  }

  .map-page .event-feed-card::before {
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    opacity: .78;
  }

  .map-page .event-feed-card.has-thumb::before {
    display: none;
  }

  .map-page .event-feed-thumb {
    display: block;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-muted);
  }

  .map-page .event-feed-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .map-page .event-feed-content {
    gap: 4px;
  }

  .map-page .event-card-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
  }

  .map-page .event-card-title {
    display: -webkit-box;
    overflow: hidden;
    padding-block: 1px;
    font-size: 13px !important;
    line-height: 1.28 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .map-page .event-card-modern .category-badge {
    max-width: 104px;
    padding: 3px 7px;
    font-size: 10.5px;
    font-weight: 800;
  }

  .map-page .event-feed-line {
    gap: 6px;
  }

  .map-page .event-feed-icon,
  .map-page .event-feed-icon svg {
    width: 13px;
    height: 13px;
  }

  .map-page .event-card-modern .event-meta,
  .map-page .event-card-modern .event-place,
  .map-page .event-card-modern .event-distance {
    font-size: 11.5px !important;
    line-height: 1.25;
  }
}

/* Desktop map panel final polish against the product mockup. */
@media (min-width: 901px) {
  .map-page .filter-panel {
    width: min(392px, calc(100vw - 44px));
    padding: 22px;
    overflow-x: hidden;
  }

  .map-page .filter-panel * {
    min-width: 0;
  }

  .map-page .panel-hero {
    padding: 0 2px 14px;
  }

  .map-page .panel-hero h1 {
    font-size: 23px;
    line-height: 1.16;
  }

  .map-page .panel-hero .panel-count-line {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 560;
  }

  .map-page .panel-section {
    gap: 9px;
    padding: 13px 0;
  }

  .map-page .search-panel-section {
    padding-top: 0;
    padding-bottom: 14px;
  }

  .map-page .section-title span,
  .map-page .distance-label {
    font-size: 12.5px;
    font-weight: 840;
  }

  .map-page .search-field input,
  .map-page .origin-input-wrap input,
  .map-page .distance-select-row select {
    min-height: 43px;
    border-radius: 16px;
  }

  .map-page .search-field input {
    padding-left: 44px;
    padding-right: 16px;
    border-color: rgba(203, 213, 225, .86);
    font-size: 13.5px;
  }

  .map-page .search-icon {
    left: 15px;
    color: rgba(71, 85, 105, .78);
  }

  .map-page .segmented {
    gap: 3px;
    padding: 3px;
    border-radius: 20px;
  }

  .map-page .segmented button {
    min-height: 36px;
    border-radius: 17px;
    font-size: 12.5px;
  }

  .map-page .segmented button.active,
  .map-page .segmented button[aria-pressed="true"] {
    box-shadow: 0 9px 18px rgba(79, 70, 229, .22);
  }

  .map-page .chip-grid {
    gap: 8px;
  }

  .map-page .chip-grid button {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 12px;
  }

.map-page .category-toggle {
    justify-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px dashed rgba(79, 70, 229, .42);
    border-radius: 15px;
    background: rgba(248, 250, 252, .92);
    color: var(--outlo-brand-text);
    text-align: center;
  }

  .map-page .category-toggle:hover,
  .map-page .category-toggle:focus-visible {
    border-color: rgba(79, 70, 229, .7);
    background: var(--accent-soft);
    text-decoration: none;
  }

  .map-page .origin-input-wrap::before {
    left: 15px;
  }

  .map-page .origin-input-wrap input {
    padding-left: 43px;
  }

.map-page .filter-actions button {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
    border-color: rgba(199, 210, 254, .86);
    background: #fff;
    color: var(--outlo-brand-text);
    font-weight: 820;
  }

  .map-page .filter-actions #useLocation::before {
    position: static;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background: var(--accent);
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' d='M12 2v4M12 18v4M2 12h4M18 12h4'/%3E%3Ccircle cx='12' cy='12' r='5' fill='none' stroke='black' stroke-width='2.3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' d='M12 2v4M12 18v4M2 12h4M18 12h4'/%3E%3Ccircle cx='12' cy='12' r='5' fill='none' stroke='black' stroke-width='2.3'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .map-page .filter-actions #useLocation::after {
    display: none;
  }

  .map-page .filter-actions #clearOriginButton {
    padding-left: 12px;
  }

  .map-page .distance-select-row select {
    padding-inline: 14px 38px;
  }

  .map-page .filter-summary {
    justify-content: flex-end;
    padding: 6px 0;
  }

  .map-page .filter-summary #eventSummaryCount {
    display: none;
  }

  .map-page .summary-reset-button {
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid rgba(203, 213, 225, .8);
    background: #fff;
  }

  .map-page .organizer-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-color: rgba(165, 180, 252, .68);
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef2ff 72%, #f5f3ff 100%);
  }

  .map-page .organizer-card .organizer-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .13);
  }

  .map-page .organizer-card .organizer-icon svg {
    display: none;
  }

  .map-page .organizer-card .organizer-icon::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    content: "+";
  }

  .map-page .organizer-card strong {
    font-size: 14px;
  }

  .map-page .organizer-card p {
    margin-top: 4px;
    font-size: 12px;
  }

  .map-page .organizer-card button {
    justify-self: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
  }

  .map-page .events-heading {
    padding: 13px 0 9px;
  }

  .map-page .events-heading h2 {
    font-size: 16px;
  }

  .map-page #showAllEventsButton:not([hidden]) {
    min-height: 30px;
    padding: 5px 10px;
  }

  .map-page .filter-panel .event-list {
    gap: 10px;
  }

  .map-page .event-feed-card {
    min-height: 84px;
    padding: 11px 12px 11px 17px;
  }

  .map-page .event-feed-card.has-thumb {
    grid-template-columns: 56px minmax(0, 1fr);
    padding-left: 13px;
  }

  .map-page .event-feed-thumb {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }

  .map-page .event-feed-card::before {
    left: 8px;
    top: 12px;
    bottom: 12px;
  }

  .map-page .event-feed-content {
    gap: 5px;
  }

  .map-page .event-card-title {
    font-size: 13.5px !important;
    font-weight: 690;
    line-height: 1.3 !important;
  }

  .map-page .event-card-modern .category-badge {
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 760;
  }

  .map-page .event-card-modern .event-meta,
  .map-page .event-card-modern .event-place,
  .map-page .event-card-modern .event-distance {
    font-size: 12px !important;
    font-weight: 520;
    line-height: 1.3;
  }

  .map-page .event-card-modern .event-meta {
    color: var(--text-soft) !important;
  }

  .map-page .event-card-modern .event-place,
  .map-page .event-card-modern .event-distance {
    color: var(--text-muted) !important;
  }
}

/* Keep filter labels at their original size and color; only soften the weight. */
.map-page .filter-panel .section-title span {
  font-weight: 650;
}

@media (max-width: 900px) {
  .filter-panel {
    --filter-panel-gap: 9px;
    gap: var(--filter-panel-gap);
    padding: 8px 14px 14px;
  }

  .panel-hero h1 {
    font-size: 23px;
  }

  .compact-select-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .search-field input {
    min-height: 44px;
  }

  .segmented button,
  .filter-actions button {
    min-height: 40px;
  }

  .chip-grid button,
  .category-toggle {
    min-height: 36px;
  }

  .filter-actions {
    grid-template-columns: 1fr 104px;
  }

  .filter-summary {
    margin: 2px 0 0;
    padding: 9px 0 0;
  }
}

/* Event detail product-card layout. */
.map-page .detail-panel {
  --detail-panel-radius: 12px;
  border-radius: var(--detail-panel-radius);
  overflow: visible;
  width: min(430px, calc(100% - 36px));
}

.map-page .detail-content {
  gap: 16px;
  padding: 20px;
}

.map-page .detail-category-badge {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 680;
}

.map-page .detail-content h2 {
  color: var(--navy);
  font-size: clamp(25px, 2.8vw, 31px);
  line-height: 1.08;
  letter-spacing: -.015em;
}

.map-page .detail-panel:has(.detail-image-button:not([hidden])) .detail-category-badge,
.map-page .detail-panel:has(.detail-image-button:not([hidden])) .detail-content h2 {
  margin-right: 166px;
}

.map-page .detail-panel:has(.detail-image-button:not([hidden])) .detail-content h2 {
  min-height: 80px;
}

.map-page .detail-image-button:not([hidden]) {
  position: absolute;
  top: 78px;
  right: 20px;
  z-index: 1;
  width: 150px;
  height: 112px;
  margin: 0;
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}

.map-page .detail-content dl {
  border-color: rgba(148, 163, 184, .22);
  border-radius: 15px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.map-page .detail-content dl div {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 0;
  min-height: 60px;
  padding: 0;
  border-color: rgba(148, 163, 184, .18);
}

.map-page .detail-content dt,
.map-page .detail-content dd {
  display: flex;
  align-items: center;
}

.map-page .detail-content dt {
  gap: 10px;
  padding: 13px 16px;
  border-right: 1px dashed rgba(148, 163, 184, .28);
  color: var(--navy);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

.map-page .detail-content dd {
  padding: 12px 16px;
  color: #111827;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.detail-meta-icon {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #475569;
}

.map-page .detail-description {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.map-page .detail-primary-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.map-page .detail-primary-actions:has(#externalButton[hidden]) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.map-page .detail-primary-actions > * {
  min-height: 50px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 760 !important;
}

.map-page .detail-primary-actions #externalButton,
.map-page .detail-primary-actions #shareButton {
  --btn-bg: #fff;
  --btn-border: rgba(148, 163, 184, .26);
  --btn-color: var(--navy);
  --btn-hover-bg: #f8fafc;
  --btn-hover-border: rgba(47, 10, 254, .22);
}

.map-page .detail-secondary-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  padding-top: 0 !important;
}

.map-page .detail-secondary-actions > * {
  min-height: 46px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

.map-page .detail-secondary-actions #organizerProfileButton,
.map-page .detail-secondary-actions #musicButton {
  grid-column: 1 / -1;
}

.map-page .detail-secondary-actions #saveEventButton {
  --btn-bg: #fff;
  --btn-border: rgba(148, 163, 184, .26);
  --btn-color: #475569;
  --btn-hover-bg: rgba(255, 241, 242, .82);
  --btn-hover-border: rgba(244, 63, 94, .24);
  box-shadow: none;
}

.map-page .detail-secondary-actions #saveEventButton.saved {
  --btn-bg: var(--outlo-brand-soft);
  --btn-border: var(--outlo-brand-border);
  --btn-color: var(--outlo-brand-text);
}

.map-page .detail-secondary-actions #favoriteOrganizerButton {
  --btn-bg: #fff;
  --btn-border: rgba(148, 163, 184, .26);
  --btn-color: #475569;
  --btn-hover-bg: rgba(239, 246, 255, .92);
  --btn-hover-border: rgba(37, 99, 235, .24);
}

.map-page .detail-secondary-actions #favoriteOrganizerButton.saved {
  --btn-bg: #eff6ff;
  --btn-border: rgba(37, 99, 235, .26);
  --btn-color: #1d4ed8;
}

.map-page .detail-management-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 14px;
  background: rgba(248, 250, 252, .62);
}

.map-page .detail-management-actions > * {
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
}

.map-page .detail-management-actions:has(#editEventButton[hidden]) {
  grid-template-columns: 1fr;
}

/* The current-event list intentionally never grows beyond two title lines. */
.map-page .filter-panel .event-card-title {
  display: -webkit-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

/* Keep the opened-event title on the full content width, including with a poster. */
.map-page .detail-panel .detail-content h2 {
  margin-right: 0;
  min-height: 0;
}

.map-page .detail-panel:has(.detail-image-button:not([hidden])) .detail-content h2 {
  margin-right: 0;
  min-height: 0;
}

/* Event cards stay compact: the title may use two lines, never a third one. */
.map-page .filter-panel .event-card-title {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-page .detail-management-actions #editEventButton[hidden] {
  display: none;
}

/* Reporting is a quiet public utility, separate from the organizer's management tools. */
.map-page .detail-report-action {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin-top: -2px;
}

.map-page #reportEventButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 1px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  box-shadow: none;
  font-size: 11.5px;
  font-weight: 600;
}

.map-page #reportEventButton .button-icon {
  width: var(--outlo-icon-xs, 14px);
  height: var(--outlo-icon-xs, 14px);
  stroke-width: var(--outlo-icon-stroke, 1.8);
}

.map-page #reportEventButton:hover,
.map-page #reportEventButton:focus-visible {
  background: rgba(255, 247, 237, .76);
  color: #a16207;
  box-shadow: none;
  transform: none;
}

.map-page .detail-management-actions:has(#editEventButton[hidden]):has(#promoteEventButton[hidden]) {
  display: none;
}

#reportDialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  background: #fdfdff;
}

#reportDialog .dialog-head {
  align-items: flex-start;
  padding: 24px 26px 6px;
}

#reportDialog .dialog-head > div {
  display: grid;
  gap: 5px;
}

#reportDialog .dialog-head h2 {
  font-size: 21px;
}

#reportDialog .dialog-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

#reportDialog .form-grid {
  gap: var(--outlo-form-field-gap, 16px);
  padding: 20px 26px 24px;
}

.report-illegal-link {
  display: block;
  margin: 0 26px 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

#detailPanel .report-illegal-link {
  margin: 12px 0 0;
}

.report-illegal-link a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: #bdc5d0;
  text-underline-offset: 3px;
}

.report-illegal-link a:hover {
  color: var(--outlo-brand-text-hover, #4338ca);
  text-decoration-color: currentColor;
}

.report-illegal-link a:focus-visible {
  outline: 2px solid var(--outlo-brand-text, #4f46e5);
  outline-offset: 3px;
  border-radius: 2px;
}

#reportAccessDialog .report-illegal-link--guest {
  margin: 0 24px 20px;
  padding: 0;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 560px) {
  #reportAccessDialog .report-illegal-link--guest {
    padding-inline: 0 !important;
    margin-inline: 18px !important;
  }
  #reportAccessDialog .report-access-copy {
    margin-inline: 18px !important;
  }
}

#reportDialog .form-grid > label {
  gap: var(--outlo-field-label-gap, 6px);
  color: #334155;
  font-size: 13px;
  font-weight: 680;
}

#reportDialog textarea {
  min-height: 136px;
  resize: vertical;
}

#reportDialog .dialog-actions {
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 16px 26px 20px;
  border-top: 1px solid rgba(148, 163, 184, .17);
  background: #fafbff;
}

.report-kind-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-kind-switch legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.report-kind-switch label {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.report-kind-switch input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.report-kind-switch label span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.report-kind-switch input:checked + span {
  border-color: rgba(99, 102, 241, .32);
  background: #f3f2ff;
  color: var(--outlo-brand-text);
}

.report-kind-switch input:focus-visible + span {
  outline: 3px solid rgba(99, 102, 241, .22);
  outline-offset: 2px;
}

#reportAccessDialog.report-access-dialog {
  width: min(460px, calc(100vw - 28px));
  background: #fdfdff;
}

.report-access-dialog .confirm-dialog {
  min-width: 0;
  gap: 0;
  padding: 0;
}

.report-access-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 24px 24px 8px;
}

.report-access-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: 11px;
  background: #fffaf0;
  color: #a16207;
}

.report-access-icon svg {
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: var(--outlo-icon-stroke, 1.8);
}

.report-access-head h2 {
  margin: 1px 0 0;
  color: #0f172a;
  font-size: 20px;
}

.report-access-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
}

#reportAccessDialog .report-access-copy {
  margin: 12px 24px 20px;
  padding: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.report-access-actions {
  display: grid;
  gap: 13px;
  padding: 0 24px 24px;
}

.report-access-login {
  width: 100%;
  min-height: 44px;
}

.report-access-actions > p {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  text-align: center;
}

.report-access-actions a:not(.report-access-login) {
  color: var(--outlo-brand-text);
  font-weight: 700;
  text-decoration: none;
}

.report-access-actions a:not(.report-access-login):hover,
.report-access-actions a:not(.report-access-login):focus-visible {
  color: var(--outlo-brand-text-hover);
  text-decoration: underline;
}

@media (max-width: 440px) {
  .report-kind-switch {
    grid-template-columns: 1fr;
  }

  #reportDialog .dialog-head,
  #reportDialog .form-grid,
  #reportDialog .dialog-actions {
    padding-inline: 18px;
  }

  .report-access-head,
  .report-access-actions {
    padding-inline: 18px;
  }

  #reportAccessDialog .report-access-copy,
  #reportAccessDialog .report-illegal-link--guest {
    margin-inline: 18px;
  }

  #reportDialog .dialog-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .report-illegal-link {
    margin-inline: 18px;
    padding: 0;
  }
}

.map-page .detail-report-menu,
.map-page .detail-report-menu > button {
  width: 100%;
}

@media (max-width: 520px) {
  .map-page .detail-content {
    padding: 17px;
  }

  .map-page .detail-image-button:not([hidden]) {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% - 34px);
    height: 190px;
    margin: 17px 17px 0;
  }

  .map-page .detail-panel:has(.detail-image-button:not([hidden])) .detail-category-badge,
  .map-page .detail-panel:has(.detail-image-button:not([hidden])) .detail-content h2 {
    margin-right: 0;
  }

  .map-page .detail-panel:has(.detail-image-button:not([hidden])) .detail-content h2 {
    min-height: 0;
  }

  .map-page .detail-content dl div {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .map-page .detail-content dt {
    padding: 12px 13px;
  }

  .map-page .detail-content dd {
    padding: 12px 13px;
  }

  .map-page .detail-primary-actions {
    gap: 7px !important;
  }

  .map-page .detail-primary-actions > *,
  .map-page .detail-secondary-actions > *,
  .map-page .detail-management-actions > * {
    min-height: 44px !important;
    font-size: 12px !important;
  }
}

/* External information is a deliberate second step after directions. */
.map-page .detail-information-action {
  display: block;
}

.map-page .detail-information-action:has(#externalButton[hidden]) {
  display: none;
}

.map-page .detail-information-action #externalButton {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(79, 70, 229, .30);
  border-radius: 12px;
  background: #f8f8ff;
  color: var(--outlo-brand-text);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.map-page .detail-information-action #externalButton:hover {
  border-color: rgba(79, 70, 229, .46);
  background: #efefff;
  transform: translateY(-1px);
}

.map-page .detail-information-action #externalButton:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .32);
  outline-offset: 2px;
}

.map-page .detail-secondary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.map-page .detail-secondary-actions #shareButton,
.map-page .detail-secondary-actions #saveEventButton {
  grid-column: auto !important;
}

@media (max-width: 900px) {
  .map-layout.detail-open::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 810;
    background: rgba(15, 23, 42, .48);
    pointer-events: none;
  }

  .map-layout.detail-open .leaflet-top,
  .map-layout.detail-open .leaflet-bottom {
    z-index: 700;
  }

  .map-layout.detail-open .detail-panel {
    z-index: 860;
  }
}

[hidden] {
  display: none !important;
}

/* Keep the admin embedded event editor wrapper invisible; only the editor itself should be seen. */
#eventEditorFrameDialog.event-editor-frame-dialog {
  width: min(920px, calc(100vw - 24px)) !important;
  height: min(860px, calc(100vh - 24px)) !important;
  max-height: calc(100vh - 24px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  outline: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

#eventEditorFrameDialog.event-editor-frame-dialog::backdrop {
  background: rgba(15, 23, 42, .46) !important;
}

#eventEditorFrameDialog #eventEditorFrame {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.embedded-event-editor #eventDialog {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.embedded-event-editor #eventDialog::backdrop {
  background: transparent !important;
}

body.embedded-event-editor #eventDialog form {
  width: 100% !important;
  height: 100vh !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-md) !important;
}

/* Event detail hierarchy polish. */
.detail-content dl {
  border-radius: 12px;
}

.detail-content dl div {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 11px;
}

.detail-content dt {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .02em;
}

.detail-content dd {
  font-size: 13px;
  font-weight: 780;
  line-height: 1.32;
}

.detail-primary-actions {
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.detail-primary-actions > * {
  min-height: 42px !important;
}

.detail-primary-actions .heart-button {
  --btn-bg: #fff;
  --btn-border: rgba(244, 63, 94, .28);
  --btn-color: #BE123C;
  --btn-hover-bg: rgba(255, 241, 242, .9);
  --btn-hover-border: rgba(244, 63, 94, .42);
}

.detail-secondary-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px !important;
  padding-top: 0 !important;
}

.detail-secondary-actions > * {
  justify-content: center;
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.detail-secondary-actions .follow-organizer-button {
  --btn-bg: #fff;
  --btn-border: var(--outlo-brand-border);
  --btn-color: var(--outlo-brand-text);
  --btn-hover-bg: var(--outlo-brand-soft);
  --btn-hover-border: var(--outlo-brand-border-hover);
}

.detail-secondary-actions .follow-organizer-button.saved {
  --btn-bg: var(--accent-soft);
  --btn-border: var(--accent-line);
  --btn-color: var(--accent);
}

.detail-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 1px;
  padding-top: 10px;
  border-top: 1px solid rgba(221, 228, 238, .92);
}

.detail-management-actions > * {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 740;
  box-shadow: none;
}

.detail-management-actions #editEventButton {
  --btn-bg: #fff;
  --btn-border: rgba(245, 158, 11, .24);
  --btn-color: #A16207;
}

.detail-management-actions #reportMenuButton {
  --btn-bg: #fff;
  --btn-border: rgba(148, 163, 184, .34);
  --btn-color: var(--text-muted);
  --btn-hover-bg: rgba(255, 247, 237, .82);
  --btn-hover-border: rgba(217, 119, 6, .28);
}

.detail-management-actions #reportMenuButton:hover,
.detail-management-actions #reportMenuButton[aria-expanded="true"] {
  color: #9A5A08;
}

#closeDetail {
  min-width: 34px;
  width: 34px;
  height: 34px;
  border-color: rgba(148, 163, 184, .28);
  background: rgba(255, 255, 255, .88);
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 500;
}

#closeDetail:hover,
#closeDetail:focus-visible {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}

.event-feed-card.is-selected {
  border-color: color-mix(in srgb, var(--category-color) 48%, var(--accent-line));
  background: color-mix(in srgb, var(--category-color) 8%, #fff);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--category-color) 13%, transparent);
}

.event-feed-card.is-selected::before {
  left: 7px;
  width: 5px;
  opacity: 1;
}

.event-feed-card.is-selected .event-card-title {
  color: var(--text) !important;
}

.event-feed-card.is-linked-hover {
  border-color: color-mix(in srgb, var(--category-color) 36%, var(--accent-line));
  background: color-mix(in srgb, var(--category-color) 7%, #fff);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--category-color) 12%, transparent);
}

.detail-image-button::after {
  background: rgba(15, 23, 42, .68);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .22);
}

@media (max-width: 440px) {
  .detail-secondary-actions {
    grid-template-columns: 1fr;
  }
}

/* Paid promotion is deliberately a quiet enhancement of the existing category marker. */
.category-pin-wrap.is-promoted-featured {
  --promotion-pin-scale: 1.09;
}

.category-pin-wrap.is-promoted-top {
  --promotion-pin-scale: 1.12;
}

.category-pin-wrap.is-promoted .category-pin {
  transform: rotate(-45deg) scale(var(--promotion-pin-scale));
}

.category-pin-wrap.is-promoted {
  isolation: isolate;
}

.category-pin-wrap.is-promoted .category-pin {
  z-index: 2;
}

.category-pin-promotion-ring {
  position: absolute;
  left: 11.25px;
  top: 20px;
  z-index: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pin-color) 48%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.category-pin-wrap.is-promoted-top .category-pin-promotion-ring {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 255, 255, .96);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .42), 0 4px 10px rgba(79, 70, 229, .18);
  animation: outlo-top-promotion-pulse 5s ease-in-out infinite;
}

.category-pin-wrap.is-promoted-featured::after,
.category-pin-wrap.is-promoted-top::after {
  position: absolute;
  left: 50%;
  top: -10px;
  z-index: 3;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .34);
  transform: translateX(-50%);
  pointer-events: none;
}

.category-pin-wrap.is-promoted-featured::after {
  content: "✦";
  background: color-mix(in srgb, var(--pin-color) 70%, #4338ca);
}

.category-pin-wrap.is-promoted-top::after {
  content: "★";
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 2px 7px rgba(79, 70, 229, .3);
  font-size: 10px;
}

.category-pin-wrap.is-promoted.is-hovered .category-pin {
  transform: rotate(-45deg) scale(calc(var(--promotion-pin-scale) * 1.06));
  box-shadow: 0 14px 30px rgba(6, 26, 51, .34), 0 0 0 4px color-mix(in srgb, var(--pin-color) 18%, transparent);
}

.category-pin-wrap.is-promoted.is-selected .category-pin {
  transform: rotate(-45deg) scale(calc(var(--promotion-pin-scale) * 1.04));
  box-shadow: 0 11px 25px rgba(15, 23, 42, .25), 0 0 0 4px color-mix(in srgb, var(--pin-color) 18%, transparent);
}

@keyframes outlo-top-promotion-pulse {
  0%, 80%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .92; }
  90% { transform: translate(-50%, -50%) scale(1.09); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .category-pin-wrap.is-promoted-top .category-pin-promotion-ring {
    animation: none;
  }
}

.map-page .filter-panel .event-feed-card.is-promoted .event-card-top {
  padding-right: 140px;
}

.event-promotion-label {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 6px;
  border: 1px solid rgba(79, 70, 229, .14);
  border-radius: 999px;
  background: rgba(238, 242, 255, .8);
  color: #5b52ae;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.event-feed-card.is-promoted-top .event-promotion-label {
  border-color: rgba(124, 58, 237, .2);
  color: #5b21b6;
}

.detail-promotion-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: 999px;
  background: rgba(238, 242, 255, .78);
  color: #5b52ae;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.detail-promotion-badge.is-top {
  border-color: rgba(124, 58, 237, .2);
  color: #5b21b6;
}

#promotionConfirmDialog,
#organizerPromotionConfirmDialog {
  width: min(540px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .20);
}

#promotionConfirmDialog::backdrop,
#organizerPromotionConfirmDialog::backdrop {
  background: rgba(15, 23, 42, .36);
  backdrop-filter: blur(2px);
}

.promotion-confirm-dialog {
  width: 100%;
  min-width: 0;
  gap: 0;
  padding: 0;
  background: #fff;
}

.promotion-confirm-dialog .dialog-head {
  align-items: flex-start;
  padding: 15px 16px 8px;
}

.promotion-confirm-dialog .dialog-head h2 {
  font-size: 17px;
  line-height: 1.2;
}

.promotion-confirm-dialog .dialog-head .icon-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-color: rgba(203, 213, 225, .72);
  border-radius: 9px;
  color: #334155;
  font-size: 20px;
}

.promotion-confirm-dialog .promotion-confirm-content {
  gap: 8px;
  padding: 0 16px 8px;
}

/* Promotion visual system: premium enough to distinguish, quiet enough to stay part of Outlo. */
.map-page .filter-panel .event-feed-card.is-promoted {
  border-color: rgba(99, 102, 241, .24);
  background: linear-gradient(135deg, rgba(238, 242, 255, .58), #fff 48%);
}

.map-page .filter-panel .event-feed-card.is-promoted-top {
  border-color: rgba(192, 132, 252, .38);
  background: linear-gradient(135deg, rgba(250, 245, 255, .94), rgba(238, 242, 255, .5) 48%, #fff);
}

.event-promotion-label {
  top: 7px;
  right: 7px;
  min-height: 19px;
  padding: 3px 7px;
  border-color: rgba(99, 102, 241, .2);
  background: #eef2ff;
  color: #4f46e5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .01em;
}

.event-promotion-label.is-top,
.event-feed-card.is-promoted-top .event-promotion-label {
  border-color: rgba(217, 70, 239, .22);
  background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
  color: #a21caf;
}

.event-marker-tooltip-promotion {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid rgba(99, 102, 241, .18);
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.event-marker-tooltip-promotion.is-top {
  border-color: rgba(217, 70, 239, .2);
  background: #fdf4ff;
  color: #a21caf;
}

.detail-promotion-badge {
  min-height: 24px;
  padding: 4px 9px;
  border-color: rgba(99, 102, 241, .2);
  background: #eef2ff;
  color: #4f46e5;
  font-size: 10px;
  font-weight: 700;
}

.detail-promotion-badge.is-top {
  border-color: rgba(217, 70, 239, .22);
  background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
  color: #a21caf;
}

.promotion-confirm-content > strong {
  display: none;
}

.promotion-confirm-content > strong + span {
  display: none;
}

.promotion-confirm-content > p {
  margin: 4px 0 0;
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.45;
}

.promotion-offer-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  border: 0;
}

.promotion-offer-options legend {
  width: 100%;
  margin-bottom: 2px;
  padding: 0;
  color: var(--navy, #172554);
  font-size: 13px;
}

.promotion-offer-card {
  grid-template-columns: 15px minmax(0, 1fr) auto;
  min-height: 66px;
  gap: 7px;
  padding: 9px 10px;
  border-color: rgba(148, 163, 184, .3);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}

.promotion-offer-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.promotion-offer-card::before {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 1.5px solid #a7b2c4;
  border-radius: 50%;
  content: "";
}

.promotion-offer-card:has(input:checked)::before {
  border-color: #4f46e5;
  box-shadow: inset 0 0 0 3px #fff;
  background: #4f46e5;
}

.promotion-offer-card-copy { gap: 2px; }
.promotion-offer-card strong { font-size: 13px; }
.promotion-offer-card small { font-size: 10px; line-height: 1.3; }
.promotion-offer-price { align-self: start; padding: 1px 0 0; color: var(--outlo-brand-text); font-size: 12px; }
.promotion-offer-card em { grid-column: 2 / -1; align-self: end; width: fit-content; margin-top: 1px; padding: 2px 5px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-size: 8px; }
.promotion-offer-card:hover { border-color: rgba(79, 70, 229, .48); background: #fafbff; }
.promotion-offer-card:has(input:checked) { border-color: rgba(79, 70, 229, .66); background: #f7f7ff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .08); }
.promotion-offer-card.top { border-color: #e4c66e; background: linear-gradient(145deg, #fff, #fffaf0); }
.promotion-offer-card.top .promotion-offer-price { color: #9a640f; }
.promotion-offer-card.top:has(input:checked) { border-color: #b7790e; background: #fff5da; box-shadow: 0 0 0 3px rgba(183, 121, 14, .08); }
.promotion-offer-card.custom { grid-column: 1 / -1; grid-template-columns: 15px minmax(0, 1fr) 20px; min-height: 48px; align-items: center; }
.promotion-custom-icon { width: var(--outlo-icon-sm, 16px); height: var(--outlo-icon-sm, 16px); fill: none; stroke: #64748b; stroke-width: var(--outlo-icon-stroke, 1.8); stroke-linecap: round; stroke-linejoin: round; }

.promotion-credit-sources {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
}

.promotion-credit-sources legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.promotion-credit-source { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; min-height: 78px; padding: 10px 12px; border-color: rgba(199, 210, 254, .46); border-radius: 10px; background: linear-gradient(145deg, #fafaff, #f5f6ff); }
.promotion-credit-source input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.promotion-credit-source-copy { display: grid; gap: 1px; }
.promotion-credit-source strong { color: var(--navy, #172554); font-size: 13px; }
.promotion-credit-source b { color: var(--outlo-brand-text); font-size: 18px; line-height: 1.2; }
.promotion-credit-source small { color: #64748b; font-size: 10px; line-height: 1.25; }
.promotion-credit-source-icon { display: grid; place-items: center; color: var(--outlo-brand-accent); }
.promotion-credit-source-icon svg { width: var(--outlo-icon-xl, 24px); height: var(--outlo-icon-xl, 24px); fill: none; stroke: currentColor; stroke-width: var(--outlo-icon-stroke, 1.8); stroke-linecap: round; stroke-linejoin: round; }
.promotion-credit-source:has(input:checked) { border-color: rgba(79, 70, 229, .66); background: #f5f6ff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .08); }
.promotion-campaign-summary { border-color: rgba(79, 70, 229, .18); background: #f7f7ff; }
.promotion-campaign-summary strong { color: #3730a3; }
.promotion-campaign-summary span, .promotion-campaign-summary small { color: #5f6284; }

.promotion-confirm-dialog .promotion-confirm-notice {
  margin: 0;
  padding: 2px 0 0;
  font-size: 11px;
}

.promotion-confirm-dialog .dialog-actions {
  gap: 7px;
  padding: 8px 16px 14px;
  border-top: 1px solid rgba(226, 232, 240, .72);
}

.promotion-confirm-dialog .dialog-actions button {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12px;
}

.promotion-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.promotion-kpi {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f8faff);
}

.promotion-kpi span { color: var(--muted, #64748b); font-size: 11px; }
.promotion-kpi strong { align-self: end; color: #312e81; font-size: 24px; line-height: 1; }
.promotion-campaign-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 9px; }
.promotion-campaign-section-head h3 { margin: 0; color: var(--navy, #172554); font-size: 14px; }
.promotion-campaign-section-head span { color: var(--muted, #64748b); font-size: 11px; }

.organizer-promotion-panel { padding: 20px; }
.organizer-promotion-panel .organizer-section-head { margin-bottom: 18px; }
.promotion-campaign { min-height: 88px; padding: 13px 14px; border-color: rgba(148, 163, 184, .2); background: #fff; }
.promotion-campaign:hover { border-color: rgba(99, 102, 241, .24); background: #fafbff; }
.promotion-campaign-metrics { grid-template-columns: repeat(2, minmax(68px, auto)); gap: 12px; }
.promotion-campaign-metrics span { padding: 6px 0; }
.promotion-campaign-metrics b { color: var(--outlo-brand-text); font-size: 16px; }

.promotion-pricing-manager .admin-section-head { align-items: flex-start; }
.promotion-pricing-grid { gap: 14px; }
.promotion-pricing-tier { padding: 17px; border-color: rgba(148, 163, 184, .24); border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .02); }
.promotion-pricing-tier.top { border-color: #e4c66e; background: linear-gradient(145deg, #fff, #fffaf0); }
.promotion-pricing-tier-head h3 { color: var(--navy, #172554); font-size: 16px; }
.promotion-pricing-tier-head span { font-size: 12px; line-height: 1.45; }
.promotion-rule-summary { margin: 0; padding: 9px 10px; border-radius: 8px; background: #f8fafc; color: var(--muted, #64748b); font-size: 12px; }
.promotion-offer-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(148, 163, 184, .16); }
.promotion-offer-summary strong { display: block; color: var(--navy, #172554); font-size: 13px; }
.promotion-offer-summary span { color: var(--muted, #64748b); font-size: 11px; }
.promotion-offer-summary b { color: var(--outlo-brand-text); font-size: 13px; white-space: nowrap; }
.promotion-offer-summary small { justify-self: end; color: #15803d; font-size: 10px; }
.promotion-offer-summary.is-inactive { opacity: .58; }
.promotion-offer-summary.is-inactive small { color: #64748b; }
.promotion-pricing-grid.is-editing .promotion-pricing-tier { background: #fff; }
.promotion-cancel-button { white-space: nowrap; }
#promotionCancelDialog { width: min(calc(100% - 28px), 480px); overflow: hidden; border: 0; border-radius: 12px; padding: 0; box-shadow: 0 22px 52px rgba(15, 23, 42, .2); }
#promotionCancelDialog::backdrop { background: rgba(15, 23, 42, .38); }
.promotion-cancel-dialog { display: grid; gap: 15px; width: 100%; padding: 20px; background: #fff; }
.promotion-cancel-dialog .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid rgba(148, 163, 184, .2); }
.promotion-cancel-dialog .dialog-head h2 { margin: 0; color: var(--navy, #172554); font-size: 18px; }
.promotion-cancel-dialog .dialog-head p { margin: 4px 0 0; color: var(--muted, #64748b); font-size: 12px; font-weight: 400; }
.promotion-cancel-dialog > p { margin: 0; padding: 11px 12px; border: 1px solid rgba(217, 119, 6, .2); border-radius: 9px; background: #fffbeb; color: #713f12; font-size: 13px; line-height: 1.5; }
.promotion-cancel-dialog label { display: grid; gap: 6px; color: var(--muted, #64748b); font-size: 12px; }
.promotion-cancel-dialog textarea { min-height: 76px; padding: 10px 11px; border: 1px solid rgba(148, 163, 184, .4); border-radius: 8px; resize: vertical; font: inherit; }
.promotion-cancel-dialog textarea:focus { outline: 0; border-color: rgba(79, 70, 229, .7); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.promotion-cancel-dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 1px; }
@media (max-width: 520px) { .promotion-cancel-dialog { padding: 16px; } .promotion-cancel-dialog .dialog-actions { display: grid; grid-template-columns: 1fr; } .promotion-cancel-dialog .dialog-actions button { width: 100%; } }

@media (max-width: 700px) {
  .promotion-offer-options,
  .promotion-credit-sources { grid-template-columns: 1fr; }
  .promotion-offer-card { min-height: 86px; }
  .promotion-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .promotion-kpi { min-height: 78px; padding: 11px; }
  .promotion-kpi strong { font-size: 21px; }
  .organizer-promotion-panel { padding: 14px; }
  .promotion-campaign-section-head { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 540px) {
  #promotionConfirmDialog,
  #organizerPromotionConfirmDialog {
    width: min(100% - 20px, 430px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }

  .promotion-confirm-dialog .dialog-head { padding: 13px 14px 7px; }
  .promotion-confirm-dialog .promotion-confirm-content { padding: 0 14px 7px; }
  .promotion-offer-options { grid-template-columns: 1fr; }
  .promotion-offer-card { min-height: 58px; }
  .promotion-credit-sources { grid-template-columns: 1fr; }
  .promotion-credit-source { min-height: 68px; }
  .promotion-confirm-dialog .dialog-actions { padding: 8px 14px 12px; }
}

/* Trust and promotion remain quiet operational states rather than paid-plan decoration. */
.organizer-trust-card,
.organizer-promotion-card {
  border-color: var(--border, #dde4ee);
  background: var(--surface-muted, #f8fafc);
}

.organizer-trust-card.is-verified {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.organizer-trust-card.is-standard {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.organizer-promotion-card strong b {
  color: var(--outlo-brand-text);
  font-size: 1.15em;
}

.organizer-trust-card .organizer-check-row,
.organizer-promotion-card .organizer-check-row {
  gap: 14px;
}

/* Campaign management keeps promotion operational and readable, without mimicking ad creative. */
.promotion-credit-balance,
.promotion-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  border-radius: 999px;
  white-space: nowrap;
}

.promotion-credit-balance {
  padding: 6px 10px;
  border: 1px solid rgba(79, 70, 229, .18);
  background: rgba(238, 242, 255, .84);
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 700;
}

.promotion-campaign-groups,
.promotion-campaign-list,
.promotion-transactions,
.promotion-transaction-list {
  display: grid;
  gap: 10px;
}

.promotion-campaign-group {
  display: grid;
  gap: 8px;
}

.promotion-campaign-group h3,
.promotion-transactions-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--navy, #172554);
  font-size: 13px;
}

.promotion-campaign-group h3 span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--outlo-brand-text);
  font-size: 11px;
}

.promotion-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 13px;
  background: #fff;
}

.promotion-campaign-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.promotion-campaign-main > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.promotion-campaign-main strong {
  overflow: hidden;
  color: var(--navy, #172554);
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-campaign-main > span,
.promotion-transaction span,
.promotion-transaction small,
.promotion-transactions-head > span {
  color: var(--muted, #64748b);
  font-size: 12px;
}

.promotion-tier {
  padding: 4px 8px;
  border: 1px solid rgba(79, 70, 229, .16);
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.promotion-tier.top {
  border-color: rgba(124, 58, 237, .2);
  background: #f5f3ff;
  color: #6d28d9;
}

.promotion-campaign-metrics {
  display: grid;
  gap: 3px;
  min-width: 92px;
  color: var(--muted, #64748b);
  font-size: 11px;
  text-align: right;
}

.promotion-campaign-metrics b {
  color: var(--navy, #172554);
  font-size: 13px;
}

.promotion-transactions {
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, .86);
}

.promotion-transactions-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.promotion-transaction {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
}

.promotion-transaction + .promotion-transaction {
  border-top: 1px solid rgba(226, 232, 240, .74);
}

.promotion-transaction strong {
  font-size: 13px;
  text-align: center;
}

.promotion-transaction strong.is-credit { color: #15803d; }
.promotion-transaction strong.is-debit { color: #4f46e5; }
.promotion-admin-toolbar { grid-template-columns: minmax(240px, 1.7fr) repeat(2, minmax(150px, 1fr)); }

/* Organizer promotion dashboard */
.organizer-promotion-panel {
  padding: 22px;
  border-color: rgba(226, 232, 240, .9);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .035);
}

.organizer-promotion-panel .organizer-section-head {
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.promotion-panel-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #6366f1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.organizer-promotion-panel .organizer-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.organizer-promotion-panel .organizer-section-head p {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
}

.promotion-panel-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.promotion-panel-actions .promotion-credit-balance { display: none; }
.promotion-panel-actions .primary {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 9px;
  box-shadow: 0 7px 16px rgba(79, 70, 229, .16);
}

.organizer-promotion-panel .promotion-campaign-groups { gap: 18px; }
.organizer-promotion-panel .promotion-kpi-grid { gap: 12px; margin: 0; }
.organizer-promotion-panel .promotion-kpi {
  position: relative;
  align-content: center;
  min-height: 96px;
  padding: 14px 48px 13px 15px;
  border-color: rgba(226, 232, 240, .92);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
}

.organizer-promotion-panel .promotion-kpi span { color: #64748b; font-size: 11px; font-weight: 600; }
.organizer-promotion-panel .promotion-kpi strong { color: #172554; font-size: 25px; }
.organizer-promotion-panel .promotion-kpi small { color: #94a3b8; font-size: 10px; }
.organizer-promotion-panel .promotion-kpi i {
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #6d5dfc;
  transform: translateY(-50%);
}
.organizer-promotion-panel .promotion-kpi svg { width: var(--outlo-icon-xl, 24px); height: var(--outlo-icon-xl, 24px); fill: none; stroke: currentColor; stroke-width: var(--outlo-icon-stroke, 1.8); stroke-linecap: round; stroke-linejoin: round; }

.promotion-view-tabs {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 43px;
  border-bottom: 1px solid #e7eaf0;
}

.promotion-view-tabs button {
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.promotion-view-tabs button:hover { color: var(--outlo-brand-text-hover); background: #f8f8ff; }
.promotion-view-tabs button.is-active { border-bottom-color: #4f46e5; background: #f8f8ff; color: var(--outlo-brand-text); font-weight: 650; }
.promotion-view-tabs button span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: #4f46e5; color: #fff; font-size: 10px; }

.promotion-campaign-table {
  overflow: hidden;
  border: 1px solid #e5e9f0;
  border-radius: 11px;
  background: #fff;
}
.promotion-campaign-table-head,
.organizer-promotion-panel .promotion-campaign {
  display: grid;
  grid-template-columns: minmax(210px, 1.55fr) minmax(118px, .8fr) 88px minmax(150px, 1fr) 82px 68px 28px;
  gap: 12px;
  align-items: center;
}
.promotion-campaign-table-head {
  min-height: 39px;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e9f0;
  background: #fbfcfe;
}
.promotion-campaign-table-head span { color: #64748b; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.organizer-promotion-panel .promotion-campaign {
  min-height: 72px;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
}
.organizer-promotion-panel .promotion-campaign + .promotion-campaign { border-top: 1px solid #edf0f4; }
.organizer-promotion-panel .promotion-campaign:hover { border-color: transparent; background: #fafbff; }
.organizer-promotion-panel .promotion-campaign-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}
.promotion-campaign-main img,
.promotion-campaign-fallback { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.promotion-campaign-fallback { display: grid; place-items: center; background: #eef2ff; color: var(--outlo-brand-accent); font-weight: 700; }
.organizer-promotion-panel .promotion-campaign-main > span { display: grid; gap: 3px; min-width: 0; }
.organizer-promotion-panel .promotion-campaign-main strong { font-size: 12px; }
.organizer-promotion-panel .promotion-campaign-main small { color: #94a3b8; font-size: 10px; }
.promotion-campaign-package { display: grid; justify-items: start; gap: 3px; }
.promotion-campaign-package small { color: var(--outlo-brand-text); font-size: 10px; }
.organizer-promotion-panel .promotion-tier { padding: 4px 7px; font-size: 10px; }
.organizer-promotion-panel .status-pill { justify-self: start; font-size: 10px; }
.promotion-campaign-period { color: #64748b; font-size: 11px; white-space: nowrap; }
.promotion-campaign-number { color: #172554; font-size: 12px; font-weight: 600; }
.promotion-campaign-open { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: #64748b; text-decoration: none; }
.promotion-campaign-open:hover { background: #eef2ff; color: var(--outlo-brand-accent); }

.organizer-promotion-panel .promotion-transactions {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e9f0;
  border-radius: 11px;
}
.organizer-promotion-panel .promotion-transactions:empty { display: none; }
.organizer-promotion-panel .promotion-transactions[hidden] { display: none; }
.organizer-promotion-panel .promotion-transactions-head { min-height: 42px; padding: 10px 14px; border-bottom: 1px solid #e5e9f0; background: #fbfcfe; }
.organizer-promotion-panel .promotion-transactions-head h3 { font-size: 12px; }
.organizer-promotion-panel .promotion-transactions-head span { font-size: 10px; }
.organizer-promotion-panel .promotion-transaction-list { gap: 0; }
.organizer-promotion-panel .promotion-transaction { min-height: 39px; padding: 8px 14px; }
.organizer-promotion-panel .promotion-transaction + .promotion-transaction { border-color: #edf0f4; }

@media (max-width: 1120px) {
  .promotion-campaign-table { overflow: visible; border: 0; background: transparent; }
  .promotion-campaign-table-head { display: none; }
  .organizer-promotion-panel .promotion-campaign {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px 12px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
  }
  .organizer-promotion-panel .promotion-campaign + .promotion-campaign { border-top: 1px solid #e5e9f0; }
  .promotion-campaign-main { grid-row: span 2; }
  .promotion-campaign-package { justify-self: end; }
  .promotion-campaign-period { grid-column: 2 / -1; justify-self: end; }
  .promotion-campaign-number::after { color: #94a3b8; font-size: 9px; font-weight: 400; }
  .promotion-campaign-number:nth-last-of-type(2)::after { content: " zobrazení"; }
  .promotion-campaign-number:nth-last-of-type(1)::after { content: " kliknutí"; }
  .promotion-campaign-open { grid-column: 3; grid-row: 1; }
}

@media (max-width: 700px) {
  .organizer-promotion-panel { padding: 14px; }
  .organizer-promotion-panel .organizer-section-head { gap: 14px; }
  .promotion-panel-actions { width: 100%; }
  .promotion-panel-actions .primary { width: 100%; }
  .promotion-view-tabs { overflow-x: auto; }
  .promotion-view-tabs button { flex: 0 0 auto; }
  .organizer-promotion-panel .promotion-campaign { grid-template-columns: minmax(0, 1fr) auto; }
  .promotion-campaign-main { grid-column: 1 / -1; grid-row: auto; }
  .promotion-campaign-package { justify-self: start; }
  .promotion-campaign-period { grid-column: 1 / -1; justify-self: start; }
  .promotion-campaign-open { grid-column: 2; grid-row: 2; }
}

/* Promotion typography: aligned with the main Outlo interface. */
.promotion-panel-eyebrow { margin-bottom: 6px; font-size: 11px; line-height: 1.3; letter-spacing: .02em; }
.organizer-promotion-panel .organizer-section-head h2 { font-size: 26px; font-weight: 700; line-height: 1.22; }
.organizer-promotion-panel .organizer-section-head p { margin-top: 6px; color: #52627a; font-size: 14px; line-height: 1.5; }
.organizer-promotion-panel .promotion-kpi span { color: #52627a; font-size: 13px; font-weight: 600; line-height: 1.35; }
.organizer-promotion-panel .promotion-kpi strong { font-size: 30px; font-weight: 700; line-height: 1.05; }
.organizer-promotion-panel .promotion-kpi small { color: #718096; font-size: 12px; line-height: 1.35; }
.promotion-view-tabs button { font-size: 14px; font-weight: 600; line-height: 1.35; }
.promotion-view-tabs button.is-active { font-weight: 700; }
.promotion-view-tabs button span { font-size: 11px; font-weight: 700; }
.promotion-campaign-table-head span { color: #52627a; font-size: 11px; font-weight: 700; line-height: 1.3; }
.organizer-promotion-panel .promotion-campaign-main strong { color: #15213a; font-size: 14px; font-weight: 650; line-height: 1.35; }
.organizer-promotion-panel .promotion-campaign-main small { color: #718096; font-size: 12px; line-height: 1.35; }
.promotion-campaign-package small { color: var(--outlo-brand-text); font-size: 12px; font-weight: 500; line-height: 1.3; }
.organizer-promotion-panel .promotion-tier,
.organizer-promotion-panel .status-pill { font-size: 11px; font-weight: 650; line-height: 1.25; }
.promotion-campaign-period { color: #52627a; font-size: 12px; line-height: 1.4; }
.promotion-campaign-number { color: #15213a; font-size: 14px; font-weight: 650; }
.organizer-promotion-panel .promotion-transactions-head h3 { color: #15213a; font-size: 14px; font-weight: 650; }
.organizer-promotion-panel .promotion-transactions-head span { color: #718096; font-size: 12px; }
.organizer-promotion-panel .promotion-transaction strong { font-size: 14px; font-weight: 700; }
.organizer-promotion-panel .promotion-transaction span { color: #52627a; font-size: 13px; line-height: 1.45; }
.organizer-promotion-panel .promotion-transaction small { color: #718096; font-size: 12px; line-height: 1.4; }

.promotion-confirm-dialog .dialog-head h2 { color: #111827; font-size: 21px; font-weight: 700; line-height: 1.25; }
.promotion-confirm-dialog .dialog-kicker { color: #64748b !important; font-size: 13px; font-weight: 400; line-height: 1.5; }
.promotion-confirm-content > p { color: #64748b; font-size: 13px; font-weight: 400; line-height: 1.55; }
.promotion-offer-options legend { color: #15213a; font-size: 14px; font-weight: 600; line-height: 1.4; }
.promotion-offer-card-copy { gap: 3px; }
.promotion-offer-card strong { color: #15213a; font-size: 14px; font-weight: 600; line-height: 1.35; }
.promotion-offer-card small { color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.45; }
.promotion-offer-price { font-size: 13px; font-weight: 600; line-height: 1.35; }
.promotion-offer-card em { padding: 3px 7px; font-size: 10px; font-weight: 600; line-height: 1.3; }
.promotion-credit-source-copy { gap: 2px; }
.promotion-credit-source strong { color: #334155; font-size: 14px; font-weight: 500; line-height: 1.35; }
.promotion-credit-source b { font-size: 21px; font-weight: 700; line-height: 1.15; }
.promotion-credit-source small { color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.45; }
.promotion-confirm-dialog .promotion-confirm-notice { font-size: 13px; line-height: 1.45; }
.promotion-confirm-dialog .dialog-actions button { font-size: 13px; font-weight: 600; line-height: 1.3; }

@media (min-width: 901px) {
  .map-page .filter-panel {
    width: min(460px, calc(100vw - 44px));
  }

  #promotionConfirmDialog,
  #organizerPromotionConfirmDialog {
    width: min(790px, calc(100vw - 40px));
    max-height: min(820px, calc(100dvh - 40px));
    border-radius: 16px;
  }

  .promotion-confirm-dialog .dialog-head {
    padding: 24px 26px 14px;
  }

  .promotion-confirm-dialog .promotion-confirm-content {
    gap: 16px;
    padding: 0 26px 18px;
  }

  .promotion-confirm-content > p {
    margin-top: 2px;
  }

  .promotion-offer-options {
    gap: 12px;
  }

  .promotion-offer-options legend {
    margin-bottom: 6px;
  }

  .promotion-offer-card {
    min-height: 96px;
    gap: 12px;
    padding: 16px;
    border-radius: 11px;
  }

  .promotion-offer-card-copy {
    gap: 5px;
  }

  .promotion-offer-card em {
    margin-top: 4px;
  }

  .promotion-offer-card.custom {
    min-height: 68px;
    padding-block: 14px;
  }

  .promotion-credit-sources {
    gap: 12px;
  }

  .promotion-credit-source {
    min-height: 108px;
    padding: 16px 18px;
    border-radius: 11px;
  }

  .promotion-credit-source-copy {
    gap: 4px;
  }

  .promotion-confirm-dialog .dialog-actions {
    gap: 10px;
    padding: 16px 26px 22px;
  }

  .promotion-confirm-dialog .dialog-actions button {
    min-height: 40px;
    padding: 9px 16px;
  }
}

@media (max-width: 700px) {
  .organizer-promotion-panel .organizer-section-head h2 { font-size: 23px; }
  .organizer-promotion-panel .promotion-kpi strong { font-size: 27px; }
  .promotion-view-tabs button { font-size: 13px; }
  .promotion-confirm-dialog .dialog-head h2 { font-size: 20px; }
}

.promotion-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promotion-pricing-tier { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: #fff; }
.promotion-pricing-tier-head { display: grid; gap: 3px; margin-bottom: 14px; }
.promotion-pricing-tier-head h3 { margin: 0; font-size: 15px; }
.promotion-pricing-tier-head span, .promotion-offer-admin span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.promotion-rule-form, .promotion-offer-admin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; gap: 10px; align-items: end; }
.promotion-rule-form label, .promotion-offer-admin label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.promotion-rule-form input, .promotion-offer-admin input { min-width: 0; }
.promotion-price-toggle { display: inline-flex !important; grid-template-columns: auto 1fr !important; align-items: center; gap: 6px !important; white-space: nowrap; padding-bottom: 8px; }
.promotion-price-toggle input { width: 15px; height: 15px; }
.promotion-offer-admin-list { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(15, 23, 42, .08); }
.promotion-offer-admin { grid-template-columns: minmax(0, 1fr) 120px auto auto; }
.promotion-offer-admin > div { display: grid; gap: 2px; }
@media (max-width: 900px) { .promotion-pricing-grid { grid-template-columns: 1fr; } .promotion-rule-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } .promotion-rule-form button { grid-column: span 2; } }
@media (max-width: 620px) { .promotion-rule-form, .promotion-offer-admin { grid-template-columns: 1fr 1fr; } .promotion-rule-form button, .promotion-offer-admin > div { grid-column: 1 / -1; } .promotion-price-toggle { padding-bottom: 0; } }

.promotion-credit-manager {
  gap: 14px;
}

.promotion-credit-manager .admin-section-head h2 {
  margin: 0;
}

.promotion-credit-manager .admin-section-head p {
  margin: 5px 0 0;
  color: var(--muted, #64748b);
  font-size: 13px;
}

.promotion-organizer-picker {
  position: relative;
  max-width: 560px;
}

.promotion-organizer-picker label,
.promotion-credit-form label {
  display: grid;
  gap: 6px;
  color: var(--navy, #172554);
  font-size: 12px;
  font-weight: 650;
}

.promotion-organizer-picker input {
  width: 100%;
}

.promotion-organizer-options {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
}

.promotion-organizer-options button {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--navy, #172554);
  text-align: left;
}

.promotion-organizer-options button + button {
  border-top: 1px solid rgba(226, 232, 240, .78);
}

.promotion-organizer-options button:hover,
.promotion-organizer-options button:focus-visible {
  background: #f8faff;
}

.promotion-organizer-options span,
.promotion-organizer-empty {
  color: var(--muted, #64748b);
  font-size: 12px;
}

.promotion-organizer-empty { padding: 11px 12px; }

.promotion-credit-manager-content {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(199, 210, 254, .72);
  border-radius: 14px;
  background: #fafaff;
}

.promotion-credit-organizer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.promotion-credit-organizer > div {
  display: grid;
  gap: 3px;
}

.promotion-credit-organizer strong { color: var(--navy, #172554); }
.promotion-credit-organizer span:not(.promotion-credit-balance) { color: var(--muted, #64748b); font-size: 12px; }

.promotion-credit-form {
  display: grid;
  grid-template-columns: minmax(116px, .45fr) minmax(0, 1.7fr) auto;
  gap: 10px;
  align-items: end;
}

.promotion-credit-form button { min-height: 42px; }

.promotion-credit-transactions {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, .9);
}

.promotion-credit-transactions h3 {
  margin: 0;
  color: var(--navy, #172554);
  font-size: 13px;
}

.promotion-credit-transaction-list { display: grid; }

.promotion-credit-transaction {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
}

.promotion-credit-transaction + .promotion-credit-transaction {
  border-top: 1px solid rgba(226, 232, 240, .78);
}

.promotion-credit-transaction strong { text-align: center; }
.promotion-credit-transaction strong.is-credit { color: #15803d; }
.promotion-credit-transaction strong.is-debit { color: #4f46e5; }
.promotion-credit-transaction span,
.promotion-credit-transaction small { color: var(--muted, #64748b); font-size: 12px; }

@media (max-width: 700px) {
  .promotion-campaign { grid-template-columns: 1fr; }
  .promotion-campaign-metrics { grid-template-columns: repeat(2, auto); justify-content: start; text-align: left; }
  .promotion-transaction { grid-template-columns: 34px minmax(0, 1fr); }
  .promotion-transaction small { grid-column: 2; }
  .promotion-credit-form { grid-template-columns: 1fr; }
  .promotion-credit-form button { width: 100%; }
  .promotion-credit-transaction { grid-template-columns: 36px minmax(0, 1fr); }
  .promotion-credit-transaction small { grid-column: 2; }
}

/* Mobile map sheet polish: smoother bottom-sheet motion without changing filter logic. */
@media (max-width: 900px) {
  .filter-panel {
    --sheet-collapsed-offset: calc(100% - 174px);
    transform: translate3d(0, var(--sheet-collapsed-offset), 0) !important;
    transition:
      transform .36s cubic-bezier(.22, 1, .36, 1),
      box-shadow .22s ease,
      border-color .22s ease !important;
    will-change: transform;
    contain: layout paint;
  }

  .filter-panel.sheet-expanded {
    transform: translate3d(0, 0, 0) !important;
    box-shadow: 0 26px 76px rgba(6, 26, 51, .24);
  }

  .filter-panel.is-dragging {
    transform: translate3d(0, var(--sheet-drag-offset, 0px), 0) !important;
    transition: none !important;
    cursor: grabbing;
  }

  .mobile-sheet-handle {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
  }

  .mobile-sheet-handle:active,
  .filter-panel.is-dragging .mobile-sheet-handle {
    cursor: grabbing;
  }

  .mobile-sheet-handle span {
    transition: width .18s ease, background-color .18s ease, transform .18s ease;
  }

  .filter-panel.sheet-expanded .mobile-sheet-handle span {
    width: 36px;
    background: #aebccb;
  }
}

/* Mobile map-first sheet: collapsed summary, event overview, and full filters. */
.mobile-sheet-header,
.mobile-filter-footer { display: none; }

.map-page #topbarSearchInput {
  color: #1e293b !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}

.map-page #topbarSearchInput::placeholder {
  color: #64748b !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

@media (hover: none), (pointer: coarse) {
  .map-page .chip-grid button:not(.active):hover {
    border-color: var(--line);
    background: #fff;
    color: var(--navy);
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 900px) {
  .map-page .filter-panel {
    --sheet-collapsed-offset: calc(100% - 64px);
    height: min(80dvh, 680px);
    max-height: calc(var(--app-viewport-height, 100dvh) - 12px);
    padding: 0 14px 16px;
    border-radius: 20px 20px 0 0;
    transform: translate3d(0, var(--sheet-collapsed-offset), 0) !important;
    overflow: hidden;
  }

  .map-page .filter-panel.sheet-overview {
    z-index: 1050 !important;
    transform: translate3d(0, 0, 0) !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .map-page .filter-panel.sheet-expanded,
  .map-page .filter-panel.is-dragging {
    z-index: 1050 !important;
  }

  .map-page .mobile-sheet-header {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    margin: 0 -14px;
    padding: 16px 12px 6px;
    border-bottom: 1px solid rgba(226, 232, 240, .84);
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -8px 26px rgba(15, 23, 42, .08);
  }

  .map-page .mobile-sheet-handle > .mobile-sheet-grip {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #aab8c8;
    pointer-events: none;
    transform: translateX(-50%);
    transition: width .18s ease, background-color .18s ease;
  }

  .map-page .filter-panel.is-dragging .mobile-sheet-handle > .mobile-sheet-grip {
    width: 48px;
    background: #8292a6;
  }

  .map-page .mobile-sheet-handle {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: -8px 0 0;
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  .map-page .mobile-sheet-handle:hover { background: transparent; }

  .map-page .mobile-sheet-summary {
    display: flex;
    align-items: center;
    width: auto;
    min-width: 0;
    gap: 0;
    background: transparent;
    transform: none;
    text-align: left;
    padding-left: 8px;
  }

  .map-page .filter-panel.sheet-expanded .mobile-sheet-handle .mobile-sheet-summary {
    width: auto;
    background: transparent;
    transform: none;
  }

  .map-page .mobile-sheet-summary strong {
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
  }

.map-page .mobile-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    margin-right: 1px;
    padding: 7px 10px;
    border: 1px solid rgba(99, 102, 241, .22);
    border-radius: 12px;
    background: #f7f7ff;
    color: var(--outlo-brand-text);
    box-shadow: none;
    font-size: 13px;
    font-weight: 650;
  }

.map-page .mobile-filters-toggle svg {
    width: var(--outlo-icon-md, 18px);
    height: var(--outlo-icon-md, 18px);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: var(--outlo-icon-stroke, 1.8);
  
  stroke-linejoin: round;
}

  .map-page .mobile-active-filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--outlo-brand-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
  }

  .map-page .mobile-active-filter-count[hidden] { display: none; }
  .map-page .filter-panel-brand-row,
  .map-page .panel-hero { display: none; }

  .map-page .filter-panel .search-panel-section {
    display: none !important;
  }

  .map-page .filter-panel:not(.sheet-overview) > :not(.mobile-sheet-header) {
    display: none !important;
  }

  .map-page .filter-panel.sheet-overview .panel-section {
    padding: 10px 0;
  }

  .map-page .filter-panel.sheet-overview .segmented-time {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Compact map-first presentation used only while the mobile sheet is closed. */
  .map-page .filter-panel:not(.sheet-overview) {
    --sheet-collapsed-offset: calc(100% - 78px);
    border-radius: 26px 26px 0 0;
    box-shadow:
      0 -1px 0 rgba(99, 102, 241, .12),
      0 -12px 34px rgba(15, 23, 42, .13);
  }

  .map-page .filter-panel:not(.sheet-overview) .mobile-sheet-header {
    min-height: 78px;
    padding: 20px 14px 7px;
    border-bottom-color: transparent;
    border-radius: 26px 26px 0 0;
    background:
      linear-gradient(90deg, transparent 8%, rgba(99, 102, 241, .22) 50%, transparent 92%) top / 100% 1px no-repeat,
      #fff;
    box-shadow: none;
  }

  .map-page .filter-panel:not(.sheet-overview) .mobile-sheet-handle {
    min-height: 50px;
    margin: -7px 0 0;
    padding-top: 9px;
  }

  .map-page .filter-panel:not(.sheet-overview) .mobile-sheet-handle > .mobile-sheet-grip {
    top: 7px;
    width: 40px;
    height: 4px;
    background: #94a3b8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
  }

  .map-page .filter-panel:not(.sheet-overview) .mobile-sheet-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding-left: 10px;
  }

  .map-page .filter-panel:not(.sheet-overview) .mobile-sheet-summary strong {
    color: #172033;
    font-size: 16px;
    font-weight: 760;
    line-height: 1.05;
  }

  .map-page .mobile-sheet-summary small {
    color: #8793a5;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.1;
  }

  .map-page .mobile-sheet-summary small[hidden] { display: none; }

  .map-page .filter-panel:not(.sheet-overview) .mobile-filters-toggle {
    min-height: 34px;
    margin-right: 2px;
    padding: 6px 9px;
    gap: 5px;
    border-color: rgba(99, 102, 241, .18);
    border-radius: 999px;
    background: #f7f7ff;
    box-shadow: 0 2px 7px rgba(79, 70, 229, .07);
    font-size: 12px;
  }

.map-page .filter-panel:not(.sheet-overview) .mobile-filters-toggle svg {
    width: var(--outlo-icon-sm, 16px);
    height: var(--outlo-icon-sm, 16px);
  }

  .map-page .filter-panel:not(.sheet-overview) .mobile-active-filter-count {
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    font-size: 9px;
  }

  /* Opening the sheet reveals content without restyling its persistent header. */
  .map-page .filter-panel.sheet-overview {
    border-radius: 26px 26px 0 0;
    box-shadow:
      0 -1px 0 rgba(99, 102, 241, .12),
      0 -12px 34px rgba(15, 23, 42, .13);
  }

  .map-page .filter-panel.sheet-overview .mobile-sheet-header {
    min-height: 78px;
    padding: 20px 14px 7px;
    border-bottom-color: rgba(226, 232, 240, .72);
    border-radius: 26px 26px 0 0;
    background:
      linear-gradient(90deg, transparent 8%, rgba(99, 102, 241, .22) 50%, transparent 92%) top / 100% 1px no-repeat,
      #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .035);
  }

  .map-page .filter-panel.sheet-overview .mobile-sheet-handle {
    min-height: 50px;
    margin: -7px 0 0;
    padding-top: 9px;
  }

  .map-page .filter-panel.sheet-overview .mobile-sheet-handle > .mobile-sheet-grip {
    top: 7px;
    width: 40px;
    height: 4px;
    background: #94a3b8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
  }

  .map-page .filter-panel.sheet-overview .mobile-sheet-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding-left: 10px;
  }

  .map-page .filter-panel.sheet-overview .mobile-sheet-summary strong {
    color: #172033;
    font-size: 16px;
    font-weight: 760;
    line-height: 1.05;
  }

  .map-page .filter-panel.sheet-overview .mobile-filters-toggle {
    min-height: 34px;
    margin-right: 2px;
    padding: 6px 9px;
    gap: 5px;
    border-color: rgba(99, 102, 241, .18);
    border-radius: 999px;
    background: #f7f7ff;
    box-shadow: 0 2px 7px rgba(79, 70, 229, .07);
    font-size: 12px;
  }

.map-page .filter-panel.sheet-overview .mobile-filters-toggle svg {
    width: var(--outlo-icon-sm, 16px);
    height: var(--outlo-icon-sm, 16px);
  }

  .map-page .filter-panel.sheet-overview .mobile-active-filter-count {
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    font-size: 9px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .filter-panel {
    transition-duration: .01ms !important;
  }

  .mobile-sheet-handle span {
    transition-duration: .01ms !important;
  }
}

/* Final consistency fixes: distinct admin actions, role colors, and mobile viewport height. */
:root {
  --app-viewport-height: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --app-viewport-height: 100dvh;
  }
}

.role-admin {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
}

.role-moderator {
  background: #eef2ff !important;
  border-color: #c7d2fe !important;
  color: #3730a3 !important;
}

.role-organizer {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #9a3412 !important;
}

.role-user {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

#view-events .admin-events-table .event-row-actions > button[data-edit-event] {
  border-color: rgba(79, 70, 229, .28) !important;
  background: rgba(79, 70, 229, .09) !important;
  color: #004ecf !important;
}

#view-events .admin-events-table .event-row-actions > button[data-edit-event]:hover,
#view-events .admin-events-table .event-row-actions > button[data-edit-event]:focus-visible {
  border-color: rgba(79, 70, 229, .42) !important;
  background: rgba(79, 70, 229, .14) !important;
  color: #003ea5 !important;
}

#view-events .admin-events-table .event-row-actions > .action-menu > summary {
  border-color: rgba(148, 163, 184, .36) !important;
  background: #fff !important;
  color: #475569 !important;
}

#view-events .admin-events-table .event-row-actions > .action-menu > summary:hover,
#view-events .admin-events-table .event-row-actions > .action-menu[open] > summary,
#view-events .admin-events-table .event-row-actions > .action-menu > summary:focus-visible {
  border-color: rgba(71, 85, 105, .28) !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

@media (max-width: 900px) {
  html,
  body.map-page {
    min-height: var(--app-viewport-height);
  }

  body.map-page {
    overflow: hidden;
  }

  .map-page .map-layout {
    height: var(--app-viewport-height) !important;
    min-height: 0 !important;
  }

  .map-page .filter-panel {
    max-height: calc(var(--app-viewport-height) - 20px) !important;
  }
}

/* Personal profile dashboard. */
.profile-page {
  background: var(--page-bg);
}

.profile-dashboard {
  display: grid;
  gap: 14px;
}

.profile-head-modern {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 18px !important;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--avatar-color, var(--accent)), color-mix(in srgb, var(--avatar-color, var(--accent)) 72%, #111827));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(79, 70, 229, .18);
}

.nav-user-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--avatar-color, var(--accent)), color-mix(in srgb, var(--avatar-color, var(--accent)) 72%, #111827));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--avatar-color, var(--accent)) 18%, transparent);
}

.profile-avatar.has-image,
.nav-user-avatar.has-image,
.account-avatar-preview.has-image {
  background-color: var(--surface-muted);
  background-position: center;
  background-size: cover;
  color: transparent;
  text-shadow: none;
}

.profile-identity .eyebrow {
  margin-bottom: 2px;
}

.profile-identity h1 {
  margin: 0 0 3px !important;
}

.profile-member-since {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 720;
}

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

.profile-stats-modern {
  gap: 10px !important;
  margin-bottom: 0 !important;
}

.profile-stats-modern .profile-stat {
  position: relative;
  min-height: 132px;
  gap: 7px;
  padding: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.profile-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 10%, #fff);
  color: currentColor;
  font-size: 15px;
  font-weight: 900;
}

.profile-stat-saved { color: #be123c; }
.profile-stat-organizers { color: #7c3aed; }
.profile-stat-shares { color: #2563eb; }
.profile-stat-category { color: #0f766e; }

.profile-stats-modern .profile-stat span:not(.profile-stat-icon) {
  color: var(--text-muted);
}

.profile-stats-modern .profile-stat strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stats-modern .profile-stat small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 720;
}

.profile-dashboard-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr) !important;
  align-items: start;
  gap: 14px !important;
}

.profile-main-column,
.profile-side-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.profile-card-head {
  padding: 15px 16px 10px !important;
}

.profile-card-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.profile-event-list,
.profile-organizer-list,
.profile-activity-list {
  display: grid;
  gap: 0;
  padding: 0 12px 12px;
}

.profile-event-item {
  grid-template-columns: 44px minmax(0, 1fr) max-content 18px !important;
  gap: 10px !important;
  min-height: 64px;
  padding: 10px 8px !important;
  border: 0 !important;
  border-top: 1px solid rgba(226, 232, 240, .78) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.profile-event-item:first-child {
  border-top: 0 !important;
}

.profile-event-item:hover {
  background: #f8fafc !important;
  transform: none !important;
}

.profile-event-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 34px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.profile-event-main {
  min-width: 0;
}

.profile-event-main strong {
  display: block;
  overflow: hidden;
  color: var(--text) !important;
  font-size: 14px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-event-main span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--text-muted) !important;
  font-size: 12px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-event-item .category-badge {
  width: fit-content;
  background: transparent;
  color: color-mix(in srgb, var(--category-color) 78%, #111827);
}

.profile-row-arrow {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 800;
}

.profile-organizer-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 8px;
  border-top: 1px solid rgba(226, 232, 240, .78);
  color: inherit;
  text-decoration: none;
}

.profile-organizer-item:first-child {
  border-top: 0;
}

.profile-organizer-item:hover {
  background: #f8fafc;
}

.profile-organizer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.profile-organizer-item strong,
.profile-activity-item strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-organizer-item small,
.profile-activity-item small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.profile-organizer-item em {
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.profile-activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  padding: 10px 8px;
  border-top: 1px solid rgba(226, 232, 240, .78);
}

.profile-activity-item:first-child {
  border-top: 0;
}

.profile-activity-item .activity-dot {
  grid-row: span 2;
  margin-top: 4px;
}

.profile-empty-state {
  display: grid;
  gap: 8px;
  padding: 14px 8px 16px;
  color: var(--text-muted);
}

.profile-empty-state strong {
  color: var(--text);
  font-size: 14px;
}

.profile-empty-state span {
  font-size: 12px;
  line-height: 1.45;
}

.profile-empty-state .button-link {
  justify-self: start;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .profile-head-modern {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .profile-head-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .profile-head-actions .button-link {
    flex: 1 1 auto;
    min-width: max-content;
  }

  .profile-stats-modern {
    grid-template-columns: 1fr 1fr !important;
  }

  .profile-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .profile-avatar {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .profile-stats-modern {
    grid-template-columns: 1fr !important;
  }

  .profile-event-item {
    grid-template-columns: 38px minmax(0, 1fr) 18px !important;
  }

  .profile-event-item .category-badge {
    grid-column: 2 / 3;
    justify-self: start;
  }

  .profile-organizer-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .profile-organizer-item em {
    grid-column: 2 / 3;
    justify-self: start;
  }
}

/* Account profile/settings pages. */
.account-layout {
  width: min(100% - 28px, 1040px);
  margin: 18px auto 40px;
}

.account-shell {
  display: grid;
  gap: 14px;
}

.account-hero,
.account-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.account-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.account-hero h1 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: 0;
}

.account-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.account-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--outlo-brand-accent);
}

.account-hero-icon svg {
  width: var(--outlo-icon-xl, 24px);
  height: var(--outlo-icon-xl, 24px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: var(--outlo-icon-stroke, 1.8);
}

.account-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.account-section-title {
  display: grid;
  gap: 4px;
}

.account-section-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.account-section-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

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

.account-avatar-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.account-avatar-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--avatar-color, var(--accent)), color-mix(in srgb, var(--avatar-color, var(--accent)) 72%, #111827));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--avatar-color, var(--accent)) 20%, transparent);
}

.account-avatar-controls {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  min-width: 0;
}

.account-avatar-upload,
.account-info-note {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 6%, #fff);
}

.account-avatar-upload[hidden],
.account-info-note[hidden] {
  display: none !important;
}

.account-avatar-upload > div,
.account-info-note {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.account-avatar-upload strong,
.account-info-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 820;
}

.account-upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.account-upload-form input[type="file"] {
  min-width: 220px;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.account-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.account-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-color-swatch {
  position: relative;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--swatch-color);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-xs);
  padding: 0;
}

.account-color-swatch:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--swatch-color) 50%, var(--line)), var(--shadow-sm);
}

.account-color-swatch.active {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--swatch-color) 24%, transparent), 0 0 0 1px var(--swatch-color);
}

.account-color-swatch.active::after {
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 999px;
  content: "";
}

.account-form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.account-form-grid label.wide {
  grid-column: 1 / -1;
}

.account-form-grid input,
.account-form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .03);
}

.account-form-grid input:focus,
.account-form-grid select:focus,
.account-chip:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
  outline: none;
}

.account-form-grid input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.account-form-grid small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 620;
}

.account-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  padding: 8px 12px;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.account-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  color: var(--text);
}

.account-chip.active {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--accent-soft);
  color: var(--outlo-brand-text);
}

.account-toggle {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.account-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.account-toggle strong,
.account-toggle small {
  display: block;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.account-danger-zone {
  gap: 14px;
}

.account-privacy-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.account-privacy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.account-privacy-item + .account-privacy-item {
  border-top: 1px solid var(--line);
}

.account-privacy-copy {
  min-width: 0;
}

.account-privacy-copy h3,
.account-privacy-copy p {
  margin: 0;
}

.account-privacy-copy h3 {
  color: var(--text);
  font-size: 14px;
}

.account-privacy-copy p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

.account-coming-soon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.account-privacy-item-danger {
  background: #fffafb;
}

.account-coming-soon-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

@media (max-width: 720px) {
  .account-layout {
    width: min(100% - 20px, 1040px);
    margin-top: 12px;
  }

  .account-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-hero > .button-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-avatar-editor,
  .account-avatar-controls {
    grid-template-columns: 1fr;
  }

  .account-avatar-preview {
    width: 64px;
    height: 64px;
    font-size: 21px;
  }

  .account-actions {
    justify-content: stretch;
  }

  .account-actions .button-link,
  .account-actions button {
    flex: 1 1 auto;
  }

  .account-privacy-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .auth-split-layout {
    width: min(100% - 20px, 460px);
    min-height: calc(100dvh - 58px);
    align-items: start;
    padding: 12px 0 22px;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-split-layout .auth-card {
    padding: 20px;
    border-radius: 18px;
  }

  .auth-card h1 {
    font-size: 28px;
  }
}

/* Shared counters: neutral collections, pending work, and a compact bell signal. */
.nav-count {
  --counter-surface: #f1f5f9;
  --counter-ink: #475569;
  --counter-hover: #e8edf3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: center;
  justify-self: end;
  width: max-content;
  min-width: 26px;
  max-width: none;
  height: 22px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: var(--counter-surface);
  color: var(--counter-ink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  transition: background-color 140ms ease;
}
.menu-count-badge.nav-count { min-width: 26px; }
.nav-count[hidden] { display: none !important; }
.nav-count--attention {
  --counter-surface: #fef2f2;
  --counter-ink: #b91c1c;
  --counter-hover: #fee2e2;
}
:is(.menu-item,.admin-menu button):is(:hover,:focus-visible) > .nav-count {
  background: var(--counter-hover);
}
.nav-count--signal {
  --counter-surface: #dc2626;
  --counter-ink: #fff;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
  pointer-events: none;
}
#userMenuPanel .menu-item.has-badge { grid-template-columns: 18px minmax(0, 1fr) 36px; }
@media (prefers-reduced-motion: reduce) {
  .nav-count { transition: none; }
}

/* Map filter polish: keep inactive time options calm and category expander visually secondary. */
.map-page .segmented-time button:not(.active) {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
}

.map-page .segmented-time button:not(.active):hover {
  background: #e9eef5;
  color: #334155;
}

.map-page .category-toggle {
  border-color: rgba(148, 163, 184, .18);
  border-style: solid;
  background: transparent;
  color: var(--outlo-brand-text);
  box-shadow: none;
}

.map-page .category-toggle:hover,
.map-page .category-toggle:focus-visible {
  border-color: rgba(79, 70, 229, .24);
  background: rgba(248, 250, 252, .78);
  color: var(--outlo-brand-text-hover);
  box-shadow: none;
}

.map-page .panel-hero {
  padding-top: 8px;
}

.map-page .event-feed-card.has-thumb {
  grid-template-columns: 75px minmax(0, 1fr);
  min-height: 96px;
}

.map-page .event-feed-thumb {
  width: 75px;
  height: 75px;
  border-radius: 11px;
}

.map-page .event-feed-thumb,
.map-page .event-feed-thumb img {
  aspect-ratio: 1 / 1;
}

.map-page .event-feed-thumb {
  display: block;
  flex: 0 0 auto;
  align-self: center;
  overflow: hidden;
  background: var(--surface-muted);
}

.map-page .event-feed-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

@media (max-width: 900px) {
  .map-page .event-feed-card.has-thumb {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 86px;
    align-items: center;
  }

  .map-page .event-feed-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
}

@media (max-width: 430px) {
  .map-page .event-feed-card.has-thumb {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 82px;
  }

  .map-page .event-feed-thumb {
    width: 58px;
    height: 58px;
    border-radius: 11px;
  }
}

/* Category refresh: shorter labels, inline icons, regular-weight chips. */
.map-page .chip-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 500;
}

.map-page .chip-grid button[data-category-group="auto-moto"] {
  --chip-color: #f97316;
}

.chip-grid button[data-category="priroda"] {
  --chip-color: #15803d;
}

.category-chip-icon,
.category-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--category-color, var(--chip-color, currentColor));
}

.category-chip-icon svg,
.category-badge-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-chip-icon svg .icon-fill,
.category-badge-icon svg .icon-fill,
.category-pin-icon svg .icon-fill {
  fill: currentColor;
  stroke: none;
}

.category-chip-icon svg .category-letter,
.category-badge-icon svg .category-letter,
.category-pin-icon svg .category-letter {
  fill: currentColor;
  stroke: none;
  font-family: var(--outlo-font-family);
  font-size: 14px;
  font-weight: 850;
  text-anchor: middle;
  dominant-baseline: middle;
}

.category-pin-icon svg .category-letter {
  font-size: 16px;
  font-weight: 900;
}

.map-page .chip-grid button .category-chip-icon svg {
  width: 15px;
  height: 15px;
}

.category-badge {
  font-weight: 600 !important;
}

.detail-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-weight: 600;
}

.detail-category-badge::before {
  display: none;
}

.map-page .category-toggle {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

.map-page .category-toggle:hover,
.map-page .category-toggle:focus-visible {
  border: 0;
  background: transparent;
  color: var(--outlo-brand-text-hover);
  box-shadow: none;
  transform: none;
}

.map-page .category-toggle-icon {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-page .origin-input-wrap input,
.map-page .origin-input-wrap input::placeholder,
.map-page #radiusFilter {
  font-weight: 500;
}

.map-page .segmented-time button,
.map-page .segmented-time button.active,
.map-page .segmented-time button[aria-pressed="true"] {
  font-weight: 500;
}

/* Product topbar experiment: search-led navigation for Outlo. */
:root {
  --topbar-height: 66px;
}

.topbar.app-topbar {
  position: sticky;
  top: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: calc(100% - 32px);
  min-height: 62px;
  margin: 0 auto;
  padding: 8px 18px;
  column-gap: 18px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: rgba(255, 255, 255, .945);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .13), 0 3px 10px rgba(15, 23, 42, .045);
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

.topbar.app-topbar .brand-text-only {
  gap: 11px;
  min-height: 42px;
  padding-right: 12px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.025em;
}

.topbar.app-topbar .brand-text-only::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 48% 48%, #fff 0 28%, transparent 29%),
    conic-gradient(from 26deg, #4f46e5 0 46%, #06b6d4 46% 74%, #312e81 74% 100%);
  box-shadow: 0 9px 20px rgba(79, 70, 229, .20);
}

.topbar-search {
  position: absolute;
  grid-column: 1 / -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  width: min(390px, calc(100vw - 640px));
  min-width: 280px;
  z-index: 1;
}

.topbar-search-icon {
  position: absolute;
  left: 15px;
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: #475569;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.topbar-search input {
  min-height: 40px;
  padding: 9px 48px 9px 45px;
  border: 1px solid rgba(203, 213, 225, .74);
  border-radius: 15px;
  background: rgba(248, 250, 252, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(15, 23, 42, .025);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.topbar-search input::placeholder {
  color: #64748b;
  font-weight: 450;
}

.topbar-search input:focus {
  border-color: rgba(79, 70, 229, .38);
  background: #fff;
  box-shadow: var(--focus-ring), 0 12px 26px rgba(15, 23, 42, .07);
}

.topbar.app-topbar .top-actions {
  grid-column: 3;
  justify-self: end;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.topbar.app-topbar .brand-link {
  grid-column: 1;
  justify-self: start;
  position: relative;
  z-index: 2;
}

.topbar.app-topbar .nav-item:not(.primary) {
  min-height: 38px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: #334155;
  font-weight: 500;
}

.topbar.app-topbar .nav-item:not(.primary):hover {
  background: rgba(248, 250, 252, .92);
  border-color: rgba(203, 213, 225, .76);
  box-shadow: none;
  color: #0f172a;
}

.topbar.app-topbar .nav-item.primary {
  min-height: 38px;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .20);
}

.topbar.app-topbar .nav-item.primary .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.topbar.app-topbar .nav-item.primary:hover,
.topbar.app-topbar .nav-item.primary:focus-visible {
  box-shadow: 0 11px 24px rgba(79, 70, 229, .26);
}

.topbar.app-topbar #loginLink,
.topbar.app-topbar #userMenu {
  position: relative;
  margin-left: 10px;
}

.topbar.app-topbar #loginLink::before,
.topbar.app-topbar #userMenu::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(148, 163, 184, .42);
}

.topbar.app-topbar .user-menu-button {
  border-color: rgba(203, 213, 225, .72);
  background: rgba(255, 255, 255, .78);
}

.topbar.app-topbar .nav-user-avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 999px;
}

@media (min-width: 901px) {
  .map-page .search-panel-section {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 62px;
  }

  .topbar.app-topbar {
    position: sticky;
    top: 0;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    min-height: var(--topbar-height);
    margin: 0;
    padding: 8px 12px;
    border-width: 0 0 1px;
    border-radius: 0;
    column-gap: 8px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px) saturate(1.02);
    -webkit-backdrop-filter: blur(8px) saturate(1.02);
  }

  .topbar-search {
    display: none;
  }

  .map-page .search-panel-section {
    display: grid;
  }

  .topbar.app-topbar .brand-text-only {
    font-size: 22px;
  }

  .topbar.app-topbar .brand-text-only::before {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 10px;
  }
}

/* Topbar cleanup override: intentionally last so old visual experiments cannot leak through. */
.topbar.app-topbar {
  position: sticky;
  top: 0 !important;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 420px) minmax(250px, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  column-gap: 24px !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 420px) minmax(250px, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  column-gap: 24px !important;
  width: 100% !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 9px 36px !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  border-top: 0 !important;
  border-radius: 0 0 16px 16px !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .09), 0 3px 10px rgba(15, 23, 42, .04), inset 0 1px 0 rgba(255, 255, 255, .76) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
  overflow: visible !important;
}

.topbar.app-topbar::before,
.topbar.app-topbar::after {
  content: none !important;
}

.topbar.app-topbar > * {
  position: relative;
  z-index: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.app-topbar { background: rgba(255, 255, 255, .96) !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar.app-topbar {
    background: rgba(255, 255, 255, .98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 900px) {
  .topbar.app-topbar {
    min-height: 62px !important;
    padding: 8px 14px !important;
    border-radius: 0 0 13px 13px !important;
    background: rgba(255, 255, 255, .93) !important;
    backdrop-filter: blur(14px) saturate(118%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(118%) !important;
  }
}

/* Final map header shell: one full-width glass surface, without clipped masks. */
.topbar.app-topbar {
  position: sticky;
  top: 0 !important;
  isolation: isolate;
  width: 100% !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 9px 36px !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  border-top: 0 !important;
  border-radius: 0 0 16px 16px !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, .09),
    0 3px 10px rgba(15, 23, 42, .04),
    inset 0 1px 0 rgba(255, 255, 255, .76) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
  overflow: visible !important;
}

.topbar.app-topbar::before,
.topbar.app-topbar::after {
  content: none !important;
}

.topbar.app-topbar > * {
  position: relative;
  z-index: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.app-topbar {
    background: rgba(255, 255, 255, .96) !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar.app-topbar {
    background: rgba(255, 255, 255, .98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 900px) {
  .topbar.app-topbar {
    min-height: 62px !important;
    padding: 8px 14px !important;
    border-radius: 0 0 13px 13px !important;
    background: rgba(255, 255, 255, .93) !important;
    backdrop-filter: blur(14px) saturate(118%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(118%) !important;
  }
}

/* Glass finish for the existing topbar and the three requested map accents. */
.topbar.app-topbar {
  --topbar-shape-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M18,0 H982 Q1000,0 1000,18 V25 L940,89 Q932,100 918,100 H82 Q68,100 60,89 L0,25 V18 Q0,0 18,0 Z'/%3E%3C/svg%3E");
  position: sticky;
  top: 12px !important;
  isolation: isolate;
  width: 100% !important;
  min-height: 66px !important;
  padding-inline: 48px !important;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.topbar.app-topbar::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  -webkit-mask: var(--topbar-shape-mask) center / 100% 100% no-repeat;
  mask: var(--topbar-shape-mask) center / 100% 100% no-repeat;
  background: rgba(255, 255, 255, .78);
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .08));
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.topbar.app-topbar::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18,1 H982 Q999,1 999,18 V25 L940,89 Q932,99 918,99 H82 Q68,99 60,89 L1,25 V18 Q1,1 18,1 Z' fill='none' stroke='%23ffffff' stroke-opacity='.78' stroke-width='1.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.topbar.app-topbar > * {
  position: relative;
  z-index: 1;
}

.topbar.app-topbar .nav-item.primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #7c3aed 0%, var(--accent) 55%, #2563eb 100%) no-repeat border-box !important;
  box-shadow: 0 9px 20px rgba(79, 70, 229, .24) !important;
}

.topbar.app-topbar .nav-item.primary:hover,
.topbar.app-topbar .nav-item.primary:focus-visible {
  background: linear-gradient(135deg, #6d28d9 0%, var(--accent-hover) 56%, #1d4ed8 100%) no-repeat border-box !important;
  box-shadow: 0 12px 24px rgba(79, 70, 229, .29) !important;
}

.map-page .segmented-time button.active,
.map-page .segmented-time button[aria-pressed="true"] {
  border-color: transparent !important;
  background: linear-gradient(135deg, #7c3aed 0%, var(--accent) 58%, #2563eb 100%) no-repeat border-box !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(79, 70, 229, .20) !important;
}

.map-page .organizer-card .organizer-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, var(--accent) 58%, #2563eb 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .22) !important;
}

.map-page .organizer-card .organizer-icon::before {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .topbar.app-topbar {
    --topbar-shape-mask: none;
    top: 8px !important;
    width: 100% !important;
    min-height: 62px !important;
    margin-inline: 0 !important;
    padding: 7px 11px !important;
  }

  .topbar.app-topbar::before {
    border-radius: 14px;
    -webkit-mask: none;
    mask: none;
    background: rgba(255, 255, 255, .82);
    filter: none;
    backdrop-filter: blur(15px) saturate(125%);
    -webkit-backdrop-filter: blur(15px) saturate(125%);
  }

  .topbar.app-topbar::after {
    inset: 0;
    border-radius: 13px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .76);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .topbar.app-topbar {
    padding-inline: 34px !important;
  }
}

/* Event detail: one clear primary action, calmer facts, and a quicker entry point. */
.map-page .detail-image-gallery {
  min-height: 178px;
}

.map-page .detail-image-button,
.map-page .detail-image-button:not([hidden]) {
  height: 184px;
  min-height: 184px;
}

.map-page .detail-panel:has(.detail-image-gallery:not([hidden])) .detail-category-badge {
  margin-bottom: -6px;
}

.map-page .detail-content dl {
  gap: 13px;
}

.map-page .detail-content dl div {
  padding: 9px 0;
}

.map-page .detail-content dt {
  font-weight: 560;
}

.map-page .detail-content dd {
  font-size: 14px;
  font-weight: 700;
}

.map-page .detail-primary-actions,
.map-page .detail-primary-actions:has(#externalButton[hidden]) {
  grid-template-columns: 1fr !important;
}

.map-page .detail-secondary-actions #externalButton,
.map-page .detail-secondary-actions #shareButton,
.map-page .detail-secondary-actions #saveEventButton {
  --btn-bg: #fff;
  --btn-border: rgba(148, 163, 184, .26);
  --btn-color: var(--navy);
  --btn-hover-bg: #f8fafc;
  --btn-hover-border: rgba(79, 70, 229, .24);
}

.map-page .detail-secondary-actions #musicButton {
  --btn-bg: #f8fafc;
  --btn-border: rgba(148, 163, 184, .22);
  --btn-color: #475569;
  --btn-hover-bg: #f1f5f9;
  --btn-hover-border: rgba(148, 163, 184, .32);
}

.map-page .detail-secondary-actions #organizerProfileButton {
  min-height: 40px !important;
  border-color: transparent;
  background: transparent;
  color: #64748b;
  font-weight: 620 !important;
  box-shadow: none;
}

.map-page .event-feed-card.is-selected {
  background: color-mix(in srgb, var(--category-color) 6%, #fff);
  border-color: color-mix(in srgb, var(--category-color) 52%, #dbe4ef);
}

.category-pin-wrap.is-selected {
  z-index: 721 !important;
}

.category-pin-wrap.is-selected .category-pin {
  transform: rotate(-45deg) scale(1.11);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .82), 0 11px 24px rgba(15, 23, 42, .24);
}

@media (max-width: 520px) {
  .map-page .detail-image-gallery {
    min-height: 170px;
  }

  .map-page .detail-image-button,
  .map-page .detail-image-button:not([hidden]) {
    height: 176px;
    min-height: 176px;
  }
}

/* Temporary shared Outlo wordmark. The link remains the accessible home control. */
.brand-link.brand-text-only {
  width: 168px;
  min-height: 46px;
  padding: 0 !important;
  gap: 0 !important;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  background: url("/outlo-logo.png") left center / contain no-repeat;
}

.brand-link.brand-text-only::before {
  content: none !important;
}

@media (max-width: 700px) {
  .brand-link.brand-text-only {
    width: 126px;
    min-height: 38px;
  }
}

/* Location filtering: clearing belongs to the place field, while radius appears only after a place is set. */
.map-page .origin-input-wrap {
  position: relative;
  display: block;
}

.map-page .origin-input-wrap input {
  padding-right: 44px;
}

/* Keep one subtle field focus, including inside the catalog's keyboard-focus scope. */
.map-page .origin-input-wrap #originInput:focus {
  border-color: var(--public-field-focus-border, var(--outlo-brand-accent));
  outline: none;
  outline-offset: 0;
  box-shadow: 0 0 0 2px var(--public-field-focus-halo, rgb(79 70 229 / 18%));
}

@media (forced-colors: active) {
  .map-page .origin-input-wrap #originInput:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}

.map-page .origin-clear-button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  /* The general 40px button minimum must not turn this circle into an oval. */
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  transform: translateY(-50%);
  cursor: pointer;
}

.map-page .origin-clear-button:hover {
  background: #f1f5f9;
  color: #334155;
}

.map-page .origin-clear-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.map-page .origin-clear-button svg {
  display: block;
  flex: none;
  aspect-ratio: 1;
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;

  stroke-linejoin: round;
}

.map-page .distance-slider-section {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.map-page .distance-slider-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-page .distance-slider-heading output {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.map-page #radiusFilter[type="range"] {
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.map-page #radiusFilter[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--radius-progress, 0%), #dbe4f0 var(--radius-progress, 0%) 100%);
}

.map-page #radiusFilter[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--accent);
  box-shadow: 0 1px 5px rgba(15, 23, 42, .22);
}

.map-page #radiusFilter[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: #dbe4f0;
}

.map-page #radiusFilter[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.map-page #radiusFilter[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 5px rgba(15, 23, 42, .22);
}

.map-page .distance-slider-scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 900px) {
  .map-page .origin-clear-button {
    width: 34px;
    height: 34px;
    right: 5px;
  }

  .map-page .distance-slider-section {
    gap: 9px;
  }
}

/* The map panel is the only secondary glass surface; its controls stay solid. */
@media (min-width: 901px) {
  .map-page .filter-panel {
    background: rgba(255, 255, 255, .90);
    border-color: rgba(255, 255, 255, .75);
    box-shadow:
      0 12px 32px rgba(15, 23, 42, .09),
      0 3px 10px rgba(15, 23, 42, .04),
      inset 0 1px 0 rgba(255, 255, 255, .85);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
  }

  .map-page .filter-panel input,
  .map-page .filter-panel select,
  .map-page .filter-panel .event-feed-card {
    background-color: rgba(255, 255, 255, .96);
  }
}

/* Map-panel finishing details: quieter dividers and consistently secondary clear actions. */
.topbar.app-topbar .nav-item.primary {
  border-radius: 18px !important;
}

.filter-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  flex: 0 0 var(--outlo-icon-sm, 16px);
}

.filter-action-icon svg {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;

  stroke-linejoin: round;
}

.map-page .filter-actions #useLocation {
  font-weight: 640;
}

.map-page .filter-actions #useLocation .button-location-icon svg {
  stroke-width: var(--outlo-icon-stroke, 1.8);
}

.map-page #clearOriginButton,
.map-page .summary-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #64748b;
  font-weight: 560;
}

.map-page .event-card-modern .event-meta,
.map-page .event-card-modern .event-place,
.map-page .event-card-modern .event-distance {
  font-weight: 500 !important;
}

@media (min-width: 901px) {
  .map-page .filter-panel {
    padding: 24px;
  }

  .map-page .panel-section {
    gap: 10px;
    padding: 15px 0;
    border-color: rgba(226, 232, 240, .56);
  }

  .map-page .panel-hero {
    padding-bottom: 16px;
  }

  .map-page .panel-hero .panel-count-line {
    color: #475569;
    font-weight: 620;
  }

.map-page #showAllEventsButton:not([hidden]) {
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(199, 210, 254, .72);
    border-radius: 10px;
    background: rgba(238, 242, 255, .58);
    color: var(--outlo-brand-text);
    font-weight: 620;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.app-topbar::before {
    background: rgba(255, 255, 255, .96);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar.app-topbar::before {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}


/* Final event detail layout: poster first, clean facts, calmer form labels. */
.map-page .detail-panel {
  overflow: auto;
}

/* The map's filter and detail panels share one native scrollbar treatment. */
.map-page :is(.filter-panel, .detail-panel) {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #dde2ea transparent;
}

/* A 4px visible thumb keeps its 6px drag area; only the thumb reacts to hover. */
@supports selector(::-webkit-scrollbar) {
  .map-page :is(.filter-panel, .detail-panel) {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  .map-page :is(.filter-panel, .detail-panel)::-webkit-scrollbar { width: 6px; height: 6px; }
  .map-page :is(.filter-panel, .detail-panel)::-webkit-scrollbar-track { margin-block: 12px; background: transparent; }
  .map-page :is(.filter-panel, .detail-panel)::-webkit-scrollbar-thumb { min-height: 44px; border: 1px solid transparent; border-radius: 6px; background-color: #dde2ea; background-clip: padding-box; }
  .map-page :is(.filter-panel, .detail-panel)::-webkit-scrollbar-thumb:hover { background-color: #c8d0dd; }
  .map-page :is(.filter-panel, .detail-panel)::-webkit-scrollbar-thumb:active { background-color: #aeb9ca; }
  .map-page :is(.filter-panel, .detail-panel)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  .map-page :is(.filter-panel, .detail-panel)::-webkit-scrollbar-corner { background: transparent; }
}

.map-page .detail-panel:has(.detail-image-gallery:not([hidden])) {
  padding-top: 0;
}

.map-page .detail-image-gallery {
  position: relative;
  display: block;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--detail-panel-radius) var(--detail-panel-radius) 0 0;
  background: #eef2f7;
}

.map-page .detail-image-gallery[hidden] {
  display: none !important;
}

.map-page .detail-image-button,
.map-page .detail-image-button:not([hidden]) {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 230px;
  min-height: 230px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-page .detail-image-button img {
  object-fit: cover;
}

.map-page .detail-panel:has(.detail-image-gallery:not([hidden])) .detail-category-badge,
.map-page .detail-panel:has(.detail-image-gallery:not([hidden])) .detail-content h2 {
  margin-right: 0;
}

.map-page .detail-panel:has(.detail-image-gallery:not([hidden])) .detail-content h2 {
  min-height: 0;
}

.map-page .detail-description {
  margin-top: -5px;
}

.map-page .detail-content dl {
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.map-page .detail-content dl div {
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
}

.map-page .detail-content dt {
  gap: 9px;
  padding: 0;
  border-right: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 620;
}

.map-page .detail-content dd {
  justify-content: flex-start;
  padding: 0;
  color: #111827;
  font-size: 13px;
  font-weight: 650;
}

.map-page .detail-place-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-weight: 400;
}

.map-page .detail-place-name {
  display: block;
  min-width: 0;
  color: #111827;
  font-weight: 650;
}

.map-page .detail-place-name strong {
  font-weight: 650;
}

.map-page .detail-place-address {
  display: block;
  color: #334155;
  font-weight: 400;
  line-height: 1.35;
}

.map-page .detail-date-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.map-page .detail-date-stack strong {
  color: #111827;
  font-weight: 760;
}

.map-page .detail-date-stack span {
  color: #334155;
  font-weight: 400;
  line-height: 1.35;
}

.map-page .detail-date-stack small {
  color: #64748b;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.35;
}

.map-page .detail-secondary-actions #saveEventButton {
  --btn-bg: #fff5f7;
  --btn-border: rgba(225, 29, 72, .22);
  --btn-color: #be123c;
  --btn-hover-bg: #ffe4e6;
  --btn-hover-border: rgba(225, 29, 72, .34);
}

.map-page .detail-secondary-actions #saveEventButton.saved {
  --btn-bg: var(--outlo-brand-soft);
  --btn-border: var(--outlo-brand-border);
  --btn-color: var(--outlo-brand-text);
}

#eventDialog label:has(#streetInput) .field-title,
#eventDialog label:has(#houseNumberInput) .field-title {
  font-weight: 500;
}

#eventDialog #streetInput,
#eventDialog #houseNumberInput {
  font-weight: 500;
}

.schedule-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

#eventForm,
#eventForm .form-section,
#eventForm fieldset,
#eventForm .term-type-options,
#eventForm .datetime-fields {
  min-width: 0;
}

#eventForm {
  overflow-x: hidden;
}

.term-type-group,
.recurrence-end-group {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  margin: 0;
}

.term-type-group legend,
.recurrence-end-group legend {
  padding: 0;
}

.term-type-options {
  display: grid;
  gap: 8px;
}

.term-type-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  min-height: 56px;
  padding: 11px 12px !important;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.term-type-card:has(input:checked) {
  border-color: rgba(79, 70, 229, .34);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .08);
}

.term-type-card input {
  margin-top: 3px;
}

.term-type-card strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
}

.term-type-card small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.compact-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 34px;
  padding: 0 !important;
  color: var(--text-soft);
  font-weight: 560 !important;
}

.compact-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--primary);
}

#eventDialog #unknownEndRow.recurrence-hidden {
  display: none !important;
}

.recurrence-settings {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(221, 228, 238, .9);
  border-radius: 14px;
  background: var(--surface-muted);
}

.schedule-section.recurring-mode {
  grid-template-columns: minmax(0, 1fr);
}

.schedule-section.recurring-mode .schedule-step {
  grid-column: 1 / -1 !important;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(221, 228, 238, .86);
  border-radius: 13px;
  background: #fff;
  min-width: 0;
}

.schedule-section.recurring-mode .schedule-step legend {
  margin-bottom: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
}

.schedule-section.recurring-mode .datetime-fields {
  grid-template-columns: minmax(170px, 220px) minmax(130px, 170px);
  justify-content: start;
  max-width: none;
}

.schedule-section.recurring-mode #visibilityUntilGroup .datetime-fields {
  grid-template-columns: minmax(170px, 220px) minmax(130px, 170px);
}

.recurrence-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.recurrence-panel-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.25;
}

.recurrence-panel-head span:not(.help-tip) {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 420;
  line-height: 1.35;
}

.recurrence-fields {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(180px, .65fr);
  gap: 10px;
  min-width: 0;
}

.recurrence-field {
  min-width: 0;
}

.recurrence-inline-control {
  display: grid;
  grid-template-columns: auto minmax(62px, 84px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 430;
}

.recurrence-inline-control input {
  width: 100%;
  min-height: 28px !important;
  padding: 4px 7px !important;
  border-radius: 8px !important;
  text-align: center;
}

.recurrence-subgroup {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(221, 228, 238, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  min-width: 0;
}

.weekday-picker {
  min-width: 0;
}

.weekday-picker > span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 620;
}

.weekday-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.recurrence-duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.weekday-options label,
.recurrence-end-options label,
.recurrence-duration-options label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  min-height: 28px;
  padding: 5px 8px !important;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500 !important;
  line-height: 1.2;
}

.recurrence-end-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(221, 228, 238, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  margin: 0;
}

.recurrence-end-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, max-content));
  gap: 7px;
  min-width: 0;
  align-items: center;
}

.recurrence-end-options label {
  white-space: nowrap;
}

.recurrence-end-options input[type="radio"] {
  flex: 0 0 13px;
  width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  margin: 0;
  accent-color: var(--primary);
}

.recurrence-duration-options input[type="radio"] {
  flex: 0 0 13px;
  width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  margin: 0;
  accent-color: var(--primary);
}

.weekday-options input[type="checkbox"] {
  flex: 0 0 13px;
  width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  margin: 0;
  accent-color: var(--primary);
}

.recurrence-end-fields {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(130px, 150px);
  gap: 10px;
  min-width: 0;
  align-items: end;
}

.recurrence-end-fields label {
  display: grid !important;
  gap: 5px;
  width: 100%;
  min-height: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500 !important;
}

.recurrence-end-fields input {
  min-height: 36px;
}

.recurrence-end-fields .help-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

.recurrence-end-group:has(input[name="recurrenceEndMode"][value="none"]:checked) #recurrenceCountField {
  display: none !important;
}

#knownEndGroup.end-time-only .datetime-fields {
  grid-template-columns: minmax(120px, 150px);
  max-width: 170px;
}

#knownEndGroup.end-time-only label:has(#endDateInput) {
  display: none !important;
}

#knownEndGroup.duration-unknown .datetime-fields {
  display: none;
}

#knownEndGroup.duration-unselected .datetime-fields {
  display: none;
}

.compact-grid {
  gap: 10px;
}

@media (min-width: 720px) {
  .term-type-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .map-page .detail-image-gallery {
    min-height: 190px;
    border-radius: var(--detail-panel-radius) var(--detail-panel-radius) 0 0;
  }

  .map-page .detail-image-button,
  .map-page .detail-image-button:not([hidden]) {
    width: 100%;
    height: 205px;
    min-height: 205px;
    margin: 0;
  }

  .map-page .detail-content dl div {
    grid-template-columns: 108px minmax(0, 1fr);
  }
}

/* Detail panel fixes: persistent close, responsive sheet, centered poster hint. */
.map-page #closeDetail {
  position: absolute;
  top: 12px;
  right: 12px;
  float: none;
  z-index: 30;
  margin: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-page .filter-actions #useLocation .button-location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  flex: 0 0 auto;
  color: var(--accent);
}

.map-page .filter-actions #useLocation .button-location-icon svg {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-page .filter-actions #useLocation::before {
  display: none !important;
}

.map-page .detail-image-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  place-items: center;
  align-content: center;
  justify-items: center;
  padding: 16px;
  text-align: center;
}

@media (max-width: 900px) {
  .map-page .detail-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-width: none;
    max-height: min(78dvh, calc(var(--app-viewport-height, 100dvh) - 82px));
    border-radius: var(--detail-panel-radius);
    overflow: auto;
  }

  .map-page #closeDetail {
    position: fixed;
    top: var(--detail-close-top, 10px);
    right: var(--detail-close-right, 10px);
    float: none;
    margin: 0;
  }

  .map-page .detail-image-overlay {
    opacity: 1;
    background: rgba(3, 14, 30, .38);
  }
}

@media (max-width: 900px) {
  body.map-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
  }

  .map-page .mobile-sheet-handle {
    touch-action: none;
  }
}

/* Mobile event form breathing room and compact schedule controls. */
@media (max-width: 780px) {
  #eventDialog {
    --event-dialog-mobile-gap: 28px;
    width: min(100vw - 16px, 720px);
    max-height: calc(var(--app-viewport-height, 100dvh) - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: calc(var(--event-dialog-mobile-gap) + env(safe-area-inset-top)) auto calc(var(--event-dialog-mobile-gap) + env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  #eventDialog form {
    max-height: calc(var(--app-viewport-height, 100dvh) - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  #eventDialog .dialog-head {
    min-height: 52px;
    padding: 11px 13px 10px;
  }

  #eventDialog .event-form-body {
    padding: 10px 12px calc(112px + env(safe-area-inset-bottom));
  }

  #eventDialog .form-section {
    gap: 9px;
    padding: 12px;
    border-radius: 12px;
  }

  #eventDialog .form-section + .form-section {
    margin-top: 8px;
  }

  #eventDialog .schedule-section {
    gap: 10px;
  }

  #eventDialog .schedule-section.recurring-mode {
    grid-template-columns: minmax(0, 1fr);
  }

  #eventDialog .term-type-group {
    gap: 7px;
  }

  #eventDialog .term-type-options {
    gap: 7px;
  }

  #eventDialog .term-type-card {
    grid-template-columns: 16px 22px minmax(0, 1fr);
    min-height: auto;
    gap: 8px;
    padding: 9px 10px !important;
    border-radius: 10px;
  }

  #eventDialog .term-type-card input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }

  #eventDialog .term-type-icon {
    display: inline-flex;
    grid-column: auto;
    grid-row: auto;
    align-self: start;
    width: 20px;
    height: 20px;
    margin: 0;
  }

  #eventDialog .term-type-card > span:last-child {
    grid-column: 3;
    grid-row: auto;
  }

#eventDialog .term-type-icon svg {
    width: var(--outlo-icon-md, 18px);
    height: var(--outlo-icon-md, 18px);
  }

  #eventDialog .term-type-card strong {
    font-size: 12.5px;
    font-weight: 650;
  }

  #eventDialog .term-type-card small {
    margin-top: 1px;
    font-size: 11.5px;
    line-height: 1.28;
  }

  #eventDialog .datetime-fields {
    grid-template-columns: minmax(0, 1fr) minmax(88px, .48fr);
    gap: 8px;
  }

  #eventDialog #recurrenceSettings,
  #eventDialog #recurrenceSettings > label,
  #eventDialog #recurrenceSettings .datetime-fields,
  #eventDialog #monthlyOptionsGroup,
  #eventDialog .recurrence-end-group,
  #eventDialog .weekday-picker {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #eventDialog #recurrenceSettings {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  #eventDialog .recurrence-fields,
  #eventDialog .recurrence-end-fields,
  #eventDialog #monthlyOptionsGroup {
    grid-template-columns: minmax(0, 1fr);
  }

  #eventDialog .recurrence-panel-head {
    gap: 9px;
  }

  #eventDialog .recurrence-subgroup,
  #eventDialog .recurrence-end-group {
    padding: 9px;
  }

  #eventDialog .recurrence-inline-control {
    grid-template-columns: auto minmax(54px, 72px) minmax(0, 1fr);
  }

  #eventDialog .recurrence-end-options,
  #eventDialog .weekday-options {
    gap: 6px;
  }

  #eventDialog #recurrenceSettings input,
  #eventDialog #recurrenceSettings select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #eventDialog #recurrenceSettings input[type="radio"],
  #eventDialog #recurrenceSettings input[type="checkbox"] {
    width: 13px !important;
    max-width: 13px;
    min-width: 13px;
    height: 13px !important;
    min-height: 13px !important;
  }

  #eventDialog .recurrence-end-options {
    grid-template-columns: minmax(0, 1fr);
  }

  #eventDialog .recurrence-end-options label {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  #eventDialog .location-confirm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 9px;
  }

  #eventDialog #coordinateHint {
    width: 100%;
    max-width: 100%;
    line-height: 1.4;
  }

  #eventDialog #confirmLocationButton {
    width: 100%;
  }

  #eventDialog .event-form-actions {
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  }
}

/* Revert search-led topbar experiment: restore the previous simple navigation. */
:root {
  --topbar-height: 62px;
}

.topbar.app-topbar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  min-height: var(--topbar-height);
  margin: 0;
  padding: 9px 22px;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--topbar-border-glass);
  border-radius: 0;
  background: var(--topbar-bg-glass);
  box-shadow: var(--topbar-shadow-glass);
  backdrop-filter: blur(10px) saturate(1.03);
  -webkit-backdrop-filter: blur(10px) saturate(1.03);
}

.topbar.app-topbar .brand-link {
  grid-column: 1;
  justify-self: start;
}

.topbar.app-topbar .brand-text-only {
  gap: 10px;
  min-height: 42px;
  padding-inline: 4px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.topbar.app-topbar .brand-text-only::before {
  content: none;
}

.topbar.app-topbar .topnav {
  display: flex;
  grid-column: 2;
  justify-self: center;
}

.topbar-search {
  display: none !important;
}

.topbar.app-topbar .top-actions {
  grid-column: 3;
  justify-self: end;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.topbar.app-topbar .nav-item:not(.primary) {
  min-height: 38px;
  padding: 8px 10px;
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--navy);
  font-weight: 750;
}

.topbar.app-topbar .nav-item:not(.primary):hover {
  background: rgba(255, 255, 255, .48);
  border-color: rgba(15, 23, 42, .045);
  box-shadow: none;
}

.topbar.app-topbar .nav-item.primary {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .18);
}

.topbar.app-topbar .nav-item.primary .nav-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.topbar.app-topbar #loginLink,
.topbar.app-topbar #userMenu {
  margin-left: 0;
}

.topbar.app-topbar #loginLink::before,
.topbar.app-topbar #userMenu::before {
  content: none;
}

.map-page .search-panel-section {
  display: grid;
}

@media (max-width: 900px) {
  .topbar.app-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 64px;
    padding: 8px 12px;
    gap: 8px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px) saturate(1.02);
    -webkit-backdrop-filter: blur(8px) saturate(1.02);
  }

  .topbar.app-topbar .topnav {
    display: none;
  }

  .topbar.app-topbar .brand-text-only {
    font-size: 21px;
  }

  .topbar.app-topbar .top-actions {
    justify-content: flex-end;
    gap: 6px;
  }
}

/* Restore the search-led topbar state before the later premium-shadow experiment. */
:root {
  --topbar-height: 66px;
}

.topbar.app-topbar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: calc(100% - 32px);
  min-height: 62px;
  margin: 0 auto;
  padding: 8px 18px;
  column-gap: 18px;
  border: 1px solid rgba(15, 23, 42, .075);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .11), 0 2px 8px rgba(15, 23, 42, .05);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.topbar.app-topbar .brand-link {
  grid-column: 1;
  justify-self: start;
  position: relative;
  z-index: 2;
}

.topbar.app-topbar .brand-text-only {
  gap: 11px;
  min-height: 42px;
  padding-right: 12px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.025em;
}

.topbar.app-topbar .brand-text-only::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 48% 48%, #fff 0 28%, transparent 29%),
    conic-gradient(from 22deg, #4f46e5 0 27%, #06b6d4 27% 54%, #22c55e 54% 76%, #7c3aed 76% 100%);
  box-shadow: 0 8px 18px rgba(79, 70, 229, .22);
}

.topbar.app-topbar .topnav {
  display: none;
}

.topbar-search {
  position: absolute;
  grid-column: 1 / -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex !important;
  align-items: center;
  width: min(390px, calc(100vw - 640px));
  min-width: 280px;
  z-index: 1;
}

.topbar-search-icon {
  position: absolute;
  left: 15px;
  width: var(--outlo-icon-md, 18px);
  height: var(--outlo-icon-md, 18px);
  fill: none;
  stroke: #64748b;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.topbar-search input {
  min-height: 40px;
  padding: 9px 48px 9px 45px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 15px;
  background: rgba(248, 250, 252, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 1px 2px rgba(15, 23, 42, .04);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.topbar-search input::placeholder {
  color: #64748b;
  font-weight: 450;
}

.topbar-search input:focus {
  border-color: rgba(79, 70, 229, .38);
  background: #fff;
  box-shadow: var(--focus-ring), 0 8px 22px rgba(15, 23, 42, .06);
}

.topbar.app-topbar .top-actions {
  grid-column: 3;
  justify-self: end;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.topbar.app-topbar .nav-item:not(.primary) {
  min-height: 38px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: #334155;
  font-weight: 500;
}

.topbar.app-topbar .nav-item:not(.primary):hover {
  background: rgba(248, 250, 252, .92);
  border-color: rgba(203, 213, 225, .76);
  box-shadow: none;
  color: #0f172a;
}

.topbar.app-topbar .nav-item.primary {
  min-height: 38px;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .20);
}

.topbar.app-topbar .nav-item.primary .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 1px 4px rgba(15, 23, 42, .10);
  color: #ffffff;
}

.topbar.app-topbar .nav-item.primary .nav-icon path {
  stroke-width: 3;
}

.topbar.app-topbar .nav-item.primary:hover .nav-icon,
.topbar.app-topbar .nav-item.primary:focus-visible .nav-icon {
  background: var(--accent-hover);
  color: #fff;
}

.topbar.app-topbar .nav-item.primary:hover,
.topbar.app-topbar .nav-item.primary:focus-visible {
  box-shadow: 0 11px 24px rgba(79, 70, 229, .26);
}

.topbar.app-topbar #loginLink,
.topbar.app-topbar #userMenu {
  position: relative;
  margin-left: 10px;
}

.topbar.app-topbar #loginLink::before,
.topbar.app-topbar #userMenu::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(148, 163, 184, .42);
}

@media (min-width: 901px) {
  .map-page .search-panel-section {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 62px;
  }

  .topbar.app-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 8px 12px;
    border-width: 0 0 1px;
    border-radius: 0;
    column-gap: 8px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px) saturate(1.02);
    -webkit-backdrop-filter: blur(8px) saturate(1.02);
  }

  .topbar-search {
    display: none !important;
  }

  .map-page .search-panel-section {
    display: grid;
  }

  .topbar.app-topbar .brand-text-only {
    font-size: 22px;
  }

  .topbar.app-topbar .brand-text-only::before {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 10px;
  }
}

/* Topbar cleanup override: intentionally last so old visual experiments cannot leak through. */
.topbar.app-topbar {
  position: sticky;
  top: 0 !important;
  isolation: isolate;
  width: 100% !important;
  min-height: 66px !important;
  margin: 0 !important;
  padding: 9px 36px !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  border-top: 0 !important;
  border-radius: 0 0 16px 16px !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .09), 0 3px 10px rgba(15, 23, 42, .04), inset 0 1px 0 rgba(255, 255, 255, .76) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
  overflow: visible !important;
}

.topbar.app-topbar::before,
.topbar.app-topbar::after { content: none !important; }

.topbar.app-topbar > * { position: relative; z-index: 1; }

.topbar.app-topbar .brand-link {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}

.topbar.app-topbar .topbar-search {
  display: flex !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  width: min(100%, 420px) !important;
}

.topbar.app-topbar .top-actions {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.app-topbar { background: rgba(255, 255, 255, .96) !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar.app-topbar {
    background: rgba(255, 255, 255, .98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 900px) {
  .topbar.app-topbar {
    grid-template-columns: auto minmax(0, 1fr) !important;
    min-height: 62px !important;
    padding: 8px 14px !important;
    border-radius: 0 0 13px 13px !important;
    background: rgba(255, 255, 255, .93) !important;
    backdrop-filter: blur(14px) saturate(118%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(118%) !important;
  }

  .topbar.app-topbar .topbar-search {
    display: none !important;
  }

  .topbar.app-topbar .top-actions {
    grid-column: 2 !important;
  }
}

/* Desktop map header: a subtle full-width trapezoid with a protected content zone. */
@media (min-width: 901px) {
  .topbar.app-topbar {
    --topbar-trapezoid-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M18 0H982Q1000 0 994 12L935 88Q928 100 914 100H86Q72 100 65 88L6 12Q0 0 18 0Z'/%3E%3C/svg%3E");
    display: grid !important;
    width: calc(100% - 224px) !important;
    margin-inline: auto !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    column-gap: 24px !important;
    padding-inline: clamp(72px, 8vw, 148px) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .topbar.app-topbar::before {
    content: "" !important;
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    -webkit-mask: var(--topbar-trapezoid-mask) center / 100% 100% no-repeat;
    mask: var(--topbar-trapezoid-mask) center / 100% 100% no-repeat;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .90);
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, .08));
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
  }

  body:not(.map-page) .topbar.app-topbar .topbar-search {
    position: absolute !important;
    /* Absolute centering belongs to the header, not its padded grid row. */
    grid-column: auto !important;
    grid-row: auto !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    justify-self: auto !important;
    align-self: center !important;
    min-width: 0;
  }

  .topbar.app-topbar .brand-link {
    transform: translateX(-7px);
  }

  .topbar.app-topbar .topbar-search input {
    border-color: rgba(148, 163, 184, .68);
    background: rgba(255, 255, 255, .76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94), 0 2px 5px rgba(15, 23, 42, .05);
  }

  .topbar.app-topbar #loginLink::before,
  .topbar.app-topbar #userMenu::before {
    background: rgba(148, 163, 184, .26);
  }

  .topbar.app-topbar::after {
    content: "" !important;
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    -webkit-mask: var(--topbar-trapezoid-mask) center / 100% 100% no-repeat;
    mask: var(--topbar-trapezoid-mask) center / 100% 100% no-repeat;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 255, .30), rgba(124, 58, 237, .30), transparent) bottom / 100% 1px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .topbar.app-topbar {
    width: calc(100% - 64px) !important;
    padding-inline: clamp(60px, 7vw, 90px) !important;
    column-gap: 16px !important;
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  body:not(.map-page) .topbar.app-topbar .topbar-search {
    width: 400px !important;
  }

  body:not(.map-page) .topbar.app-topbar #allEventsLink,
  body:not(.map-page) .topbar.app-topbar #userMenuButton {
    width: 42px;
    min-width: 42px;
    padding-inline: 6px !important;
    justify-content: center;
  }

  body:not(.map-page) .topbar.app-topbar #allEventsLink > span,
  body:not(.map-page) .topbar.app-topbar #userMenuName,
  body:not(.map-page) .topbar.app-topbar #userMenuButton .nav-chevron {
    display: none;
  }
}

/* Status follows the exact pin silhouette and stays entirely behind the original marker. */
.category-pin-wrap {
  isolation: isolate;
}

.category-pin-wrap .category-pin {
  z-index: 2;
}

/* The visible pin is a sibling above the rings, so they share one center but never cross its body. */
.category-pin-wrap .category-pin {
  isolation: isolate;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.category-pin-body {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, .88);
  border-radius: 18px 18px 18px 5px;
  background: var(--pin-color);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--pin-color) 78%, white) 0%,
    var(--pin-color) 48%,
    color-mix(in srgb, var(--pin-color) 82%, #0f172a) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 5px 12px rgba(15, 23, 42, .14),
    0 0 0 1px rgba(15, 23, 42, .07);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.category-pin-body::after {
  content: none;
}

.category-pin-wrap.is-hovered .category-pin-body {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 14px 30px rgba(6, 26, 51, .36),
    0 0 0 1px rgba(6, 26, 51, .2);
}

.category-pin-wrap.is-selected .category-pin-body {
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 11px 24px rgba(15, 23, 42, .24);
}

.category-pin-wrap.is-selected .category-pin-body::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: 3;
  padding: 3px;
  border-radius: 21px 21px 21px 8px;
  background: conic-gradient(
    from -35deg,
    #7c3aed 0deg,
    #2563eb 52deg,
    #06b6d4 104deg,
    #22c55e 156deg,
    #facc15 208deg,
    #f97316 260deg,
    #ec4899 312deg,
    #7c3aed 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.category-pin-status-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* One soft status halo behind the pin. Each status only supplies these tunable variables. */
.category-pin-status-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--status-halo-color, transparent) 0%, transparent 72%);
  opacity: var(--status-halo-opacity, 0);
  transform: translate(-50%, -50%) scale(var(--status-halo-scale, 1));
  filter: blur(2.5px);
  pointer-events: none;
}

.category-pin-status-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  border: var(--status-ring-width, 2.5px) solid var(--status-ring-color, transparent);
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  transform: translate(-50%, -50%) scale(var(--status-ring-scale, 1));
  transform-origin: center;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.category-pin-status-ring.is-inner {
  --status-ring-scale: var(--status-inner-scale, 1.25);
  --status-ring-color: var(--status-inner-color, transparent);
  --status-ring-width: var(--status-inner-width, 2.5px);
  opacity: var(--status-inner-opacity, 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .92);
}

.category-pin-status-ring.is-outer {
  --status-ring-scale: var(--status-outer-scale, 1.5);
  --status-ring-color: var(--status-outer-color, transparent);
  --status-ring-width: var(--status-outer-width, 1.5px);
  opacity: var(--status-outer-opacity, 0);
}

.category-pin-wrap.is-status-paid-featured {
  --status-symbol-color: #7c3aed;
  --status-inner-scale: 1.25;
  --status-inner-color: rgba(124, 58, 237, .72);
  --status-inner-opacity: 1;
  --status-halo-color: rgba(124, 58, 237, .82);
  --status-halo-opacity: .12;
  --status-halo-scale: 1.35;
}

.category-pin-wrap.is-status-outlo-tip {
  --status-symbol-color: #0f8f83;
  --status-inner-scale: 1.27;
  --status-inner-color: rgba(13, 148, 136, .7);
  --status-inner-opacity: 1;
  --status-halo-color: rgba(13, 148, 136, .82);
  --status-halo-opacity: .14;
  --status-halo-scale: 1.38;
}

.category-pin-wrap.is-status-top-event {
  --status-symbol-color: #7e22ce;
  --status-inner-scale: 1.29;
  --status-inner-color: rgba(126, 34, 206, .82);
  --status-inner-opacity: 1;
  --status-outer-scale: 1.55;
  --status-outer-color: rgba(168, 85, 247, .76);
  --status-outer-opacity: .62;
  --status-halo-color: rgba(126, 34, 206, .86);
  --status-halo-opacity: .19;
  --status-halo-scale: 1.48;
}

.category-pin-wrap.is-status-paid-top {
  --status-symbol-color: #facc15;
  --status-inner-scale: 1.28;
  --status-inner-color: rgba(217, 119, 6, .8);
  --status-inner-opacity: 1;
  --status-outer-scale: 1.52;
  --status-outer-color: rgba(245, 158, 11, .74);
  --status-outer-opacity: .64;
  --status-halo-color: rgba(245, 158, 11, .86);
  --status-halo-opacity: .19;
  --status-halo-scale: 1.47;
}

/* Keep the selected rainbow outline visually separate from status decoration. */
.category-pin-wrap.is-selected:is(
  .is-status-paid-featured,
  .is-status-outlo-tip,
  .is-status-top-event,
  .is-status-paid-top
) {
  --status-inner-scale: 1.48;
  --status-halo-scale: 1.6;
}

.category-pin-wrap.is-selected:is(.is-status-top-event, .is-status-paid-top) {
  --status-outer-scale: 1.74;
}

/* Keep the original two-beat TOP breathing while the occasional wave runs separately. */
.category-pin-wrap.is-status-paid-top:not(.is-selected) .category-pin-status-ring.is-outer {
  animation: outlo-status-heartbeat 3s ease-in-out infinite;
}

.category-pin-wrap.is-status-top-event:not(.is-selected) .category-pin-status-ring.is-outer {
  animation: outlo-status-heartbeat 3s ease-in-out infinite;
}

@keyframes outlo-status-heartbeat {
  0%, 76%, 86%, 100% {
    transform: translate(-50%, -50%) scale(var(--status-outer-scale));
    opacity: var(--status-outer-opacity);
  }
  82% {
    transform: translate(-50%, -50%) scale(calc(var(--status-outer-scale) * 1.07));
    opacity: .8;
  }
  92% {
    transform: translate(-50%, -50%) scale(calc(var(--status-outer-scale) * 1.14));
    opacity: .9;
  }
}

/* TOP pins borrow the login-map ripple: a short visible wave, then a long rest. */
.category-pin-wrap.has-premium-wave.premium-wave-paid-top {
  --premium-wave-color: rgba(245, 158, 11, .84);
}

.category-pin-wrap.has-premium-wave.premium-wave-top-event {
  --premium-wave-color: rgba(168, 85, 247, .82);
}

.category-pin-wrap.has-premium-wave .category-pin-status-backdrop::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  box-sizing: border-box;
  border: 1px solid var(--premium-wave-color, transparent);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.category-pin-wrap.has-premium-wave.is-premium-wave-active .category-pin-status-backdrop::after {
  animation: outlo-premium-pin-wave 3.2s cubic-bezier(.18, .4, .38, 1) both;
}

@keyframes outlo-premium-pin-wave {
  0% { width: 6px; height: 6px; opacity: 0; }
  8% { opacity: .7; }
  65% { opacity: .42; }
  100% { width: var(--premium-wave-size, 240px); height: var(--premium-wave-size, 240px); opacity: 0; }
}

.category-pin-status-symbol {
  position: absolute;
  top: -5px;
  left: 24px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--status-symbol-color, #4f46e5);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: .75px rgba(255, 255, 255, .96);
  paint-order: stroke fill;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 1),
    0 1px 3px rgba(15, 23, 42, .18);
  pointer-events: none;
}

.category-pin-secondary-status {
  position: absolute;
  z-index: 4;
  top: -4px;
  left: 1px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #4f46e5;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .28);
  pointer-events: none;
}
.category-pin-secondary-status.is-top-event {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
}
.category-pin-secondary-status.is-top-event::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  background: #7e22ce;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .28);
  transform: rotate(45deg);
}
.category-pin-secondary-status.is-paid-top { color: #b45309; }

.category-pin-wrap.is-status-paid-top .category-pin-status-symbol,
.category-pin-wrap.is-status-top-event .category-pin-status-symbol {
  font-size: 16px;
}

/* The paid TOP marker keeps its orange map treatment; public TOP promo badges stay yellow. */
.category-pin-wrap.is-status-paid-top .category-pin-status-symbol {
  color: #b45309;
}

/* The font diamond is optically uneven. Build the TOP mark from a rotated square instead. */
.category-pin-wrap.is-status-top-event .category-pin-status-symbol {
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.category-pin-wrap.is-status-top-event .category-pin-status-symbol::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  background: currentColor;
  border: 1px solid rgba(255, 255, 255, .96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .18);
  transform: rotate(45deg);
}

/* Status does not resize the pin itself or add a symbol above it. */
.category-pin-wrap.is-promoted .category-pin {
  transform: rotate(-45deg);
}

.category-pin-wrap.is-promoted-featured::after,
.category-pin-wrap.is-promoted-top::after {
  content: none !important;
  display: none !important;
}

.category-pin-wrap.is-promoted.is-hovered .category-pin {
  transform: rotate(-45deg) scale(1.13);
}

/* Selected reuses the inner status layer as one clean Outlo outline. */
.category-pin-wrap.is-selected .category-pin,
.category-pin-wrap.is-selected.is-promoted .category-pin {
  transform: rotate(-45deg) scale(1.11);
  box-shadow: none;
}

.category-pin-wrap.is-selected .category-pin-status-ring.is-outer {
  animation: none;
}

.category-pin-wrap.is-selected.is-hovered .category-pin,
.category-pin-wrap.is-selected.is-promoted.is-hovered .category-pin {
  transform: rotate(-45deg) scale(1.13);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .category-pin-wrap .category-pin-status-ring {
    animation: none !important;
  }
  .category-pin-wrap.has-premium-wave .category-pin-status-backdrop::after {
    animation: none !important;
  }
}

/* This needs to follow the legacy detail rules, which otherwise restore the taller poster. */
.map-page .detail-image-gallery {
  min-height: 178px !important;
}

.map-page .detail-image-button,
.map-page .detail-image-button:not([hidden]) {
  height: 184px !important;
  min-height: 184px !important;
}

@media (max-width: 520px) {
  .map-page .detail-image-gallery {
    min-height: 170px !important;
  }

  .map-page .detail-image-button,
  .map-page .detail-image-button:not([hidden]) {
    height: 176px !important;
    min-height: 176px !important;
  }
}

/* Final detail hierarchy: visitor actions first, organizer and management kept quiet. */
.map-page .detail-content {
  gap: 24px;
}

.map-page .detail-category-badge {
  min-height: 29px;
  padding: 5px 10px;
  font-size: 12px;
}

.map-page .detail-content h2 {
  font-size: clamp(26px, 2.15vw, 30px);
  line-height: 1.14;
  font-weight: var(--outlo-weight-heading, 650);
}

.map-page .detail-description {
  margin-top: -12px;
  color: var(--outlo-text-secondary, #526077);
  font-size: var(--outlo-text-body, 14px);
  font-weight: var(--outlo-weight-regular, 400);
  line-height: 1.6;
  white-space: pre-line;
}

.map-page .detail-description-block {
  position: relative;
  min-width: 0;
  margin-top: -12px;
}

.map-page .detail-description-block .detail-description {
  margin-top: 0;
  margin-bottom: 0;
}

.map-page .detail-description-block.is-collapsed .detail-description,
.map-page .detail-description-block.is-expanded .detail-description {
  display: inline;
}

.map-page .detail-description-toggle {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--outlo-brand-text);
  font-family: inherit;
  font-size: var(--outlo-text-body, 14px);
  font-weight: var(--outlo-weight-regular, 400);
  line-height: 1.6;
  cursor: pointer;
}

.map-page .detail-description-toggle:hover,
.map-page .detail-description-toggle:focus-visible {
  color: var(--outlo-brand-text-hover);
  text-decoration: underline;
}

.map-page .detail-description-block.is-expanded .detail-description-toggle {
  margin-left: 4px;
}

.map-page .detail-content dl {
  gap: 18px;
}

.map-page .detail-content dl div {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  padding: 0;
}

.map-page .detail-content dt {
  color: var(--outlo-text-muted, #64748b);
  font-size: var(--outlo-text-caption, 12px);
  font-weight: var(--outlo-weight-regular, 400);
}

.map-page .detail-content dd {
  color: var(--outlo-text-secondary, #526077);
  font-size: var(--outlo-text-body, 14px);
  font-weight: var(--outlo-weight-label, 500);
}

.map-page .detail-primary-actions > * {
  min-height: var(--outlo-control-height, 44px) !important;
  font-weight: 650 !important;
}

.map-page .detail-primary-actions #navigateButton {
  --btn-bg: var(--outlo-brand-accent);
  --btn-border: var(--outlo-brand-accent);
  --btn-color: #fff;
  --btn-hover-bg: var(--outlo-brand-text);
  --btn-hover-border: var(--outlo-brand-text);
}

.map-page .detail-secondary-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.map-page .detail-secondary-actions > * {
  min-height: 44px !important;
  padding-inline: 8px !important;
  font-size: 12.5px !important;
  font-weight: 620 !important;
}

.map-page .detail-secondary-actions #externalButton,
.map-page .detail-secondary-actions #shareButton,
.map-page .detail-secondary-actions #saveEventButton {
  grid-column: auto !important;
  --btn-bg: #fff;
  --btn-border: rgba(100, 116, 139, .25);
  --btn-color: #334155;
  --btn-hover-bg: #f8fafc;
  --btn-hover-border: rgba(79, 70, 229, .28);
}

.map-page .detail-secondary-actions #saveEventButton.saved {
  --btn-bg: var(--outlo-brand-soft);
  --btn-border: var(--outlo-brand-border);
  --btn-color: var(--outlo-brand-text);
  --btn-hover-bg: var(--outlo-brand-soft-hover);
  --btn-hover-border: var(--outlo-brand-border-hover);
}

.map-page .detail-media-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--outlo-brand-border);
  border-radius: 12px;
  background: var(--outlo-brand-soft);
  color: var(--outlo-brand-text);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.map-page .detail-media-row:hover {
  border-color: var(--outlo-brand-border-hover);
  background: var(--outlo-brand-soft-hover);
  transform: translateY(-1px);
}

.map-page .detail-media-row:focus-visible,
.map-page .detail-organizer-summary:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .32);
  outline-offset: 2px;
}

.map-page .detail-media-row > span:last-child {
  display: grid;
  gap: 1px;
}

.map-page .detail-media-row strong {
  font-size: 13px;
  font-weight: 680;
}

.map-page .detail-media-row small {
  color: #6366a8;
  font-size: 11.5px;
}

.map-page .detail-media-play {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--outlo-brand-accent);
  color: #fff;
  font-size: 11px;
  padding-left: 1px;
}

.map-page .detail-organizer-section {
  display: grid;
  gap: 8px;
}

.map-page .detail-organizer-section > p,
.map-page .detail-management-label {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.map-page .detail-organizer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 14px;
  background: #fafbff;
}

.map-page .detail-organizer-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
}

.map-page .detail-organizer-summary > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.map-page .detail-organizer-summary strong {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-page .detail-organizer-summary small {
  color: #64748b;
  font-size: 11.5px;
}

.map-page .detail-organizer-avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--outlo-brand-soft);
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 750;
}

.map-page .detail-organizer-card #favoriteOrganizerButton {
  width: auto;
  min-height: var(--outlo-control-height-compact, 36px) !important;
  flex: 0 0 auto;
  padding: var(--outlo-control-padding-block-compact, 7px) var(--outlo-control-padding-inline-compact, 12px) !important;
  border-color: var(--outlo-brand-border);
  border-radius: var(--outlo-control-radius-compact, 8px) !important;
  background: #fff;
  color: var(--outlo-brand-text);
  font-size: 12px !important;
  font-weight: 650 !important;
}

.map-page .detail-organizer-card #favoriteOrganizerButton.saved {
  background: var(--outlo-brand-soft);
}

.map-page .detail-management-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 2px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .20);
}

.map-page .detail-management-actions:has(#editEventButton[hidden]) .detail-management-label {
  display: none;
}

.map-page .detail-management-actions #editEventButton {
  min-height: 40px;
  padding: 8px 11px;
  border-color: rgba(79, 70, 229, .22);
  border-radius: 10px;
  background: #fff;
  color: var(--outlo-brand-text);
  font-size: 12.5px;
  font-weight: 650;
}

.map-page .detail-management-actions #promoteEventButton {
  min-height: 40px;
  padding: 8px 11px;
  border-color: rgba(79, 70, 229, .24);
  border-radius: 10px;
  background: rgba(238, 242, 255, .82);
  color: var(--outlo-brand-text);
  font-size: 12.5px;
  font-weight: 650;
}

.map-page .detail-report-menu {
  justify-self: stretch;
  width: 100%;
}

.map-page .detail-report-menu .report-menu-trigger {
  width: auto;
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 560;
  box-shadow: none;
}

.map-page .detail-report-menu .report-menu-trigger:hover,
.map-page .detail-report-menu .report-menu-trigger:focus-visible {
  background: #f8fafc;
  color: #475569;
}

@media (max-width: 520px) {
  .map-page .detail-content {
    gap: 22px;
  }

  .map-page .detail-content h2 {
    font-size: 26px;
  }

  .map-page .detail-content dl div {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 10px;
  }

  .map-page .detail-secondary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .map-page .detail-secondary-actions > * {
    min-width: 0;
    font-size: 11.5px !important;
  }
}

/* With the external link above, utility actions share the full available row. */
.map-page .detail-secondary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100%;
}

.map-page .detail-secondary-actions #shareButton,
.map-page .detail-secondary-actions #saveEventButton {
  width: 100%;
  grid-column: auto !important;
}

/* The report control is intentionally a small low-priority action, not a boxed panel. */
.map-page .detail-management-actions {
  grid-template-columns: 1fr;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, .20);
  border-radius: 0;
  background: transparent;
}

.map-page .detail-report-menu {
  width: fit-content;
  justify-self: start;
}

.map-page .detail-report-menu .report-menu-trigger {
  width: fit-content;
  border: 0;
}

/* A saved event uses the familiar filled red heart, while the button remains calm. */
.map-page .detail-secondary-actions #saveEventButton.saved {
  --btn-bg: var(--outlo-brand-soft);
  --btn-border: var(--outlo-brand-border);
  --btn-color: var(--outlo-brand-text);
  --btn-hover-bg: var(--outlo-brand-soft-hover);
  --btn-hover-border: var(--outlo-brand-border-hover);
}

.map-page .detail-secondary-actions #saveEventButton.saved .button-icon {
  color: #e11d48;
  fill: currentColor;
  stroke: currentColor;
}

/* Stable event IDs are supporting information: visible for administration, quiet for visitors. */
.admin-event-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-event-title .cell-ellipsis {
  min-width: 0;
}

.admin-event-title small {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.2;
}

.map-page .detail-heading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-right: 48px;
}

.map-page .detail-heading-meta .detail-category-badge {
  margin: 0;
  white-space: nowrap;
}

.event-form-error {
  margin: 0 18px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, .24);
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .event-form-error {
    margin-inline: 14px;
  }
}

.map-page .detail-event-number {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 560;
  letter-spacing: .03em;
  line-height: 1.2;
  white-space: nowrap;
}

.map-page .detail-panel:has(.detail-image-gallery:not([hidden])) .detail-heading-meta {
  padding-right: 0;
}

/* Route is the primary next step, with the same restrained Outlo gradient as the create CTA. */
.map-page .detail-primary-actions #navigateButton {
  background: var(--outlo-action-fill, linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%)) no-repeat border-box;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .24);
}

.map-page .detail-primary-actions #navigateButton:hover,
.map-page .detail-primary-actions #navigateButton:focus-visible {
  background: var(--outlo-action-hover, linear-gradient(135deg, #6d28d9 0%, #4338ca 56%, #1d4ed8 100%)) no-repeat border-box;
  box-shadow: 0 11px 24px rgba(79, 70, 229, .28);
}

.map-page .detail-primary-actions #navigateButton .detail-route-distance {
  color: #fff;
  font-weight: 550;
}

/* Reporting is visible but neutral: it should not look like an irreversible destructive action. */
.map-page .detail-report-menu .report-menu-trigger {
  color: #64748b;
}

.map-page .detail-report-menu .report-menu-trigger:hover,
.map-page .detail-report-menu .report-menu-trigger:focus-visible,
.map-page .detail-report-menu .report-menu-trigger[aria-expanded="true"] {
  color: #475569;
  background: #f8fafc;
}

/* Quiet secondary reset, matching the catalogue's filter action. */
.map-page #mapFilterPanel .filter-summary {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.map-page #mapFilterPanel #resetFilters {
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9deec;
  border-radius: var(--outlo-control-radius, 12px);
  background: #f8f9fd;
  color: #526077;
  font-size: 13px;
  font-weight: 500 !important;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.map-page #mapFilterPanel #resetFilters span {
  color: inherit;
  font: inherit;
}

.map-page #mapFilterPanel #resetFilters .filter-action-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.map-page #mapFilterPanel #resetFilters svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.map-page #mapFilterPanel #resetFilters:hover {
  background: var(--outlo-brand-soft, #eef2ff);
  border-color: var(--outlo-brand-border, #c7d2fe);
  color: var(--outlo-brand-text, #4338ca);
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

.map-page #mapFilterPanel #resetFilters:focus-visible {
  outline: 2px solid var(--outlo-brand-accent, #4f46e5);
  outline-offset: 3px;
}

/* Keep every detail label aligned with the first line of its value. */
.map-page .detail-content dl > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: start;
}

.map-page .detail-content dt,
.map-page .detail-content dd {
  align-items: flex-start;
  align-self: start;
}

.map-page .detail-content dd {
  padding-top: 0;
  padding-bottom: 0;
}

/* Current events: compact feed cards with calm hierarchy. */
.map-page .filter-panel .event-list {
  gap: 6px;
}

.map-page .filter-panel .event-feed-card {
  min-height: 76px;
  padding: 7px 7px 7px 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

.map-page .filter-panel .event-feed-card.has-thumb {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px;
  padding-left: 7px;
  align-items: center;
  align-content: center;
}

.map-page .filter-panel .event-feed-thumb {
  width: 84px;
  height: 62px;
  border-radius: 9px;
  align-self: center !important;
  margin-block: auto;
  justify-self: start;
}

.map-page .filter-panel .event-card-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  padding: 0;
}

.map-page .filter-panel .event-card-modern .event-meta,
.map-page .filter-panel .event-card-modern .event-place,
.map-page .filter-panel .event-card-modern .event-distance {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.22;
}

.map-page .filter-panel .event-feed-content {
  position: relative;
  gap: 2px;
  min-height: 62px;
  padding-bottom: 0;
}

.map-page .filter-panel .event-card-top {
  display: block;
}

.map-page .filter-panel .event-feed-card.is-selected {
  border-color: color-mix(in srgb, var(--category-color) 42%, rgba(15, 23, 42, .08));
  background: color-mix(in srgb, var(--category-color) 5%, #fff);
  box-shadow: none;
}

.map-page .filter-panel .event-feed-card.is-selected::before {
  display: block;
  left: 3px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  opacity: .9;
}

.map-page .filter-panel .event-feed-card::before {
  display: block;
  left: 3px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  opacity: .58;
  box-shadow: none;
}

.map-page .filter-panel .event-feed-card.has-thumb::before {
  display: none;
}

.map-page .filter-panel .event-place {
  gap: 5px;
  padding-right: 112px;
}

.map-page .filter-panel .event-place-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-page .filter-panel .event-category-inline {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 3px;
  color: var(--category-color);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.map-page .filter-panel .event-category-inline,
.map-page .filter-panel .event-category-inline > span,
.map-page .filter-panel .event-category-inline-icon,
.map-page .filter-panel .event-category-inline-icon .category-art {
  color: var(--category-color) !important;
}

.map-page .filter-panel .event-category-inline-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.map-page .filter-panel .event-category-inline-icon .category-art {
  width: 18px;
  height: 18px;
}

.map-page #mapArchiveBackToCurrent:not([hidden]),
.map-page #showAllEventsButton:not([hidden]) {
  min-height: 32px;
  padding: 0 5px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  gap: 5px;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

.map-page #mapArchiveBackToCurrent:not([hidden]):hover,
.map-page #mapArchiveBackToCurrent:not([hidden]):focus-visible,
.map-page #showAllEventsButton:not([hidden]):hover,
.map-page #showAllEventsButton:not([hidden]):focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--outlo-brand-text-hover);
  box-shadow: none;
  transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-page #mapArchiveBackToCurrent:not([hidden]):focus-visible,
.map-page #showAllEventsButton:not([hidden]):focus-visible {
  outline: 3px solid var(--outlo-brand-accent);
  outline-offset: -2px;
}

:is(.map-page #mapFilterPanel, #searchFilterPanel .rs-map-filters) > .panel-section:is(#mapTagFilter, #mapArtistFilter, #searchTagFilter, #searchArtistFilter) {
  padding: 0;
  border-block: 0;
}

:is(.map-page #mapFilterPanel, #searchFilterPanel .rs-map-filters) > .mobile-category-section:has(+ :is(#mapTagFilter, #searchTagFilter):not([hidden])) {
  border-block-end: 0;
}

:is(.map-page #mapFilterPanel, #searchFilterPanel .rs-map-filters) > .mobile-category-section:not([hidden]) + :is(#mapTagFilter, #searchTagFilter) {
  margin-block-start: calc(8px - var(--filter-panel-gap, 0px));
}

:is(.map-page #mapFilterPanel, #searchFilterPanel .rs-map-filters) > :is(#mapTagFilter, #searchTagFilter):not([hidden]) + :is(#mapArtistFilter, #searchArtistFilter) {
  margin-block-start: calc(6px - var(--filter-panel-gap, 0px));
}

:is(.map-page #mapFilterPanel, #searchFilterPanel .rs-map-filters) :is(#mapTagFilter .rs-tag-toggle, #mapArtistFilter .artist-filter-toggle, #searchTagFilter .rs-tag-toggle, #searchArtistFilter .artist-filter-toggle) {
  height: auto;
  min-height: 48px;
  outline-offset: -2px;
}

.map-page #mapFilterPanel #mapTagFilter .map-tag-clear {
  height: 28px;
  min-height: 28px;
  padding-block: 0;
}

.map-page #mapFilterPanel > .filter-summary {
  margin: 0;
  padding: 6px 0 8px;
  border: 0;
}

.map-page #mapFilterPanel > .filter-summary:not(:has(button:not([hidden]))) {
  display: none;
}

.map-page #mapFilterPanel #eventSummaryCount {
  display: none;
}

.map-page .map-layout:not(.is-saved-mode) #mapFilterPanel > .events-heading {
  margin: 0;
  padding: 8px 0 6px;
  border-top: 1px solid rgba(221, 228, 238, .78);
  align-items: center;
  gap: 8px;
}

.map-page .map-layout:not(.is-saved-mode) #mapFilterPanel > #mapArtistFilter:not([hidden]) + .events-heading:not(.is-map-archive) {
  margin-block-start: calc(10px - var(--filter-panel-gap, 0px));
}

.map-page .events-heading-label {
  min-width: 0;
}

.map-page .events-heading-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  min-width: 0;
}

@media (min-width: 1121px) {
  /* Tighten only the title/count/location rhythm; retain the stacked header. */
  .map-page .map-layout:not(.is-saved-mode) #mapFilterPanel > .panel-hero {
    padding-bottom: 8px;
  }

  .map-page .map-layout:not(.is-saved-mode) #mapFilterPanel > .panel-hero .panel-hero-content {
    width: max-content;
    max-width: 100%;
  }

  .map-page .map-layout:not(.is-saved-mode) #mapFilterPanel > .panel-hero .panel-count-line {
    margin-top: 3px;
    margin-right: 13px;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    text-align: right;
  }

  .map-page #mapFilterPanel > .panel-section:not(#mapTagFilter, #mapArtistFilter) {
    padding-block: 10px;
  }

  .map-page .map-layout:not(.is-saved-mode) .events-heading .events-result-count {
    display: none;
  }
}

@media (max-width: 1120px) {
  .map-page #mapArchiveBackToCurrent:not([hidden]),
  .map-page #showAllEventsButton:not([hidden]) {
    min-height: 44px;
  }

  .map-page #mapTagFilter .map-tag-clear {
    width: 44px;
  }
}

.map-page .saved-events-exit:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 34px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--outlo-brand-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.map-page .saved-events-exit:not([hidden]):hover,
.map-page .saved-events-exit:not([hidden]):focus-visible {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--outlo-brand-text-hover);
  box-shadow: none;
  transform: none;
}

.map-page .saved-events-exit:not([hidden]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.map-page .panel-hero-content {
  width: 100%;
}

.map-page .panel-hero-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.map-page .panel-hero.is-saved-mode {
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
}

.map-page .panel-hero.is-saved-mode .panel-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "context context" "copy exit";
  align-items: center;
  gap: 4px 8px;
}

.map-page .panel-hero.is-saved-mode .panel-hero-title-row {
  grid-area: context;
  min-width: 0;
  gap: 10px;
}

.map-page .panel-hero.is-saved-mode .panel-hero-title-row > div {
  min-width: 0;
}

.map-page .panel-hero.is-saved-mode h1 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 750;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.map-page .panel-hero.is-saved-mode .panel-count-line {
  grid-area: copy;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

.map-page .panel-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-page .saved-count-pill:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  flex: none;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--outlo-brand-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.map-page .saved-mode-icon:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e11d48;
}

.map-page .saved-mode-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.45;
}

.map-page .events-result-count:not([hidden]) {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

/* Saved events keep the existing heading and count, but present them as one list label. */
.map-page .panel-hero.is-saved-mode ~ .events-heading {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 0 4px;
  border-top: 0;
}

.map-page .panel-hero.is-saved-mode ~ .events-heading h2 {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: 0;
}

.map-page .panel-hero.is-saved-mode .saved-events-exit:not([hidden]) {
  grid-area: exit;
  justify-self: end;
}

.map-page .panel-hero.is-saved-mode ~ .filter-summary:not(:has(button:not([hidden]))) {
  display: none;
}

@media (max-width: 1120px) {
  .map-page .filter-panel.sheet-overview > .panel-hero.is-saved-mode {
    display: flex !important;
    margin-top: 4px;
  }

  .map-page .panel-hero.is-saved-mode .saved-events-exit:not([hidden]) {
    min-height: 44px;
  }
}

@media (max-width: 620px) {
  .map-page .panel-hero.is-saved-mode {
    padding: 12px 8px 13px;
  }

  .map-page .panel-hero.is-saved-mode h1 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-page .saved-events-exit:not([hidden]) {
    transition: none;
  }
}

.map-page .chip-grid button .category-chip-icon .category-art {
  width: 24px;
  height: 24px;
  margin: -4px -2px;
}

.map-page .chip-grid button .category-chip-icon {
  width: 20px;
  height: 16px;
  overflow: visible;
}

.map-page .detail-report-menu-panel {
  border-color: rgba(148, 163, 184, .24);
  background: rgba(255, 255, 255, .99);
}

.map-page .detail-report-menu-panel button {
  color: #334155;
  font-weight: 620;
}

.map-page .detail-report-menu-panel button:hover,
.map-page .detail-report-menu-panel button:focus-visible {
  background: #f8fafc;
  color: #1e293b;
}

/* Keep the event-report control neutral even when legacy detail button rules load. */
.map-page #reportMenuButton,
.map-page #reportMenuButton:hover,
.map-page #reportMenuButton:focus-visible,
.map-page #reportMenuButton[aria-expanded="true"] {
  color: #475569 !important;
  background: #f8fafc !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.map-page #reportMenuPanel button,
.map-page #reportMenuPanel button:hover,
.map-page #reportMenuPanel button:focus-visible {
  color: #334155 !important;
  background: #fff !important;
}

.map-page #reportMenuPanel button:hover,
.map-page #reportMenuPanel button:focus-visible {
  background: #f8fafc !important;
}

.report-form-error {
  margin: 12px 18px 0;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 6, .24);
  border-radius: 9px;
  background: #fffaf0;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* Feedback is a compact product conversation, not a generic report form. */
@media (max-width: 520px) {
  .report-form-error {
    margin-inline: 14px;
  }
}

/* Detail action hierarchy: route leads, information follows, utilities stay calm. */
.map-page .detail-primary-actions #navigateButton {
  --btn-bg: var(--outlo-brand-accent);
  --btn-border: var(--outlo-brand-accent);
  --btn-color: #fff;
  --btn-hover-bg: var(--outlo-brand-text);
  --btn-hover-border: var(--outlo-brand-text);
  box-shadow: 0 7px 16px rgba(79, 70, 229, .18);
}

.map-page .detail-information-action #externalButton {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(79, 70, 229, .34);
}

/* A music link is intentionally neutral; Spotify is only a small source cue. */
.map-page .detail-media-row {
  border-color: rgba(148, 163, 184, .28);
  background: #fbfcff;
  color: #1e293b;
}

.map-page .detail-media-row:hover {
  border-color: rgba(99, 102, 241, .28);
  background: #f7f8ff;
}

.map-page .detail-media-row small {
  color: #64748b;
}

.map-page .detail-media-play {
  background: #64748b;
  padding-left: 0;
}

.map-page .detail-media-play svg {
  width: 15px;
  height: 15px;
  margin-left: 1px;
  fill: currentColor;
  stroke: none;
}

.map-page .detail-media-row.is-spotify .detail-media-play {
  background: #1db954;
}

.map-page .detail-media-row.is-spotify small {
  color: #168545;
}

@media (max-width: 440px) {
  .topbar.app-topbar {
    padding-inline: 10px !important;
    column-gap: 6px !important;
  }

  .topbar.app-topbar .brand-text-only {
    gap: 7px;
    padding-right: 0;
    font-size: 20px;
  }

  .topbar.app-topbar .brand-text-only::before {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 9px;
  }

  .topbar.app-topbar .top-actions {
    gap: 5px;
  }

  .topbar.app-topbar #newEventButton {
    gap: 5px;
    padding-right: 9px;
  }

  .topbar.app-topbar #newEventButton > span {
    font-size: 0;
  }

  .topbar.app-topbar #newEventButton > span::after {
    content: "Přidat";
    font-size: 12px;
  }

  .topbar.app-topbar #loginLink {
    min-width: 38px;
    margin-left: 5px;
    padding-inline: 8px;
  }

  .topbar.app-topbar #loginLink::before {
    left: -5px;
  }

  .topbar.app-topbar #loginLink > span {
    display: none;
  }
}

/* Final promotion-dialog layout overrides. */
@media (min-width: 701px) {
  #promotionConfirmDialog,
  #organizerPromotionConfirmDialog { width: min(790px, calc(100vw - 40px)); }
  .promotion-confirm-dialog .dialog-head { padding: 24px 26px 16px; }
  .promotion-confirm-dialog .promotion-confirm-content { gap: 14px; padding: 0 26px 18px; }
  .promotion-offer-options { gap: 12px; }
  .promotion-offer-card { min-height: 96px; padding: 16px; border-radius: 11px; }
  .promotion-offer-card.custom { min-height: 68px; padding: 13px 16px; }
  .promotion-custom-period {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .promotion-custom-period label { gap: 6px; color: #52627a; font-size: 12px; font-weight: 600; line-height: 1.35; }
  .promotion-custom-period input,
  .promotion-custom-period select {
    min-height: 42px;
    border-color: rgba(148, 163, 184, .38);
    border-radius: 9px;
    background: #fff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
  }
  .promotion-credit-sources { gap: 12px; }
  .promotion-credit-source { min-height: 112px; padding: 16px 18px; border-radius: 11px; }
  .promotion-confirm-dialog .dialog-actions { padding: 16px 26px 22px; }
}

@media (max-width: 700px) {
  .promotion-custom-period {
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* Custom promotion period forms one continuous selectable panel. */
.promotion-offer-card.custom:has(input:checked) {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: none;
}

.promotion-custom-period:not([hidden]) {
  margin-top: -14px;
  padding: 12px 14px;
  border: 1px solid rgba(99, 102, 241, .62);
  border-top-color: rgba(148, 163, 184, .25);
  border-radius: 0 0 11px 11px;
  background: #fff;
}

.promotion-custom-period:not([hidden]):has(+ .promotion-campaign-summary.is-custom-price:not([hidden])) {
  padding-bottom: 10px;
  border-bottom: 0;
  border-radius: 0;
}

.promotion-campaign-summary.is-custom-price:not([hidden]) {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: -14px;
  padding: 0 14px 10px;
  border: 1px solid rgba(99, 102, 241, .62);
  border-top: 0;
  border-radius: 0 0 11px 11px;
  background: #fff;
}

.promotion-campaign-summary.is-custom-price::before {
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: 0;
  background: rgba(148, 163, 184, .18);
  content: "";
}

.promotion-price-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--outlo-brand-accent);
}

.promotion-price-icon svg {
  width: var(--outlo-icon-lg, 20px);
  height: var(--outlo-icon-lg, 20px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promotion-price-copy {
  display: grid;
  gap: 2px;
}

.promotion-price-copy strong,
.promotion-price-copy small {
  color: inherit;
}

.promotion-price-copy strong b {
  margin-left: 6px;
  color: var(--outlo-brand-text);
  font-size: 18px;
}

@media (max-width: 700px) {
  .promotion-custom-period:not([hidden]) {
    margin-top: -10px;
    padding: 12px;
  }

  .promotion-campaign-summary.is-custom-price:not([hidden]) {
    margin-top: -10px;
    padding: 0 12px 12px;
  }
}

/* Restore the original desktop width of the map filter panel. */
@media (min-width: 901px) {
  .map-page .filter-panel {
    width: min(392px, calc(100vw - 44px));
  }
}

/* Current-event supporting text is deliberately one step below the title. */
.map-page .filter-panel .event-feed-card .event-meta,
.map-page .filter-panel .event-feed-card .event-place,
.map-page .filter-panel .event-feed-card .event-place-name,
.map-page .filter-panel .event-feed-card .event-category-inline,
.map-page .filter-panel .event-feed-card .event-category-inline > span,
.map-page .filter-panel .event-feed-card .event-promotion-label {
  font-size: 11px !important;
}

.map-page .filter-panel .event-feed-card .event-meta > span:last-child,
.map-page .filter-panel .event-feed-card .event-place > span:last-child,
.map-page .filter-panel .event-feed-card .event-place > .event-place-name {
  font-size: 11px !important;
}

/* TOP promotion mirrors the reference while sharing the category pill's right edge. */
.map-page .filter-panel .event-feed-card.is-promoted-top .event-promotion-label,
.map-page .filter-panel .event-feed-card .event-promotion-label.is-top {
  top: 0;
  right: 0;
  gap: 4px;
  min-height: 22px;
  padding: 4px 9px;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6758cf 0%, #7c55d8 52%, #a855c4 100%);
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 4px 10px rgba(109, 76, 190, .17);
}

.map-page .filter-panel .event-feed-card .event-promotion-label.is-top .event-promotion-symbol {
  color: inherit !important;
  font-size: 8px !important;
  line-height: 1;
}

.map-page .filter-panel .event-feed-card.is-promoted-top .event-promotion-label::after,
.map-page .filter-panel .event-feed-card .event-promotion-label.is-top::after {
  position: absolute;
  top: -6px;
  right: -2px;
  color: #f9a8d4;
  content: "✦";
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(236, 72, 153, .3);
  pointer-events: none;
}

/* Current-event card tiers: neutral, promoted, and TOP. */
.map-page .filter-panel .event-feed-card:not(.is-promoted) {
  border-color: rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 3px 10px rgba(15, 23, 42, .025);
}

.map-page .filter-panel .event-feed-card.is-promoted:not(.is-promoted-top) {
  border-color: rgba(124, 58, 237, .18);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .99) 8%,
    rgba(248, 247, 255, .96) 58%,
    rgba(241, 239, 255, .88) 100%
  );
  box-shadow: 0 4px 12px rgba(79, 70, 229, .045);
}

.map-page .filter-panel .event-feed-card.is-promoted-top {
  border-color: rgba(168, 85, 247, .27);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .99) 5%,
    rgba(248, 244, 255, .96) 50%,
    rgba(252, 238, 250, .9) 100%
  );
  box-shadow:
    0 5px 14px rgba(126, 34, 206, .065),
    0 1px 3px rgba(79, 70, 229, .035);
}

/* Selection communicates the open event; promotion remains a separate tier. */
.map-page .filter-panel .event-feed-card.is-selected:not(.is-promoted) {
  border-color: rgba(79, 70, 229, .52);
  background: #f8f7ff;
  box-shadow:
    inset 0 0 0 1px rgba(79, 70, 229, .08),
    0 4px 12px rgba(79, 70, 229, .055);
}

.map-page .filter-panel .event-feed-card.is-promoted.is-selected:not(.is-promoted-top) {
  border-color: rgba(79, 70, 229, .58);
  box-shadow:
    inset 0 0 0 1px rgba(79, 70, 229, .1),
    0 5px 13px rgba(79, 70, 229, .075);
}

.map-page .filter-panel .event-feed-card.is-promoted-top.is-selected {
  border-color: rgba(126, 34, 206, .62);
  box-shadow:
    inset 0 0 0 1px rgba(126, 34, 206, .11),
    0 6px 15px rgba(126, 34, 206, .09);
}

.map-page .filter-panel .event-feed-card.is-promoted:not(.is-promoted-top) .event-promotion-label {
  top: 0;
  right: 0;
}
/* Location is the primary filter action; selected time options stay deliberately calm. */
.map-page .filter-actions #useLocation {
  border-color: transparent !important;
  background: linear-gradient(135deg, #7c3aed 0%, var(--accent) 58%, #2563eb 100%) no-repeat border-box !important;
  color: #fff !important;
  box-shadow: 0 5px 13px rgba(79, 70, 229, .16) !important;
}

.map-page .filter-actions #useLocation:hover,
.map-page .filter-actions #useLocation:focus-visible {
  background: linear-gradient(135deg, #6d28d9 0%, var(--accent-hover) 56%, #1d4ed8 100%) no-repeat border-box !important;
  box-shadow: 0 7px 15px rgba(79, 70, 229, .20) !important;
}

.map-page .filter-actions #useLocation .button-location-icon {
  color: #fff !important;
}

.map-page .segmented-time button {
  border: 1px solid transparent !important;
}

.map-page .segmented-time button.active,
.map-page .segmented-time button[aria-pressed="true"] {
  border-color: rgba(79, 70, 229, .34) !important;
  background: #f2f1ff !important;
  color: var(--accent-dark) !important;
  box-shadow: none !important;
}
.outlo-tip-dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .18);
}
.outlo-tip-form { display: grid; gap: 16px; padding: 22px; }
.outlo-tip-form .dialog-head { margin: 0; align-items: flex-start; }
.outlo-tip-form .dialog-head h2 { margin: 2px 0 0; }
.outlo-tip-form .dialog-eyebrow { margin: 0; color: #5b50d6; font-size: 12px; font-weight: 600; }
.outlo-tip-event { margin: 0; color: #111827; font-size: 17px; font-weight: 600; }
.outlo-tip-intro { margin: -8px 0 0; color: #64748b; font-size: 14px; line-height: 1.5; }
.outlo-tip-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.outlo-tip-fields label { display: grid; gap: 6px; color: #334155; font-size: 13px; font-weight: 600; }
.outlo-tip-fields label > span { color: #94a3b8; font-weight: 400; }
.outlo-tip-fields .wide { grid-column: 1 / -1; }
.outlo-tip-fields textarea { min-height: 92px; resize: vertical; }
.outlo-tip-current { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid rgba(124, 58, 237, .2); border-radius: 10px; background: rgba(245, 243, 255, .72); }
.outlo-tip-current strong { color: #5b21b6; }
.outlo-tip-current span { color: #475569; font-size: 14px; line-height: 1.45; }
@media (max-width: 560px) {
  .outlo-tip-form { padding: 18px; }
  .outlo-tip-fields { grid-template-columns: 1fr; }
  .outlo-tip-fields .wide { grid-column: auto; }
}
:is(.map-page, .search-results-page) .event-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 4px 9px;
  border: 1px solid rgba(99, 102, 241, .16);
  border-radius: 999px;
  background: rgba(238, 242, 255, .92);
  color: #4f46e5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.map-page .event-feed-card > .event-feed-content > .event-status-badge {
  position: absolute;
  top: 0;
  right: 0;
}
:is(.map-page, .search-results-page) .event-status-badge.is-paid-top {
  border-color: #facc15;
  background: #0f172a;
  color: #fff;
}
:is(.map-page, .search-results-page) .event-status-badge.is-top-event {
  border-color: #6366f1;
  background: #0b0b0d;
  color: #fff;
}
:is(.map-page, .search-results-page) .event-status-badge.is-outlo-tip {
  border-color: rgba(5, 150, 105, .3);
  background: rgba(236, 253, 245, .96);
  color: #065f46;
}
.map-page .detail-event-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.map-page .detail-outlo-tip-note {
  margin: -6px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(16, 185, 129, .5);
  border-radius: 0 8px 8px 0;
  background: rgba(236, 253, 245, .62);
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.map-page .event-marker-tooltip .event-status-badge {
  margin-top: 5px;
  min-height: 19px;
  padding: 3px 7px;
  font-size: 10px;
}

/* Current-event emphasis follows the badge shown on the card. */
.map-page .filter-panel .event-feed-card.is-promoted:not(.is-promoted-top):not(.is-top-event) {
  border-color: rgba(124, 58, 237, .24);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .99) 2%,
    rgba(245, 243, 255, .97) 50%,
    rgba(234, 231, 255, .93) 100%
  );
  box-shadow: 0 5px 14px rgba(79, 70, 229, .065);
}

.map-page .filter-panel .event-feed-card.is-promoted-top[data-card-status="paid-top"] {
  border-color: rgba(217, 119, 6, .30);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .98) 2%,
    rgba(255, 251, 235, .97) 42%,
    rgba(255, 240, 207, .94) 100%
  );
  box-shadow:
    0 7px 18px rgba(180, 83, 9, .11),
    0 2px 5px rgba(146, 64, 14, .045);
}

.map-page .filter-panel .event-feed-card.is-top-event[data-card-status="top-event"] {
  border-color: rgba(168, 85, 247, .30);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .98) 2%,
    rgba(247, 243, 255, .97) 45%,
    rgba(252, 235, 249, .94) 100%
  );
  box-shadow:
    0 6px 16px rgba(126, 34, 206, .09),
    0 2px 5px rgba(79, 70, 229, .04);
}

.map-page .filter-panel .event-feed-card.is-top-event.is-selected[data-card-status="top-event"] {
  border-color: rgba(126, 34, 206, .68);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .98) 2%,
    rgba(247, 243, 255, .97) 45%,
    rgba(252, 235, 249, .94) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(126, 34, 206, .15),
    0 6px 15px rgba(126, 34, 206, .09);
}

.map-page .filter-panel .event-feed-card.is-outlo-tip {
  border-color: rgba(16, 185, 129, .24);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .99) 2%,
    rgba(241, 252, 247, .97) 50%,
    rgba(226, 247, 237, .93) 100%
  );
}

.map-page .filter-panel .event-feed-card.is-outlo-tip.is-selected {
  border-color: rgba(5, 150, 105, .58);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .99) 2%,
    rgba(241, 252, 247, .97) 50%,
    rgba(226, 247, 237, .93) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(5, 150, 105, .13),
    0 5px 13px rgba(5, 150, 105, .08);
}

.map-page .filter-panel .event-feed-card.is-promoted.is-selected:not(.is-promoted-top):not(.is-outlo-tip) {
  border-color: rgba(79, 70, 229, .64);
  box-shadow:
    inset 0 0 0 1px rgba(79, 70, 229, .14),
    0 5px 13px rgba(79, 70, 229, .075);
}

.map-page .filter-panel .event-feed-card.is-promoted-top.is-selected:not(.is-outlo-tip) {
  border-color: rgba(217, 119, 6, .48);
  box-shadow:
    inset 0 0 0 1px rgba(217, 119, 6, .10),
    0 8px 19px rgba(180, 83, 9, .13);
}

:is(.map-page, .search-results-page) .event-status-badge > span[aria-hidden="true"] {
  color: currentColor !important;
  fill: currentColor !important;
}

:is(.map-page, .search-results-page) .event-status-badge.is-paid-featured,
:is(.map-page, .search-results-page) .event-status-badge.is-paid-featured > span[aria-hidden="true"] {
  color: #4f46e5 !important;
}

:is(.map-page, .search-results-page) .event-status-badge.is-paid-top {
  color: #fff !important;
}
:is(.map-page, .search-results-page) .event-status-badge.is-paid-top > span[aria-hidden="true"] {
  color: #facc15 !important;
}
:is(.map-page, .search-results-page) .event-status-badge.is-top-event {
  color: #fff !important;
}
:is(.map-page, .search-results-page) .event-status-badge.is-top-event > span[aria-hidden="true"] {
  color: #fff !important;
}

/* Keep cover labels outside the gallery's clipping so status tooltips stay visible. */
.map-page .detail-cover {
  position: relative;
  display: grid;
  grid-template-areas: "cover";
}

.map-page .detail-cover .detail-image-gallery {
  grid-area: cover;
  height: 100%;
  min-height: 184px;
}

.map-page .detail-cover .detail-image-button,
.map-page .detail-cover .detail-image-button img {
  height: 100%;
}

/* Current-event cards form one calm, scan-friendly rhythm regardless of title length. */
.map-page .filter-panel .event-feed-card {
  height: 84px;
  min-height: 84px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.map-page .filter-panel .event-feed-card.has-thumb {
  grid-template-columns: 90px minmax(0, 1fr);
  padding-left: 4px;
}

.map-page .filter-panel .event-feed-thumb {
  width: 90px;
  height: 74px;
  border-radius: 9px;
}

.map-page .filter-panel .event-feed-content {
  min-height: 0;
  overflow: hidden;
}

.map-page .detail-cover .detail-heading-meta {
  position: relative;
  z-index: 3;
  grid-area: cover;
  align-self: start;
  flex-wrap: wrap;
  margin: 16px 50px 70px 16px;
  padding: 0;
}

/* Three status badges need room beside the event ID on photo covers. */
@media (min-width: 901px) {
  .map-page #detailPanel:has(.detail-identifier-meta:not([hidden])) .detail-cover:has(.detail-image-gallery:not([hidden])):has(.detail-event-statuses > .event-status-badge:nth-child(3)) .detail-heading-meta {
    margin-right: 136px;
  }
}

.map-page .detail-cover:has(.detail-image-gallery[hidden]) {
  display: block;
  min-height: 50px;
  padding: 16px 50px 0 16px;
}

.map-page .detail-cover:has(.detail-image-gallery[hidden]) .detail-heading-meta {
  margin: 0;
}

.map-page .detail-cover .detail-category-badge {
  background: color-mix(in srgb, var(--category-color) 12%, #fff);
}

/* Compact cover badges keep category, promotion and recognition readable together. */
.map-page .detail-heading-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
}

/* Category and recognition badges share one flow: only badges that do not fit
   continue on the next line instead of moving the whole status group. */
.map-page .detail-heading-meta .detail-event-statuses:not([hidden]) {
  display: contents;
}

.map-page .detail-heading-meta .detail-category-badge,
.map-page .detail-heading-meta .event-status-badge {
  box-sizing: border-box;
  min-height: 22px;
  height: 22px;
  margin: 0 !important;
  padding: 0 6px;
  gap: 3px;
  font-size: 10px;
  line-height: 1;
}

.map-page .detail-heading-meta .category-badge-icon,
.map-page .detail-heading-meta .category-badge-icon :is(svg, .category-art) {
  width: 12px;
  height: 12px;
}

.map-page .detail-heading-meta .event-status-badge[data-status-tooltip] {
  position: relative;
  cursor: help;
}

.map-page .detail-heading-meta .event-status-badge[data-status-tooltip]::after {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  background: rgba(15, 23, 42, .94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
  color: #fff;
  content: attr(data-status-tooltip);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity .14s ease, transform .14s ease;
  visibility: hidden;
  white-space: normal;
}

.map-page .detail-heading-meta .event-status-badge[data-status-tooltip]:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.map-page .detail-heading-meta .detail-event-statuses {
  flex-wrap: wrap;
  gap: 4px;
}

.map-page .detail-identifier-meta {
  position: absolute;
  z-index: 30;
  top: 16px;
  right: 56px;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 24px;
  margin: 0;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  text-align: right;
}

.map-page .detail-identifier-meta .detail-event-number {
  color: #64748b;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .map-page .detail-identifier-meta {
    position: fixed;
    top: calc(var(--detail-close-top, 10px) + 4px);
    right: calc(var(--detail-close-right, 10px) + 44px);
  }

  /* Reserve only the 34 px close target and one shared 4 px gap. */
  .map-page .detail-cover:has(.detail-image-gallery:not([hidden])) .detail-heading-meta {
    margin: 16px 36px 70px 16px;
  }

  .map-page .detail-cover:has(.detail-image-gallery[hidden]) {
    padding: 16px 36px 0 16px;
  }
}

.map-page .detail-event-tags {
  justify-self: start;
  margin: 2px 0 0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 560;
  letter-spacing: .03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}


.map-page .detail-title-block {
  display: grid;
  gap: 0;
  min-width: 0;
}

.map-page .detail-title-block .detail-heading-meta {
  margin-bottom: 8px;
}

.map-page .detail-title-block .detail-event-tags {
  margin-top: 6px;
}

.map-page .detail-title-block .detail-outlo-tip-note {
  margin-block: 2px 0;
}

#eventDialog .event-tags-field {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

#eventDialog .event-tags-field[hidden] {
  display: none !important;
}

#eventDialog .event-tags-field .field-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

#eventDialog .event-tags-field .field-title small {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
}

#eventDialog .event-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#eventDialog .event-tag-groups { display: grid; gap: 14px; }
#eventDialog .event-tag-choice-group { display: grid; gap: 8px; min-width: 0; }
#eventDialog .event-tag-group-heading { margin: 0; color: #454958; font-size: 13px; font-weight: 500; line-height: 1.5; }
#eventDialog .event-music-tag-group { padding-top: 14px; border-top: 1px solid #e8eaf1; }
#eventDialog .event-tag-choice-group[hidden],
#eventDialog .event-tag-group-heading[hidden] { display: none !important; }

#eventDialog .event-tag-search { display: grid; gap: 6px; margin: 0; color: var(--text-soft); font-size: 12px; }
#eventDialog .event-tag-search input { width: 100%; min-height: 40px; }
#eventDialog .event-tag-search[hidden],
#eventDialog .event-tag-search-status[hidden],
#eventDialog .event-tag-chip[hidden] { display: none !important; }
#eventDialog .event-tag-chips.is-searchable { max-height: 210px; overflow-y: auto; align-content: flex-start; padding: 3px; scrollbar-width: thin; }
#eventDialog .event-tag-search-status { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.5; }
@media (max-width: 700px) {
  #eventDialog .event-tag-chips.is-searchable .event-tag-chip { min-height: 40px; }
}

#eventDialog .event-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(100, 116, 139, .18);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

#eventDialog .event-tag-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#eventDialog .event-tag-chip:has(input:checked) {
  border-color: rgba(99, 102, 241, .38);
  background: #f5f3ff;
  color: var(--outlo-brand-text);
}

#eventDialog .event-tag-chip:hover {
  border-color: rgba(99, 102, 241, .3);
  background: #fafaff;
}

#eventDialog .event-tag-chip:has(input:focus-visible) {
  outline: 2px solid rgba(99, 102, 241, .46);
  outline-offset: 2px;
}

.map-page .filter-panel-brand {
  display: none;
}

.filter-panel-brand-row,
.filter-panel-toggle,
.filter-panel-reopen,
.filter-panel-handle {
  display: none;
}

/* Desktop map chrome without a header surface. Mobile keeps the existing topbar. */
@media (min-width: 901px) {
  .map-page .filter-panel {
    transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .18s ease, visibility .24s step-end;
    will-change: transform;
  }

  .map-page .map-layout.filter-panel-collapsed .filter-panel {
    transform: translateX(calc(-100% - 30px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .map-page .filter-panel-brand-row {
    display: flex;
    min-height: 51px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .map-page .filter-panel-brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .map-page .filter-panel-tagline {
    margin: 0 0 0 33px;
    color: #7c879d;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .map-page .filter-panel-brand-row .filter-panel-brand {
    margin-bottom: 0;
  }

  .map-page .filter-panel-handle {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    display: inline-grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 3px 12px rgba(15, 23, 42, .07);
    transform: none;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
  }

  .map-page .filter-panel-handle:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-hover);
    transform: none;
  }

.map-page .filter-panel-handle svg {
    width: var(--outlo-icon-md, 18px);
    height: var(--outlo-icon-md, 18px);
    fill: none;
    stroke: currentColor;
    stroke-width: var(--outlo-icon-stroke, 1.8);
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg);
    transition: transform .2s ease;
  }

  .map-page .map-layout.filter-panel-collapsed .filter-panel-handle {
    position: absolute;
    z-index: 700;
    top: 18px;
    left: 18px;
    color: var(--accent);
  }

  .map-page .map-layout.filter-panel-collapsed .filter-panel-handle svg {
    transform: rotate(0deg);
  }

  .map-page .filter-panel-handle::after {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    padding: 6px 9px;
    border-radius: 6px;
    background: #253047;
    color: #fff;
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .14s ease;
  }

  .map-page .filter-panel-handle:hover::after,
  .map-page .filter-panel-handle:focus-visible::after {
    opacity: 1;
  }

  .map-page .filter-panel-handle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .map-page .filter-panel-collapsed .filter-panel-handle::after {
    right: auto;
    left: 0;
  }

  .map-page .map-layout.filter-panel-collapsed .leaflet-top.leaflet-left,
  .map-page .map-layout.filter-panel-collapsed.detail-open .leaflet-top.leaflet-left {
    left: 18px;
  }

  .map-page .topbar.app-topbar {
    position: absolute !important;
    inset: 0 0 auto !important;
    z-index: 1100 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 20px !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    /* Keep search outside the desktop filter, even when account controls grow. */
    padding: 34px 32px 0 428px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    pointer-events: none;
  }

  .map-page .topbar.app-topbar::before,
  .map-page .topbar.app-topbar::after {
    content: none !important;
  }

  .map-page .topbar.app-topbar > * {
    pointer-events: auto;
  }

  .map-page .topbar.app-topbar > .brand-link {
    display: none !important;
  }

  .map-page .topbar.app-topbar .topbar-search {
    position: relative !important;
    grid-column: 1 !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    width: min(420px, 100%) !important;
    min-width: 0;
    transform: none !important;
  }

  .map-page .topbar.app-topbar .topbar-search input {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(15, 23, 42, .08);
    border-radius: 999px;
    padding-left: 46px;
    box-shadow:
      0 11px 30px rgba(15, 23, 42, .14),
      0 3px 8px rgba(15, 23, 42, .055);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .map-page .topbar.app-topbar .topbar-search input::placeholder {
    color: #8390a4;
  }

.map-page .topbar.app-topbar .topbar-search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #52637b;
    opacity: 1;
    fill: none !important;
    stroke: #52637b !important;
    stroke-width: var(--outlo-icon-stroke, 1.8);
    pointer-events: none;
  }

  .map-page .topbar.app-topbar .top-actions {
    position: relative !important;
    grid-column: 2 !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    width: auto !important;
    gap: 12px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none !important;
  }

  .map-page .topbar.app-topbar #newEventButton {
    align-self: center;
    margin: 0;
    border-radius: 14px;
    box-shadow: 0 9px 22px rgba(79, 70, 229, .20);
  }

  .map-page .topbar.app-topbar #loginLink,
  .map-page .topbar.app-topbar .user-menu-button {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(148, 163, 184, .28) !important;
    box-shadow: 0 9px 22px rgba(15, 23, 42, .10) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .map-page .topbar.app-topbar #loginLink,
  .map-page .topbar.app-topbar #userMenu {
    width: auto;
    min-width: 0;
    height: 42px;
    flex: 0 0 auto;
    margin-left: 0;
    border-radius: 14px;
  }

  .map-page .topbar.app-topbar #loginLink {
    justify-content: center;
    padding-inline: 14px 15px;
  }

  .map-page .topbar.app-topbar #userMenu .user-menu-button {
    width: auto;
    max-width: 190px;
    height: 42px;
    min-height: 42px;
    padding-inline: 10px;
  }

  .map-page .topbar.app-topbar #loginLink::before,
  .map-page .topbar.app-topbar #userMenu::before {
    content: none;
  }

  .map-page .topbar.app-topbar #userMenuName {
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-page .map-layout {
    height: 100vh !important;
    min-height: 640px;
    margin-top: 0 !important;
  }

  .map-page .filter-panel {
    top: 18px !important;
    bottom: 18px !important;
    max-height: none !important;
  }

  .map-page .filter-panel-brand {
    display: inline-flex;
    width: 118px !important;
    min-height: 33px;
    margin: 0 2px 15px;
    padding: 0 !important;
    background-size: contain;
    text-decoration: none;
  }

  .map-page .filter-panel-brand::before {
    content: none !important;
  }

  .map-page .map-layout .leaflet-top.leaflet-left {
    top: auto;
    right: auto;
    bottom: 18px;
    left: calc(min(392px, 100vw - 44px) + 30px);
    transition: left .22s ease;
  }

  .map-page .map-layout.detail-open .leaflet-top.leaflet-left {
    left: calc(min(392px, 100vw - 44px) + 30px);
  }

  .map-page .leaflet-control-zoom {
    margin: 0 !important;
    border: 1px solid rgba(148, 163, 184, .30) !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .11) !important;
    overflow: hidden;
    transition: border-color .16s ease, box-shadow .16s ease;
  }

  .map-page .leaflet-control-zoom a,
  .map-page .leaflet-control-zoom a:first-child,
  .map-page .leaflet-control-zoom a:last-child {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    line-height: 1;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #24324a;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transform: none;
    transition: background-color .16s ease, color .16s ease;
  }

  .map-page .leaflet-control-zoom a:first-child {
    border-bottom: 1px solid rgba(148, 163, 184, .24);
  }

  .map-page .leaflet-control-zoom a:hover,
  .map-page .leaflet-control-zoom a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .map-page .leaflet-control-zoom a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -3px;
  }

  .map-page .leaflet-control-zoom a.leaflet-disabled {
    color: #9ca3af;
    background: #f8fafc;
    cursor: not-allowed;
  }
}

@media (max-width: 900px) {
  .map-page .filter-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-page .filter-actions #useLocation {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .map-page .segmented-time {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 2px;
  }

  .map-page .segmented-time button {
    min-width: 0;
    padding-inline: 3px;
    font-size: 11.5px;
    white-space: nowrap;
  }
}

.mobile-search-toggle,
.mobile-search-close {
  display: none;
}

.map-page .topbar-search {
  z-index: 1300;
  overflow: visible;
}

.map-page .topbar.app-topbar {
  overflow: visible !important;
}

.map-page .global-search-suggestions:not([hidden]) {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.global-search-suggestions {
  position: absolute;
  z-index: 1400;
  top: calc(100% + 9px);
  left: 0;
  width: 100%;
  max-height: min(510px, calc(100vh - 110px));
  padding: 9px 8px 7px;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 19px;
  background: rgba(253, 253, 255, .99);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .15), 0 3px 10px rgba(15, 23, 42, .05);
}

.global-search-option {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 6px 9px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #172033;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.global-search-option + .global-search-option {
  margin-top: 4px;
}

.global-search-section + .global-search-section {
  margin-top: 14px;
}

.global-search-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 10px 6px;
}

.global-search-section-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #7b769f;
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.global-search-section-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
}

.global-search-section-icon svg {
  width: var(--outlo-icon-xs, 14px);
  height: var(--outlo-icon-xs, 14px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.global-search-section-count {
  padding: 3px 4px;
  margin: -3px -4px;
  color: var(--outlo-brand-text);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s ease;
}

.global-search-section-count:hover,
.global-search-section-count:focus-visible {
  border-radius: 7px;
  background: rgba(99, 102, 241, .08);
  color: var(--outlo-brand-text-hover);
}

.global-search-section--events .global-search-section-label {
  color: #5149bd;
}

.global-search-option:hover,
.global-search-option.is-active,
.global-search-option.is-previewing {
  background: #f2f1ff;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .07);
}

.global-search-option:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .23);
  outline-offset: -1px;
}

.global-search-option.is-previewing {
  box-shadow: inset 3px 0 0 rgba(99, 102, 241, .55);
}

.global-search-option.is-primary {
  background: rgba(244, 243, 255, .86);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .1);
}

.event-detail.is-search-preview,
.detail-panel.is-search-preview,
.event-detail.is-map-preview,
.detail-panel.is-map-preview {
  pointer-events: none;
}

.global-search-option-media {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, .14);
  border-radius: 11px;
  background: #f8f7ff;
  color: var(--outlo-brand-accent);
}

.global-search-option-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-search-option-media.is-avatar {
  border-radius: 50%;
  background: #efedff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.global-search-option--localities .global-search-option-media {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.global-search-option--localities .global-search-option-media svg {
  width: var(--outlo-icon-lg, 20px);
  height: var(--outlo-icon-lg, 20px);
  stroke-width: var(--outlo-icon-stroke, 1.8);
}

.global-search-option-media.is-event-fallback {
  background: color-mix(in srgb, var(--search-category-color) 12%, #fff);
  border-color: color-mix(in srgb, var(--search-category-color) 30%, #dbe4ef);
  color: color-mix(in srgb, var(--search-category-color) 84%, #0f172a);
}

.global-search-option--events {
  grid-template-columns: 96px minmax(0, 1fr) 18px;
  min-height: 66px;
}

.global-search-option--events .global-search-option-media.is-event,
.global-search-option--events .global-search-option-media.is-event-fallback {
  width: 96px;
  height: 54px;
  border-radius: 8px;
}

.global-search-option--events .global-search-option-media.is-event-fallback .category-art {
  transform: scale(var(--search-category-art-scale, 1));
  transform-origin: center;
  color: inherit;
}

/* The supplied category masks have different transparent margins. Normalize their
   optical footprint only inside autocomplete fallbacks, not in the shared pins. */
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-hudebni { --search-category-art-scale: 1.03; }
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-festivaly { --search-category-art-scale: 1.1; }
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-kulturni { --search-category-art-scale: 1.2; }
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-sport { --search-category-art-scale: 1.22; }
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-auto-moto { --search-category-art-scale: 1.08; }
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-gastro { --search-category-art-scale: .94; }
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-trhy { --search-category-art-scale: 1.14; }
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-priroda { --search-category-art-scale: 1.06; }
.global-search-option--events .global-search-option-media.is-event-fallback .category-art-ostatni { --search-category-art-scale: 1.04; }

.global-search-option-media.is-event-fallback svg,
.global-search-option-media.is-icon svg,
.global-search-option-arrow {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.global-search-option-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.global-search-option-copy strong,
.global-search-option-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-option-copy strong {
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.global-search-option-copy > span {
  color: #718096;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.3;
}

.global-search-option-title-text {
  color: inherit;
  font: inherit;
}

.global-search-match {
  color: var(--outlo-brand-text);
  font-weight: 700;
}

.global-search-option-arrow {
  color: #94a3b8;
}

.global-search-state {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px 18px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.global-search-state strong {
  color: #344158;
  font-size: 13px;
  font-weight: 680;
}

.global-search-state-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  border-radius: 50%;
  background: #f1f0ff;
  color: var(--outlo-brand-accent);
}

.global-search-state-icon svg {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;

  stroke-linejoin: round;
}

.global-search-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  margin: 10px -8px -7px;
  padding: 0 15px;
  border-top: 1px solid rgba(226, 232, 240, .74);
  border-radius: 0 0 18px 18px;
  background: rgba(248, 249, 255, .74);
  color: var(--outlo-brand-text);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.global-search-all-copy {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.global-search-all-copy svg {
  width: var(--outlo-icon-sm, 16px);
  height: var(--outlo-icon-sm, 16px);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--outlo-icon-stroke, 1.8);
  stroke-linecap: round;

  stroke-linejoin: round;
}

.global-search-all:hover {
  color: var(--outlo-brand-text-hover);
}

@media (max-width: 900px) {
  .map-page .mobile-search-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    color: #334155;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .09);
  }

.map-page .mobile-search-toggle[aria-expanded="true"] {
    border-color: rgba(79, 70, 229, .34);
    background: #f3f2ff;
    color: var(--outlo-brand-accent);
  }

  .map-page .topbar-search.is-mobile-open {
    position: fixed !important;
    z-index: 1100;
    top: calc(var(--topbar-height) + 8px) !important;
    right: auto !important;
    left: 11px !important;
    display: flex !important;
    width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    transform: none !important;
  }

  .map-page .topbar-search.is-mobile-open input {
    width: 100%;
    min-height: 46px;
    padding-right: 46px;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
  }

  .map-page .topbar-search.is-mobile-open .mobile-search-close {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 7px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    box-shadow: none;
    transform: translateY(-50%);
  }

  .map-page .topbar-search.is-mobile-open .mobile-search-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .map-page .topbar-search.is-mobile-open .global-search-suggestions {
    top: calc(100% + 7px);
    max-height: calc(100vh - var(--topbar-height) - 82px);
    border-radius: 14px;
  }
}

/* The admin editor runs in an iframe and must remain isolated from map chrome.
   Keep this override last so later desktop/mobile map rules cannot reveal it. */
body.map-page.embedded-event-editor > .topbar.app-topbar,
body.map-page.embedded-event-editor > .map-layout,
body.map-page.embedded-event-editor > #toast,
body.map-page.embedded-event-editor > #organizerWelcomeDialog,
body.map-page.embedded-event-editor > #eventCreateGuideDialog {
  display: none !important;
}

/* Let the title flow under its badge instead of reserving a permanent empty column. */
.map-page .filter-panel .event-feed-card.is-promoted .event-card-top,
.map-page .filter-panel .event-feed-card.is-top-event .event-card-top,
.map-page .filter-panel .event-feed-card.is-outlo-tip .event-card-top {
  padding-right: 0;
}

.map-page .filter-panel .event-card-top > .event-status-badge {
  position: relative;
  top: auto;
  right: auto;
  float: right;
  margin: 0 0 3px 7px;
}

.map-page .filter-panel .event-card-title {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

/* The detail panel must always show the complete source title, never an ellipsis. */
.map-page .detail-content h2 {
  display: block;
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  /* The detail image sits above the content; never reserve its old side column. */
  margin-right: 0;
  min-height: 0;
}

/* Final desktop detail hierarchy: keep the event panel lighter than the map. */
@media (min-width: 901px) {
  .map-page .detail-content {
    gap: 22px;
  }

  .map-page .detail-content h2 {
    font-size: clamp(24px, 1.8vw, 26px);
    font-weight: var(--outlo-weight-heading, 650);
    line-height: 1.12;
  }

  .map-page .detail-description {
    color: var(--outlo-text-secondary, #526077);
    font-size: var(--outlo-text-body, 14px);
    line-height: 1.6;
  }

  .map-page .detail-content dt {
    font-size: var(--outlo-text-caption, 12px);
    font-weight: var(--outlo-weight-regular, 400);
  }

  .map-page .detail-content dd {
    font-size: var(--outlo-text-meta, 13px);
    font-weight: var(--outlo-weight-label, 500);
    line-height: 1.5;
  }
}

/* Management actions share one calm row; promotion remains a separate optional action. */
.map-page .detail-management-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 10px;
  align-items: stretch;
}

.map-page .detail-management-actions .detail-management-label {
  grid-column: 1 / -1;
  order: 0;
}

.map-page .detail-management-actions #editEventButton {
  order: 1;
  width: 100%;
}

.map-page .detail-management-actions .detail-report-menu {
  order: 2;
  width: 100%;
}

.map-page .detail-management-actions .detail-report-menu .report-menu-trigger {
  width: 100%;
}

.map-page .detail-management-actions #promoteEventButton {
  grid-column: 1 / -1;
  order: 3;
  justify-self: stretch;
}

.map-page .detail-management-actions:has(#editEventButton[hidden]) {
  grid-template-columns: 1fr;
}

/* The current-event list intentionally never grows beyond two title lines. */
.map-page .filter-panel .event-card-title {
  display: -webkit-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

/* Detail refinements: compact metadata, calm secondary actions, and a scroll header. */
@media (min-width: 901px) {
  .map-page .detail-content {
    gap: 18px;
  }

  .map-page .detail-content dl {
    gap: 12px;
  }

  .map-page .detail-content dl div {
    min-height: 46px;
  }
}

.map-page .detail-information-action #externalButton {
  min-height: var(--outlo-control-height, 44px);
  border-color: rgba(100, 116, 139, .25);
  background: #fff;
  box-shadow: none;
  color: var(--outlo-brand-text);
  font-size: 12.5px;
  font-weight: 600;
}

.map-page .detail-information-action #externalButton:hover,
.map-page .detail-information-action #externalButton:focus-visible {
  border-color: rgba(79, 70, 229, .28);
  background: #fafbff;
  box-shadow: none;
  color: var(--outlo-brand-text-hover);
}

/* Route, external information and utilities form one compact action group. */
.detail-ticket-action:not([hidden]) {
  display: grid;
  min-width: 0;
}

.detail-ticket-action .detail-ticket-link {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid var(--outlo-brand-border);
  background: var(--outlo-brand-soft);
  color: var(--outlo-brand-text);
  font-weight: 650;
  box-shadow: none;
}

.detail-ticket-action .detail-ticket-link:hover {
  border-color: var(--outlo-brand-border-hover);
  background: var(--outlo-brand-soft-hover);
  color: var(--outlo-brand-text-hover);
  box-shadow: none;
}

.detail-ticket-action .detail-ticket-link:focus-visible {
  outline: 3px solid var(--outlo-brand-accent);
  outline-offset: 3px;
}

.detail-ticket-action .detail-ticket-domain {
  display: block;
  margin-top: 3px;
  color: #6b638b;
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.map-page .detail-action-block {
  display: grid;
  gap: 9px;
  margin-bottom: 1px;
}

.map-page .detail-action-block .detail-primary-actions,
.map-page .detail-action-block .detail-information-action,
.map-page .detail-action-block .detail-secondary-actions {
  margin: 0;
}

.map-page .detail-action-block .detail-secondary-actions > * {
  min-height: var(--outlo-control-height, 44px) !important;
  border-color: rgba(100, 116, 139, .18);
  border-radius: var(--outlo-control-radius, 12px) !important;
  box-shadow: none !important;
  font-weight: 580 !important;
}

.map-page .detail-media-row,
.map-page .detail-media-row.is-spotify {
  border-color: rgba(148, 163, 184, .26);
  background: #fff;
  color: #1e293b;
  box-shadow: none;
}

.map-page .detail-media-row:hover,
.map-page .detail-media-row.is-spotify:hover {
  border-color: rgba(29, 185, 84, .32);
  background: #f8fffa;
}

.map-page .detail-media-row strong {
  color: #1e293b;
  font-weight: 620;
}

.map-page .detail-media-row small,
.map-page .detail-media-row.is-spotify small {
  color: #64748b;
}

/* The provider registry supplies the accent color; the detail keeps one calm, shared layout. */
.map-page .detail-media-row.is-music-provider {
  border-color: rgba(148, 163, 184, .24);
  background: color-mix(in srgb, var(--music-provider-color) 3%, #fff);
}

.map-page .detail-media-row.is-music-provider:hover,
.map-page .detail-media-row.is-music-provider:focus-visible {
  border-color: color-mix(in srgb, var(--music-provider-color) 26%, #cbd5e1);
  background: color-mix(in srgb, var(--music-provider-color) 6%, #fff);
}

.map-page .detail-media-row.is-music-provider .detail-media-play {
  background: var(--music-provider-color);
}

.map-page .detail-media-row.is-music-provider small {
  color: #64748b;
}

.map-page .detail-media-row.is-music-provider .detail-music-provider {
  color: color-mix(in srgb, var(--music-provider-color) 68%, #334155);
}

.map-page .detail-section {
  display: grid;
  width: 100%;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
}

.map-page .detail-organizer-section {
  margin-top: 2px;
}

.map-page .detail-management-actions {
  margin: 2px 0 0;
  padding-top: 0;
  border-top: 0;
  row-gap: 8px;
  justify-items: stretch;
}

.map-page .detail-section > p {
  justify-self: start;
  margin: 0;
}

.map-page .detail-organizer-section > p,
.map-page .detail-management-label {
  color: #8491a5;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .065em;
}

.map-page .detail-management-actions .detail-report-menu .report-menu-trigger {
  min-height: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  box-shadow: none;
  font-weight: 540;
}

.map-page .detail-management-actions #editEventButton {
  min-height: var(--outlo-control-height, 44px);
  height: auto;
  padding: var(--outlo-control-padding-block, 10px) var(--outlo-control-padding-inline, 14px);
  border-radius: var(--outlo-control-radius, 12px);
}

.map-page .detail-management-actions #promoteEventButton {
  grid-column: 2;
  order: 2;
  width: 100%;
  min-height: var(--outlo-control-height, 44px);
  height: auto;
  padding: var(--outlo-control-padding-block, 10px) var(--outlo-control-padding-inline, 14px);
  border-radius: var(--outlo-control-radius, 12px);
}

.map-page .detail-management-actions .detail-report-menu {
  grid-column: 1;
  order: 3;
  width: fit-content;
  justify-self: start;
}

.map-page .detail-management-actions .detail-report-menu .report-menu-trigger {
  width: fit-content;
  justify-content: flex-start;
}

.map-page .detail-management-actions:has(#promoteEventButton[hidden]) .detail-report-menu {
  grid-column: 1;
}

.map-page .detail-organizer-card #favoriteOrganizerButton {
  min-height: var(--outlo-control-height-compact, 36px) !important;
  padding: var(--outlo-control-padding-block-compact, 7px) var(--outlo-control-padding-inline-compact, 12px) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

.map-page .detail-organizer-card {
  min-height: 48px;
  padding: 3px 8px;
}

.map-page .detail-organizer-avatar {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.map-page .detail-management-actions .detail-report-menu .report-menu-trigger {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #64748b;
}

.map-page .detail-management-actions .detail-report-menu .report-menu-trigger:hover,
.map-page .detail-management-actions .detail-report-menu .report-menu-trigger:focus-visible {
  border-color: transparent;
  background: #fff7f8;
  box-shadow: none;
  color: #be123c;
}

/* One shared public identity mark for the existing verified organizer state. */
.organizer-name-line,
.public-organizer-name-line,
.global-search-option-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.public-organizer-name-line h1 {
  margin: 0;
}

.organizer-verified-badge {
  position: relative;
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  flex: 0 0 17px;
  color: var(--outlo-brand-text);
  vertical-align: -2px;
}

.organizer-verified-badge svg {
  display: block;
  width: 17px;
  height: 17px;
  overflow: visible;
}

.organizer-verified-seal {
  fill: currentColor;
  stroke: #fff;
  stroke-width: .45;
  stroke-linejoin: round;
}

.organizer-verified-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .organizer-verified-badge::after {
    content: "Ověřený pořadatel";
    position: absolute;
    z-index: 1500;
    left: 50%;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 180px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 7px;
    background: #172033;
    color: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .16);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 3px);
    transition: opacity .14s ease, transform .14s ease;
    visibility: hidden;
  }

  .organizer-verified-badge:hover::after,
  .organizer-verified-badge:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
  }
}

/* Mobile detail is a full sheet below the app bar; report choices expand vertically. */
@media (max-width: 900px) {
  .map-page .detail-panel {
    top: calc(var(--topbar-height) + 12px);
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: none;
    border-radius: var(--detail-panel-radius);
  }
}

@media (min-width: 901px) {
  .map-page .detail-report-menu-panel {
    right: 0;
    left: auto;
    max-width: 100%;
  }

}

.user-menu-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 11px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.user-menu-identity .nav-user-avatar {
  width: 40px;
  height: 40px;
}

.user-menu-identity-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-menu-identity-copy strong,
.user-menu-identity-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-identity-copy strong {
  color: #182033;
  font-size: 14px;
  font-weight: 680;
}

.user-menu-identity-copy small {
  color: #738096;
  font-size: 12px;
}

.user-menu-section-label {
  margin-top: 8px;
  padding: 12px 11px 4px;
  border-top: 1px solid var(--line);
  color: #738096;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* The profile's attention count deliberately shares the bell's compact red badge. */
:is(.topbar.app-topbar, .admin-modern) #userMenuBadge:not([hidden]) {
  position: absolute;
  z-index: 3;
  top: var(--profile-badge-top, -6px);
  left: var(--profile-badge-left, 25px);
  right: var(--profile-badge-right, auto);
  display: inline-grid !important;
  min-width: var(--profile-badge-size, 19px);
  height: var(--profile-badge-size, 19px);
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e23b62 !important;
  color: #fff !important;
  box-shadow: var(--profile-badge-shadow, 0 2px 7px rgba(159, 18, 57, .22)) !important;
  font-size: 10px;
  font-weight: var(--profile-badge-weight, 850);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.admin-modern #userMenuButton { position: relative; overflow: visible; }
@media (max-width: 720px) {
  .admin-modern #userMenuButton {
    --profile-badge-top: -5px;
    --profile-badge-left: auto;
    --profile-badge-right: -5px;
    --profile-badge-size: 18px;
    --profile-badge-weight: 800;
    --profile-badge-shadow: 0 2px 6px rgba(159, 18, 57, .24);
  }
}

@media (min-width: 901px) {
  .topbar.app-topbar #userMenuButton {
    position: relative;
    max-width: 190px;
    min-width: 0;
    overflow: visible;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
  }

  .topbar.app-topbar #userMenuButton[aria-expanded="true"] {
    border-color: rgba(99, 102, 241, .34) !important;
    background: #f7f7ff !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .08) !important;
  }

  .topbar.app-topbar #userMenuButton .nav-chevron {
    transition: transform .16s ease;
  }

  .topbar.app-topbar #userMenuName {
    min-width: 0;
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar.app-topbar #userMenuButton[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
  }

}

/* Mobile navigation keeps the brand visible while moving account details into the menu. */
@media (max-width: 900px) {
  :root { --topbar-height: 66px; }

  .map-page .topbar.app-topbar { z-index: 1100; }

  .topbar.app-topbar {
    min-height: 66px !important;
    height: 66px !important;
    padding: 6px 10px !important;
    column-gap: 8px !important;
  }

  .topbar.app-topbar .brand-text-only {
    width: 110px !important;
    min-width: 110px !important;
    min-height: 34px !important;
  }

  .topbar.app-topbar .top-actions {
    gap: 8px !important;
  }

  .topbar.app-topbar #newEventButton {
    min-height: 42px !important;
    height: 42px !important;
    padding: 6px 11px 6px 8px !important;
    gap: 6px !important;
  }

  .topbar.app-topbar #newEventButton > span {
    font-size: 0 !important;
  }

  .topbar.app-topbar #newEventButton > span::after {
    content: "Přidat";
    font-size: 13px;
    font-weight: 650;
  }

  .topbar.app-topbar #loginLink,
  .topbar.app-topbar #userMenu,
  .topbar.app-topbar #userMenuButton {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    flex: 0 0 42px !important;
  }

  .topbar.app-topbar #loginLink,
  .topbar.app-topbar #userMenuButton {
    display: grid !important;
    place-items: center;
    position: relative;
    overflow: visible;
  }

  .topbar.app-topbar #loginLink[hidden],
  .topbar.app-topbar #userMenu[hidden] {
    display: none !important;
  }

  .topbar.app-topbar #loginLink > span,
  .topbar.app-topbar #userMenuName,
  .topbar.app-topbar #userMenuBadge[hidden] {
    display: none !important;
  }

  .topbar.app-topbar #userMenuButton {
    --profile-badge-top: -5px;
    --profile-badge-left: auto;
    --profile-badge-right: -5px;
    --profile-badge-size: 18px;
    --profile-badge-weight: 800;
    --profile-badge-shadow: 0 2px 6px rgba(159, 18, 57, .24);
  }
.topbar.app-topbar #userMenuButton .nav-chevron,
  .topbar.app-topbar #loginLink::after {
    position: absolute;
    z-index: 2;
    right: -2px;
    bottom: -2px;
    display: grid !important;
    width: 15px !important;
    height: 15px !important;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #eef0ff;
    color: var(--outlo-brand-accent);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .16);
    pointer-events: none;
  }

  .topbar.app-topbar #userMenuButton .nav-chevron {
    padding: 2px;
    stroke-width: 2.5;
  }

  .topbar.app-topbar #loginLink::after {
    content: "";
    background-color: #eef0ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235146dc' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 11px 11px;
  }

  .topbar.app-topbar #loginLink::before,
  .topbar.app-topbar #userMenu::before {
    content: none !important;
    display: none !important;
  }

  .topbar.app-topbar #loginLink .nav-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .topbar.app-topbar #userMenuButton .nav-user-avatar {
    width: 34px;
    height: 34px;
  }

  .topbar.app-topbar .user-menu-identity {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 12px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
  }

  .topbar.app-topbar .user-menu-identity .nav-user-avatar {
    width: 36px;
    height: 36px;
  }

  .topbar.app-topbar .user-menu-identity-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .topbar.app-topbar .user-menu-identity-copy strong,
  .topbar.app-topbar .user-menu-identity-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar.app-topbar .user-menu-identity-copy strong {
    color: #182033;
    font-size: 14px;
    font-weight: 650;
  }

  .topbar.app-topbar .user-menu-identity-copy small {
    color: #738096;
    font-size: 12px;
  }
}

/* Phone landscape keeps the map primary without introducing a separate layout. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 950px) {
  .map-page { --topbar-height: 48px; }

  .map-page .topbar.app-topbar {
    min-height: 48px !important;
    height: 48px !important;
    padding: 3px 10px !important;
    column-gap: 6px !important;
    border-radius: 0 0 10px 10px !important;
  }

  .map-page .topbar.app-topbar .brand-text-only {
    width: 96px !important;
    min-height: 30px !important;
  }

  .map-page .topbar.app-topbar .top-actions { gap: 4px !important; }

  .map-page .topbar.app-topbar .nav-item,
  .map-page .topbar.app-topbar .user-menu-button,
  .map-page .topbar.app-topbar #newEventButton,
  .map-page .topbar.app-topbar #loginLink,
  .map-page .topbar.app-topbar .mobile-search-toggle {
    min-height: 38px !important;
    height: 38px !important;
    padding: 4px 9px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
  }

.map-page .topbar.app-topbar .nav-icon {
    width: var(--outlo-icon-md, 18px) !important;
    height: var(--outlo-icon-md, 18px) !important;
  }

  .map-page .topbar.app-topbar #newEventButton .nav-icon {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    aspect-ratio: 1;
    padding: 4px !important;
    border-radius: 50% !important;
  }

  .map-page .filter-panel {
    --sheet-collapsed-offset: calc(100% - 48px);
    height: min(74dvh, 480px) !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .map-page .mobile-sheet-header {
    min-height: 48px;
    padding: 11px 10px 3px;
    border-radius: 16px 16px 0 0;
  }

  .map-page .mobile-sheet-handle > .mobile-sheet-grip {
    top: 4px;
    width: 32px;
    height: 3px;
  }

  .map-page .mobile-sheet-handle {
    min-height: 40px;
    margin-top: -5px;
    padding-top: 5px;
  }

  .map-page .mobile-sheet-summary { padding-left: 6px; }
  .map-page .mobile-sheet-summary strong { font-size: 13px; }

  .map-page .mobile-filters-toggle {
    min-height: 34px;
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 12px;
  }

.map-page .mobile-filters-toggle svg {
    width: var(--outlo-icon-md, 18px);
    height: var(--outlo-icon-md, 18px);
  
  stroke-linejoin: round;
}
}

/* Global autocomplete remains available on every page that uses the shared navigation. */
.topbar.app-topbar .global-search-suggestions:not([hidden]),
.global-search-host .global-search-suggestions:not([hidden]) {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .topbar.app-topbar .mobile-search-toggle,
  .global-search-host .mobile-search-toggle {
    display: inline-grid !important;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, .28) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #334155 !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .09) !important;
  }

.topbar.app-topbar .mobile-search-toggle[aria-expanded="true"],
  .global-search-host .mobile-search-toggle[aria-expanded="true"] {
    border-color: rgba(79, 70, 229, .34) !important;
    background: #f3f2ff !important;
    color: var(--outlo-brand-accent) !important;
  }

  .topbar.app-topbar .topbar-search.is-mobile-open,
  .global-search-host .topbar-search.is-mobile-open {
    position: fixed !important;
    z-index: 1800 !important;
    top: calc(var(--topbar-height) + 8px) !important;
    right: auto !important;
    left: 12px !important;
    display: flex !important;
    width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  .topbar-search.is-mobile-open input {
    width: 100% !important;
    min-height: 46px !important;
    padding: 10px 82px 10px 45px !important;
    border: 1px solid rgba(148, 163, 184, .34) !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16) !important;
  }

  .topbar-search.is-mobile-open .topbar-search-clear {
    right: 44px;
  }

  .topbar-search.is-mobile-open .mobile-search-close {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 7px;
    display: inline-grid !important;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    box-shadow: none;
    transform: translateY(-50%);
  }

  .topbar-search.is-mobile-open .mobile-search-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .topbar-search.is-mobile-open .global-search-suggestions {
    top: calc(100% + 7px);
    max-height: calc(100dvh - var(--topbar-height) - 82px);
    border-radius: 14px;
  }
}

/* Event detail metadata shares one deliberate rhythm, regardless of value length. */
.map-page .detail-content dl {
  row-gap: 14px;
}

.map-page .detail-content dl > div {
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 0;
}

.map-page .detail-content .detail-date-stack,
.map-page .detail-content .detail-place-stack {
  gap: 4px;
}

/* Keep the metadata and its first action visually connected. */
.map-page .detail-action-block {
  margin-top: -8px;
}

/* Search title text stays one word even when part of it is highlighted. */
.map-page .global-search-option-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-page .global-search-option-copy mark {
  padding-inline: 0;
}

@media (max-width: 900px) {
  .map-page .detail-content dl {
    row-gap: 12px;
  }

  .map-page .detail-content dl > div {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 7px;
  }
}

/* Tablets and narrow desktop windows keep the map-first filter sheet. */
@media (min-width: 901px) and (max-width: 1120px) {
  .map-page .topbar.app-topbar {
    padding-inline: 32px !important;
  }

  /* Center search against the viewport, not the grid space left of the actions. */
  .map-page .topbar.app-topbar .topbar-search {
    position: absolute !important;
    grid-column: 1 / -1 !important;
    top: 0 !important;
    left: 50% !important;
    width: min(420px, calc(100vw - 280px)) !important;
    transform: translateX(-50%) !important;
  }
  body.map-page {
    overflow: hidden !important;
  }

  .map-page .map-layout {
    height: var(--app-viewport-height) !important;
    min-height: 0 !important;
    margin-top: 0 !important;
  }

  .map-page .filter-panel {
    --sheet-collapsed-offset: calc(100% - 78px);
    position: absolute !important;
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 1050 !important;
    width: auto !important;
    height: min(80dvh, 680px) !important;
    max-height: calc(var(--app-viewport-height) - 20px) !important;
    padding: 0 14px 16px !important;
    overflow: hidden;
    border: 1px solid rgba(229, 234, 240, .72) !important;
    border-radius: 26px 26px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -1px 0 rgba(99, 102, 241, .12), 0 -12px 34px rgba(15, 23, 42, .13) !important;
    transform: translate3d(0, var(--sheet-collapsed-offset), 0) !important;
    transition: transform .36s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease !important;
    will-change: transform;
    contain: layout paint;
  }

  .map-page .filter-panel.sheet-overview {
    transform: translate3d(0, 0, 0) !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .map-page .filter-panel.is-dragging {
    transform: translate3d(0, var(--sheet-drag-offset, 0px), 0) !important;
    transition: none !important;
  }

  .map-page .filter-panel-brand-row,
  .map-page .panel-hero,
  .map-page .filter-panel .search-panel-section,
  .map-page .filter-panel-handle {
    display: none !important;
  }

  .map-page .filter-panel:not(.sheet-overview) > :not(.mobile-sheet-header) {
    display: none !important;
  }

  .map-page .filter-panel.sheet-overview .panel-section {
    padding: 10px 0;
  }

  .map-page .filter-panel.sheet-overview .segmented-time {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .map-page .mobile-sheet-header {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 78px;
    margin: 0 -14px;
    padding: 20px 14px 7px;
    border-bottom: 1px solid transparent;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(90deg, transparent 8%, rgba(99, 102, 241, .22) 50%, transparent 92%) top / 100% 1px no-repeat, #fff;
    box-shadow: none;
  }

  .map-page .filter-panel.sheet-overview .mobile-sheet-header {
    border-bottom-color: rgba(226, 232, 240, .72);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .035);
  }

  .map-page .mobile-sheet-handle {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin: -7px 0 0;
    padding: 9px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    touch-action: none;
    user-select: none;
  }

  .map-page .mobile-sheet-handle > .mobile-sheet-grip {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
    pointer-events: none;
    transform: translateX(-50%);
  }

  .map-page .filter-panel.is-dragging .mobile-sheet-handle > .mobile-sheet-grip {
    width: 48px;
    background: #8292a6;
  }

  .map-page .mobile-sheet-summary,
  .map-page .filter-panel.sheet-overview .mobile-sheet-summary {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 5px;
    padding-left: 10px;
  }

  .map-page .mobile-sheet-summary strong,
  .map-page .filter-panel.sheet-overview .mobile-sheet-summary strong {
    color: #172033;
    font-size: 16px;
    font-weight: 760;
    line-height: 1.05;
  }

  .map-page .mobile-sheet-summary small {
    color: #8793a5;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.1;
  }

  .map-page .mobile-filters-toggle,
  .map-page .filter-panel.sheet-overview .mobile-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    margin-right: 2px;
    padding: 6px 9px;
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: 999px;
    background: #f7f7ff;
    color: var(--outlo-brand-accent);
    box-shadow: 0 2px 7px rgba(79, 70, 229, .07);
    font-size: 12px;
    font-weight: 650;
  }

.map-page .mobile-filters-toggle svg {
    width: var(--outlo-icon-md, 18px);
    height: var(--outlo-icon-md, 18px);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: var(--outlo-icon-stroke, 1.8);
  
  stroke-linejoin: round;
}

  .map-page .mobile-active-filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    border-radius: 999px;
    background: var(--outlo-brand-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 750;
  }

  .map-page .mobile-active-filter-count[hidden] {
    display: none;
  }

  .map-page .map-layout .leaflet-top.leaflet-left,
  .map-page .map-layout.detail-open .leaflet-top.leaflet-left {
    top: 96px !important;
    bottom: auto !important;
    left: 14px !important;
  }
}

/* Keep the centered search clear of the account actions before the mobile nav takes over. */
@media (min-width: 901px) and (max-width: 1120px) {
  .map-page .topbar.app-topbar #allEventsLink,
  .map-page .topbar.app-topbar #userMenuButton {
    width: 42px;
    min-width: 42px;
    padding-inline: 6px !important;
    justify-content: center;
  }

  .map-page .topbar.app-topbar #allEventsLink > span,
  .map-page .topbar.app-topbar #userMenuName,
  .map-page .topbar.app-topbar #userMenuButton .nav-chevron {
    display: none;
  }
}

/* Final public-event image ratios. Kept here to supersede the legacy compact layouts. */
.map-page .filter-panel .event-feed-card.has-thumb {
  grid-template-columns: 104.7px minmax(0, 1fr);
}

.map-page .filter-panel .event-feed-thumb {
  width: 104.7px;
  height: 72px;
  aspect-ratio: 16 / 11;
}

/* Current-event cards share one fixed rhythm. A missing image gets the same
   media slot, while a status sits on the cover instead of changing text flow. */
.map-page .filter-panel .event-feed-card {
  grid-template-columns: 104.7px minmax(0, 1fr);
  height: 88px;
  min-height: 88px;
  padding: 7px;
  gap: 8px;
  align-items: center;
  overflow: hidden;
}

.map-page .filter-panel .event-feed-card.has-thumb {
  grid-template-columns: 104.7px minmax(0, 1fr);
  padding-left: 7px;
}

.map-page .filter-panel .event-feed-thumb {
  position: relative;
  display: grid;
  width: 104.7px;
  height: 72px;
  overflow: hidden;
  border-radius: 9px;
  background: #eff4fa;
}

.map-page .filter-panel .event-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.map-page .filter-panel .event-feed-thumb-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 13%, #f8fbff);
}

.map-page .filter-panel .event-feed-thumb-fallback .category-art {
  width: 56px;
  height: 56px;
}

.map-page .filter-panel .event-feed-thumb > .event-status-badge {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  max-width: calc(100% - 10px);
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  box-shadow: var(--event-badge-shadow, 0 2px 7px rgba(15, 23, 42, .16));
}

/* Cover statuses stay readable but no longer dominate the event artwork. */
.map-page .filter-panel #eventList .event-feed-thumb > .event-status-badge {
  gap: 2px;
  min-height: 0;
  top: auto;
  bottom: 3px;
  left: 3px;
  padding: 4px 6px;
}

.map-page .filter-panel #eventList .event-feed-thumb > .event-status-badge.is-paid-featured {
  border-color: #6366f1;
}

.map-page .filter-panel #eventList .event-feed-thumb > .event-status-badge.is-outlo-tip {
  border-color: #059669;
}

.map-page .filter-panel .event-feed-thumb > .event-status-badge > span[aria-hidden="true"] {
  font-size: 9px;
  line-height: 1;
}

/* Current-event cards use a tighter corner language than the larger filter surfaces. */
.map-page .filter-panel #eventList .event-feed-card {
  border-radius: 11px;
}

.map-page .filter-panel #eventList .event-feed-thumb {
  border-radius: 10px 0 0 10px;
}

.map-page .filter-panel #eventList .event-feed-card::after {
  border-radius: 0 10px 10px 0;
}

.map-page .filter-panel .event-distance {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.map-page .filter-panel .event-feed-content {
  display: grid;
  grid-template-rows: auto 14px 14px;
  align-content: start;
  min-height: 72px;
  gap: 2px;
  overflow: hidden;
}

.map-page .filter-panel .event-card-title {
  display: -webkit-box !important;
  height: auto;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.map-page .filter-panel .event-feed-line {
  min-width: 0;
  min-height: 14px;
  overflow: hidden;
}

.global-search-option--events {
  grid-template-columns: 86.4px minmax(0, 1fr) 18px;
}

.global-search-option--events .global-search-option-media.is-event,
.global-search-option--events .global-search-option-media.is-event-fallback {
  width: 86.4px;
  height: 54px;
  aspect-ratio: 16 / 10;
}

.map-page .detail-cover .detail-image-gallery {
  height: auto !important;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.map-page .detail-cover .detail-image-button,
.map-page .detail-cover .detail-image-button:not([hidden]),
.map-page .detail-cover .detail-image-button img {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
}

.search-event-media:not(.has-image) {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.search-event-media.has-image {
  display: block;
  min-height: 0;
}

.search-event-primary-image {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
}

.search-event-thumbs img {
  aspect-ratio: 16 / 9;
}

.search-results-compact .search-event-detail {
  grid-template-columns: 112px minmax(0, 1fr);
}

.search-results-compact .search-event-media,
.search-results-compact .search-event-primary-image {
  width: 112px;
  min-height: 0;
  height: 63px;
  max-height: none;
  aspect-ratio: 16 / 9;
}

.public-organizer-event {
  grid-template-columns: 128px minmax(0, 1fr) 22px;
}

.public-organizer-event img,
.public-organizer-event-placeholder {
  width: 128px;
  height: 72px;
  aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
  .search-results-compact .search-event-detail {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .search-results-compact .search-event-media,
  .search-results-compact .search-event-primary-image {
    width: 100px;
    height: 56.25px;
  }

  .public-organizer-event {
    grid-template-columns: 96px minmax(0, 1fr) 18px;
  }

  .public-organizer-event img,
  .public-organizer-event-placeholder {
    width: 96px;
    height: 54px;
  }
}
.events-heading .event-ranking-hint {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

/* The event-detail composer shares the organizer promotion flow, but keeps its event fixed. */
#promotionConfirmDialog .promotion-confirm-dialog {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - 30px);
  overflow: hidden;
}

#promotionConfirmDialog .promotion-confirm-content {
  display: grid;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 20px 24px;
  overscroll-behavior: contain;
}

#promotionConfirmDialog .dialog-head {
  flex: 0 0 auto;
  margin: 0;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--promo-line);
}

#promotionConfirmDialog .dialog-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin: 0;
  padding: 14px 24px;
  border-top: 1px solid var(--promo-line);
  background: #fafbfc;
}

#promotionConfirmDialog .promotion-chosen-event {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--promo-line);
}

#promotionConfirmDialog .promotion-chosen-event > [data-admin-icon] {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--promo-action);
}

#promotionConfirmDialog .promotion-chosen-event > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#promotionConfirmDialog .promotion-field-caption,
#promotionConfirmDialog #promotionConfirmOrganizer {
  color: var(--promo-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#promotionConfirmDialog #promotionConfirmEventTitle {
  color: var(--promo-ink);
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#promotionConfirmDialog fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#promotionConfirmDialog fieldset > legend {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 10px;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: var(--promo-ink);
  font-size: 13px;
  font-weight: 650;
  white-space: normal;
}

#promotionConfirmDialog :is(.promotion-tier-options, .promotion-offer-options, .promotion-credit-sources) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#promotionConfirmDialog .promotion-tier-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--promo-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

#promotionConfirmDialog .promotion-tier-choice span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#promotionConfirmDialog .promotion-tier-choice strong { font-size: 14px; }
#promotionConfirmDialog .promotion-tier-choice small { color: var(--promo-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
#promotionConfirmDialog .promotion-tier-choice input { width: 16px; height: 16px; min-height: 0; flex: 0 0 16px; margin: 3px 0 0; padding: 0; accent-color: var(--promo-accent); }
#promotionConfirmDialog .promotion-tier-choice:has(input:checked) { border-color: var(--promo-accent); background: var(--promo-tint); box-shadow: inset 0 0 0 1px var(--promo-accent); }
#promotionConfirmDialog :is(.promotion-tier-choice, .promotion-offer-card, .promotion-credit-source):has(input:focus-visible) { outline: 3px solid var(--promo-accent-line); outline-offset: 3px; }

#promotionConfirmDialog .promotion-offer-meta { display: block; color: var(--promo-action); font-size: 12px; font-weight: 600; line-height: 1.5; }
#promotionConfirmDialog .promotion-offer-meta:empty { display: none; }

#promotionConfirmDialog .promotion-custom-period {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

#promotionConfirmDialog .promotion-preview-disclosure > summary {
  width: fit-content;
  padding: 4px 0;
  color: var(--promo-action);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#promotionConfirmDialog .promotion-preview-disclosure > summary:focus-visible {
  outline: 3px solid var(--promo-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

#promotionConfirmDialog .promotion-campaign-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--promo-line);
  border-radius: 8px;
  background: #fafbff;
}

#promotionConfirmDialog .promotion-campaign-summary .promo-order-summary {
  margin: 0;
}

#promotionConfirmDialog .promotion-campaign-summary > p {
  margin: 0;
  color: var(--promo-muted);
  font-size: 12px;
  line-height: 1.5;
}

#promotionConfirmDialog .promotion-campaign-summary.is-warning {
  border-color: #ecdaa7;
  background: #fffaed;
  color: #775317;
}

@media (max-width: 700px) {
  #promotionConfirmDialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  #promotionConfirmDialog .promotion-confirm-dialog { max-height: calc(100dvh - 18px); }
  #promotionConfirmDialog .dialog-head { padding: 16px; }
  #promotionConfirmDialog .promotion-confirm-content { gap: 16px; padding: 16px; }
  #promotionConfirmDialog .dialog-actions { padding: 12px 16px; }
  #promotionConfirmDialog :is(.promotion-tier-options, .promotion-offer-options, .promotion-credit-sources, .promotion-custom-period) { grid-template-columns: 1fr; }
  #promotionConfirmDialog .promotion-tier-choice { padding: 10px; gap: 6px; }
  #promotionConfirmDialog .promotion-tier-choice strong { font-size: 13px; }
  #promotionConfirmDialog input:not([type=radio]):not([type=hidden]) { font-size: 16px; }
}

/* Compact sheet controls share the existing two-position map panel. */
@media (max-width: 1120px) {
  .map-page .filter-panel {
    --sheet-peek-height: 72px;
    --sheet-collapsed-offset: calc(100% - var(--sheet-peek-height)) !important;
  }

  .map-page .filter-panel .mobile-sheet-header {
    position: relative !important;
    top: auto;
    min-height: var(--sheet-peek-height) !important;
    padding: 18px 16px 10px !important;
    gap: 12px;
    box-shadow: none !important;
  }

  .map-page .filter-panel .mobile-sheet-header .mobile-sheet-handle {
    min-height: 44px;
    margin: 0;
    padding: 0;
  }

  .map-page .filter-panel .mobile-sheet-handle span:not(.mobile-sheet-grip) {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    transform: none;
  }

  .map-page .filter-panel .mobile-sheet-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .map-page .filter-panel .mobile-sheet-header .mobile-sheet-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 0;
    flex-wrap: wrap;
  }

  .map-page .filter-panel .mobile-sheet-header .mobile-sheet-summary strong {
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .map-page .filter-panel .mobile-sheet-summary small {
    color: #748196;
    font-size: 12px;
    line-height: 1.15;
  }

.map-page .filter-panel .mobile-sheet-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--outlo-brand-text);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.2;
    white-space: nowrap;
  }

.map-page .filter-panel .mobile-sheet-action svg {
    width: var(--outlo-icon-xs, 14px);
    height: var(--outlo-icon-xs, 14px);
    flex: 0 0 var(--outlo-icon-xs, 14px);
    fill: none;
    stroke: currentColor;
    stroke-width: var(--outlo-icon-stroke, 1.8);
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .map-page .filter-panel.sheet-expanded .mobile-sheet-action svg {
    transform: rotate(180deg);
  }

  .map-page .filter-panel .mobile-sheet-header .mobile-sheet-grip {
    top: 7px;
    width: 36px;
    height: 4px;
    background: #a4aec0;
  }

  .map-page .filter-panel .mobile-sheet-header .mobile-filters-toggle {
    min-height: 44px;
    margin: 0;
    padding: 9px 13px;
    border-radius: 999px;
    border-color: #ddd9f4;
    background: #faf9ff;
    box-shadow: none;
    font-size: 13px;
  }

.map-page .filter-panel .mobile-sheet-header .mobile-filters-toggle svg {
    width: var(--outlo-icon-md, 18px);
    height: var(--outlo-icon-md, 18px);
  }

  .map-page #map .leaflet-bottom.leaflet-right {
    bottom: var(--sheet-attribution-bottom, 88px);
    right: 8px;
  }

  .map-page #map .leaflet-control-attribution {
    max-width: calc(100vw - 16px);
    margin: 0;
  }
}

@media (max-width: 600px) {
  .map-page #map .leaflet-control-attribution {
    min-height: 22px;
    padding: 2px 5px;
    background: rgb(255 255 255 / 80%);
    color: #334155;
    font-size: 11px;
    line-height: 16px;
  }
  .map-page #map .leaflet-control-attribution a { text-decoration: none; }
  .map-page #map .leaflet-control-attribution a:is(:hover, :focus-visible) { text-decoration: underline; }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 950px) {
  .map-page .filter-panel { --sheet-peek-height: 56px; }
  .map-page .filter-panel .mobile-sheet-header { padding: 10px 14px 2px !important; }
  .map-page .filter-panel .mobile-sheet-header .mobile-sheet-grip { top: 4px; height: 3px; }
  .map-page .filter-panel .mobile-sheet-copy { gap: 2px; }
  .map-page .filter-panel .mobile-sheet-header .mobile-sheet-summary strong { font-size: 15px; }
}

/* Keep the signed-in bell slot stable while its module loads. */
@media (min-width: 1051px) {
  .topbar.app-topbar.has-session-token .top-actions {
    gap: 8px !important;
  }
  .topbar.app-topbar.has-session-token #userMenu {
    margin-left: 0 !important;
  }

  .topbar.app-topbar.has-session-token #notificationBell[hidden] {
    display: flex !important;
    visibility: hidden;
    flex: 0 0 44px;
    width: 44px;
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .map-page .topbar.app-topbar.has-session-token .top-actions {
    gap: 8px !important;
  }
}

/* Category labels have no outline; cover labels retain their light backdrop. */
:is(.category-badge, .detail-category-badge) { border: 0; }

/* Recognition badges share a moderately stronger colored halo. */
.event-status-badge {
  --badge-glow-color: #6366f1;
  --event-badge-shadow: 0 0 4px color-mix(in srgb, var(--badge-glow-color) 64%, transparent),
    0 0 15px color-mix(in srgb, var(--badge-glow-color) 46%, transparent),
    0 0 24px color-mix(in srgb, var(--badge-glow-color) 24%, transparent);
  box-shadow: var(--event-badge-shadow);
}
.event-status-badge.is-outlo-tip { --badge-glow-color: #059669; }
.event-status-badge.is-paid-top { --badge-glow-color: #facc15; }
.event-status-badge.is-top-event { --badge-glow-color: #6366f1; }
/* Keep the neighboring category above badge halos; badge tooltips remain at z-index 30. */
.map-page .detail-heading-meta > .detail-category-badge {
  position: relative;
  z-index: 1;
}
@media (forced-colors: active) {
  .event-status-badge {
    --event-badge-shadow: none;
  }
}
