/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css");

:root {
  font-family: "Inter", "Space Grotesk", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #040308;
  color: #f5f7fb;
  color-scheme: dark light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% -10%, #3551ff 0%, #07101c 47%),
    radial-gradient(circle at 80% -20%, rgba(67, 198, 229, 0.78) 0%, transparent 47%),
    linear-gradient(180deg, #091327 0%, #03070d 72%);
  color: #eef2ff;
}

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

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-feature-settings: "liga" on, "calt" on;
}

.legal-page {
  max-width: 860px;
  gap: 24px;
}

.legal-lede {
  max-width: 720px;
  margin: 0 auto;
  color: #cdd7ff;
}

.legal-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px 24px;
  line-height: 1.7;
}

.legal-section h2 {
  margin-top: 0;
  color: #9ac8ff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #dde4ff;
}

.legal-section a {
  color: #72f5a0;
}

.legal-back {
  text-align: center;
  margin-top: 12px;
}

.legal-back a {
  color: #72f5a0;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  padding: 32px 0 48px;
  text-align: center;
  color: #a5b4ff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-footer a {
  color: #72f5a0;
  font-weight: 600;
}


.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0;
  letter-spacing: -0.04em;
  text-transform: none;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  letter-spacing: 0.2em;
  display: inline-flex;
  justify-content: center;
}

.hero-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 16px;
}

.hero-title-link:focus-visible {
  outline: 2px solid #72f5a0;
  outline-offset: 6px;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #8cb4ff;
  margin: 0;
}

.hero .lede {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.hero .support {
  margin: 0 auto;
  max-width: 680px;
  font-size: 1.05rem;
  color: #d1dbff;
  line-height: 1.6;
  white-space: pre-line;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f6f9ff;
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: border 0.2s, transform 0.2s;
}

.filter-chip small {
  font-size: 0.7rem;
  color: #9fb7ff;
}

.filter-chip.active {
  border-color: #72f5a0;
  background: rgba(114, 245, 160, 0.1);
  transform: translateY(-2px);
}

.map-panel {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 20, 0.9);
  z-index: 0;
}

.map-shell {
  width: 100%;
  height: min(70vh, 640px);
  position: relative;
  z-index: 0;
}

.map-shell-canvas {
  width: 100%;
  height: 100%;
}

.map-panel > .map-shell {
  height: clamp(900px, 96vh, 1120px);
}

.map-outside-mask {
  position: absolute;
  background: rgba(9, 12, 22, 0.38);
  -webkit-backdrop-filter: saturate(0.7);
          backdrop-filter: saturate(0.7);
  pointer-events: none;
  z-index: 650;
}

.map-allowed-frame {
  position: absolute;
  border: 1.5px dashed rgba(140, 180, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(8, 12, 22, 0.18);
  border-radius: 18px;
  pointer-events: none;
  z-index: 651;
}

.map-allowed-frame-compact {
  border-radius: 14px;
}

.map-spotlight-overlay-anchor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  z-index: 1250;
  cursor: pointer;
}

.floating-add {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff6fd8, #7850ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(120, 80, 255, 0.5);
  cursor: pointer;
}

.floating-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.map-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8cb4ff;
}

.error-banner {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 138, 138, 0.12);
  border: 1px solid rgba(255, 138, 138, 0.35);
  color: #ffbdbd;
  text-align: center;
  font-weight: 600;
}

.success-banner,
.warning-banner,
.pending-banner {
  padding: 14px 18px;
  border-radius: 18px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-shadow: none;
}

.success-banner {
  background: linear-gradient(180deg, rgba(29, 94, 62, 0.97), rgba(21, 74, 48, 0.97));
  border: 1px solid rgba(166, 247, 198, 0.42);
  color: #f6fff9;
  box-shadow: 0 12px 26px rgba(10, 32, 20, 0.28);
}

.warning-banner {
  background: rgba(255, 166, 58, 0.16);
  border: 1px solid rgba(255, 166, 58, 0.46);
  color: #ffd39a;
}

.pending-banner {
  background: rgba(120, 145, 255, 0.12);
  border: 1px solid rgba(120, 145, 255, 0.38);
  color: #d7e2ff;
}

.map-density-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  margin: 0;
  padding: 8px 14px;
  max-width: calc(100% - 120px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 17, 38, 0.76);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  font-size: 0.82rem;
  line-height: 1.25;
  color: #dce7ff;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-copy {
  margin: 4px 0 0;
  font-weight: 600;
}

.submission-guidance {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -12px;
}

.submission-disclaimer {
  margin: 0;
  text-align: left;
}

.motivation {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 22px;
}

.motivation-card h3 {
  margin: 0 0 12px;
}

.motivation-card ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.motivation-card li {
  margin-bottom: 6px;
  color: #c8dafe;
}

.motivation-note {
  margin: 0;
  color: #72f5a0;
  font-weight: 600;
}

.list-panel {
  background: rgba(4, 6, 18, 0.8);
  border-radius: 32px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(24px);
          backdrop-filter: blur(24px);
}

.list-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin: 0 0 6px;
  color: #a6b1ff;
}

.disclaimer {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: #9fb2ff;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 12px 16px;
}

.hero-disclaimer {
  max-width: 720px;
  margin-top: 20px;
}

.map-disclaimer {
  text-align: center;
  margin: 16px auto 40px;
  max-width: 760px;
}

.list-panel h2 {
  margin: 0;
  font-size: 1.8rem;
}

.top-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.05)
    ),
    rgba(12, 14, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 40px rgba(5, 7, 17, 0.7);
  transition: border 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.post-thumb-button {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  align-self: flex-start;
  text-align: left;
  display: block;
  width: 100%;
  max-width: 160px;
}

.post-thumb-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
  border-radius: 18px;
}

.post-thumb {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: flex-start;
}

.post-thumb.mini {
  padding: 0;
}

.mini-preview {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  position: relative;
}

.post-thumb.mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-thumb.platform-instagram .mini-preview {
  background: #000;
}

.post-thumb.platform-instagram img {
  object-fit: contain;
}

.thumb-fallback {
  font-size: 0.8rem;
  text-align: center;
  padding: 8px;
  color: #f3f3f3;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.post-info {
  min-width: 0;
}

.post-excerpt {
  margin: -2px 0 0;
  color: #5f6f8f;
  font-size: 0.94rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #f6f8ff;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-meta {
  margin: 0;
  color: #95a3d9;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.post-liked-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(40, 199, 111, 0.16);
  border: 1px solid rgba(40, 199, 111, 0.34);
  color: #6ef0a5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.post-liked-badge svg {
  width: 14px;
  height: 14px;
}

.post-author {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  text-decoration: none;
  color: #c9d8ff;
}

.post-author:hover {
  color: #ffffff;
}

.post-author-avatar,
.post-author-avatar-fallback {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex: 0 0 auto;
}

.post-author-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
}

.popup-author-avatar-fallback svg,
.post-author-avatar-fallback svg {
  width: 14px;
  height: 14px;
}

.post-author-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 600;
}

.event-meta {
  margin-top: 8px;
}

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

.ghost,
.like-button,
.primary {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.ghost.reported {
  border-color: rgba(255, 128, 128, 0.6);
  color: #ffb3b3;
}

.like-button {
  background: rgba(255, 255, 255, 0.15);
}

.like-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.like-button.liked {
  background: linear-gradient(135deg, #ffa9fb, #ffdd73);
  color: #0a0b14;
  opacity: 1;
  box-shadow: 0 10px 25px rgba(255, 169, 251, 0.35);
  cursor: not-allowed;
}

.like-button.liked svg {
  color: #0a0b14;
}

.primary {
  background: linear-gradient(135deg, #00ffc6, #5a68ff);
  border: none;
}

.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty {
  text-align: center;
  color: #97a0c9;
  margin: 0;
  padding: 32px 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 10, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: max(12px, env(safe-area-inset-top)) 20px 20px;
  z-index: 2000;
}

.modal-card {
  background: #040611;
  border-radius: 28px;
  width: min(720px, 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  max-height: calc(100dvh - 28px);
  overflow: auto;
}

.modal-card.instagram-modal {
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  overflow-x: hidden;
}

.share-card {
  max-width: 520px;
}

.share-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-media {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.share-body code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  font-size: 0.9rem;
  word-break: break-all;
}

.share-actions {
  display: flex;
  gap: 10px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #040611;
  padding-top: 2px;
}

.modal-header > div {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 56px);
}

.modal-close-inline {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
  margin-left: auto;
}

.modal-close-floating {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 2200;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(4, 6, 17, 0.94);
  color: #f4f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.popup-title-clamped {
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popup-title-clamped-2 {
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popup-title-mobile-compact {
  white-space: pre-line;
}

.popup-author {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #c9d8ff;
  max-width: 100%;
}

.popup-author:hover {
  color: #ffffff;
}

.popup-author-avatar,
.popup-author-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex: 0 0 auto;
}

.popup-author-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.popup-author-name {
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.modal-body.video-scroll-body {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  padding-bottom: 6px;
}

.modal-body.instagram-body {
  height: auto;
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1;
  min-height: 0;
  padding-right: 0;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.modal-card.tiktok-modal {
  max-height: 94vh;
  overflow: hidden;
  overflow-x: hidden;
}

.modal-body.tiktok-body {
  height: auto;
  max-height: calc(94vh - 170px);
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1;
  min-height: 0;
  padding-right: 0;
  -webkit-overflow-scrolling: touch;
}

.modal-card.instagram-modal .viewer.instagram-embed.aspect-9-16,
.modal-card.instagram-modal .viewer.instagram-preview.aspect-9-16 {
  width: 100%;
  max-width: min(100%, 520px);
  aspect-ratio: 9 / 16;
  height: auto;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.field input,
.field select {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 8, 20, 0.9);
  color: #f9fbff;
}

.field.checkbox-field {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.field.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

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

.date-picker-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.date-picker-row input {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.date-picker-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
}

.inline-search-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.inline-search-field input {
  flex: 1 1 auto;
  min-width: 0;
}

.search-place-button {
  justify-content: center;
  white-space: nowrap;
}

.place-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.place-search-result {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #edf2ff;
  border-radius: 14px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.place-search-result:hover {
  border-color: rgba(90, 136, 255, 0.75);
  background: rgba(90, 136, 255, 0.16);
}

.place-search-result.active {
  border-color: rgba(114, 245, 160, 0.8);
  background: rgba(114, 245, 160, 0.18);
}

.place-search-result span {
  font-size: 0.85rem;
  line-height: 1.35;
  color: #d9e6ff;
}

.place-search-result strong {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9bcff;
}

.location-picked {
  margin: 0;
  color: #a9bcff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-map .map-shell {
  height: 320px;
  border-radius: 24px;
}

.form-message {
  color: #ff8a8a;
  margin: 0;
  font-size: 0.85rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

.modal-footer.actions {
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.viewer {
  width: min(100%, 720px);
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  position: relative;
  display: flex;
  margin: 0 auto;
  justify-content: center;
}

.instagram-media {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
}

.viewer.external {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.post-thumb .viewer,
.post-thumb .viewer * {
  pointer-events: none;
}

.post-thumb .viewer {
  width: 100%;
  max-width: none;
  border-radius: 12px;
  min-height: auto;
}

.post-thumb.mini .viewer {
  width: 100%;
  height: 100%;
}

.post-thumb .viewer iframe,
.post-thumb .viewer img {
  object-fit: cover;
}

.mini-preview.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.mini-preview.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

.viewer.external img {
  object-fit: cover;
}

.article-lead-block {
  width: min(100%, 720px);
  margin: 14px auto 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 18, 34, 0.72);
  border: 1px solid rgba(144, 169, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-lead-text {
  margin: 0;
  color: #eef4ff;
  font-size: 0.98rem;
  line-height: 1.6;
}

.article-read-more {
  align-self: flex-start;
  text-decoration: none;
  color: #8db4ff;
  font-weight: 700;
}

.article-read-more:hover {
  color: #b8d0ff;
}

.viewer .viewer-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer.instagram-embed .viewer-media {
  object-fit: contain;
  background: #000;
}

.external-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.external-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.external-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.viewer.facebook-post-embed {
  background: #f8f9fb;
}

.viewer.facebook-post-embed.aspect-9-16 {
  max-width: min(100%, 460px);
}

.viewer.facebook-post-embed iframe {
  background: #fff;
}

.viewer.instagram-embed {
  width: 100%;
  margin: 0 auto;
  display: block;
  background: #000;
  position: relative;
  overflow: hidden;
}

.viewer.instagram-embed .video-frame,
.viewer.tiktok-local-video .video-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.viewer.instagram-embed video,
.viewer.tiktok-local-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.viewer.instagram-embed .instagram-media {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  display: block !important;
  background: #000;
}

.viewer.instagram-embed .instagram-media iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.viewer.tiktok-embed-viewer {
  background: #000;
  position: relative;
  overflow: hidden;
}

.viewer.tiktok-embed-viewer iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.viewer.instagram-preview .viewer-media {
  object-fit: contain;
  background: #000;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}

.aspect-9-16 {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
}

.aspect-1-1 iframe,
.aspect-9-16 iframe {
  height: 100%;
}

.aspect-instagram-post {
  aspect-ratio: 646 / 867;
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
}

.like-tooltip {
  display: none;
}

.pin-icon-wrapper {
  display: block;
}

.pin-cluster-wrapper {
  display: block;
}

.pin-spotlight-wrapper {
  display: block;
  background: transparent !important;
  border: 0 !important;
}

.pin-cluster {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #86b8ff, #3a63ff 70%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 26px rgba(19, 33, 84, 0.52);
  font-weight: 800;
  font-size: 0.92rem;
}

.pin-icon {
  width: 46px;
  height: 50px;
  border-radius: 50% 50% 44% 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.pin-letter {
  letter-spacing: 0.08em;
}

.pin-icon.pending {
  background: linear-gradient(135deg, #6e7588, #535a6e) !important;
}

@keyframes spotlight-pin-glow {
  0% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 34px rgba(61, 122, 255, 0.46);
  }
  50% {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 24px 42px rgba(114, 245, 160, 0.54);
  }
  100% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 34px rgba(61, 122, 255, 0.46);
  }
}

.pin-icon.spotlight {
  animation: spotlight-pin-glow 1.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.pin-icon-highlight .pin-icon {
  box-shadow:
    0 0 0 4px rgba(114, 245, 160, 0.45),
    0 0 0 9px rgba(114, 245, 160, 0.2),
    0 16px 28px rgba(0, 0, 0, 0.45);
  animation: pin-highlight-pulse 1.45s ease-in-out infinite;
}

@keyframes pin-highlight-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes validating-pin-pulse {
  0% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 16px 28px rgba(216, 120, 32, 0.42);
  }
  50% {
    transform: translateZ(0) scale(1.08);
    box-shadow: 0 20px 32px rgba(246, 165, 58, 0.58);
  }
  100% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 16px 28px rgba(216, 120, 32, 0.42);
  }
}

.pin-icon.pending.validating {
  background: linear-gradient(135deg, #f6a53a, #d87820) !important;
  animation: validating-pin-pulse 1.1s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, box-shadow;
}

.pin-status-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #d5d9e7;
  color: #2d3346;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.57rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  font-weight: 700;
}

.pin-icon.pending.validating .pin-status-badge {
  background: #ffe0b3;
  color: #713f10;
}

@media (prefers-reduced-motion: reduce) {
  .pin-icon.pending.validating,
  .pin-icon.spotlight {
    animation: none;
  }
}

.pin-icon.event-pin {
  height: 60px;
}

.pin-like {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #0a0b14;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  font-weight: 600;
}

.pin-like::before {
  content: "❤️";
  font-size: 0.7rem;
  margin-right: 4px;
}

.pin-event-date,
.pin-event-time {
  position: absolute;
  left: -10px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.54rem;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pin-event-date {
  top: auto;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  background: rgba(255, 233, 138, 0.98);
  color: #5a3b00;
  padding: 1px 6px;
  font-size: 0.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.pin-event-time {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 12, 24, 0.92);
  color: #f4f7ff;
  padding-inline: 8px;
}

.pin-icon.event-pin .pin-letter {
  display: none;
}

.pin-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 20px;
  background: inherit;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-top: none;
  box-shadow: 0 16px 22px rgba(0, 0, 0, 0.35);
}

.pin-icon.platform-youtube,
.pin-icon.platform-youtubeShort {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.pin-icon.platform-tiktok {
  background: linear-gradient(135deg, #00f5a0, #00d9f5);
}

.pin-icon.platform-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.pin-icon.platform-twitter {
  background: linear-gradient(135deg, #0f1419, #2f3644);
}

.pin-icon.platform-facebook {
  background: linear-gradient(135deg, #1877f2, #21a1ff);
}

.pin-icon.platform-linkedin {
  background: linear-gradient(135deg, #0a66c2, #74c0ff);
}

.map-spotlight-card {
  position: relative;
  width: var(--spotlight-width, 196px);
  pointer-events: auto;
  cursor: pointer;
  transform: translate(var(--spotlight-shift-x, -50%), var(--spotlight-shift-y, calc(-100% - 18px)));
}

.map-spotlight-shell {
  position: relative;
  height: var(--spotlight-shell-height, 166px);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 28, 0.96);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.map-spotlight-stem {
  position: absolute;
  background: rgba(10, 14, 28, 0.96);
}

.map-spotlight-card.placement-top .map-spotlight-stem {
  left: calc(var(--spotlight-anchor-x, 98px) - 13px);
  bottom: -19px;
  width: 26px;
  height: 20px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.map-spotlight-card.placement-bottom .map-spotlight-stem {
  left: calc(var(--spotlight-anchor-x, 98px) - 13px);
  top: -19px;
  width: 26px;
  height: 20px;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.map-spotlight-card.placement-left .map-spotlight-stem {
  top: calc(var(--spotlight-anchor-y, 83px) - 13px);
  right: -19px;
  width: 20px;
  height: 26px;
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.map-spotlight-card.placement-right .map-spotlight-stem {
  top: calc(var(--spotlight-anchor-y, 83px) - 13px);
  left: -19px;
  width: 20px;
  height: 26px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.map-spotlight-media {
  position: relative;
  width: 100%;
  height: 96px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.map-spotlight-media-backdrop {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  filter: blur(14px) brightness(0.72);
  transform: scale(1.14);
}

.map-spotlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.12), rgba(8, 10, 18, 0.22));
}

.map-spotlight-thumb {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  pointer-events: none;
}

.map-spotlight-thumb.web-article-thumb {
  object-fit: cover;
  object-position: top center;
}

.map-spotlight-thumb.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.map-spotlight-thumb.fallback.platform-youtube,
.map-spotlight-thumb.fallback.platform-youtubeShort {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.map-spotlight-thumb.fallback.platform-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.map-spotlight-thumb.fallback.platform-tiktok {
  background: linear-gradient(135deg, #00f5a0, #00d9f5);
}

.map-spotlight-thumb.fallback.platform-facebook {
  background: linear-gradient(135deg, #1877f2, #21a1ff);
}

.map-spotlight-content {
  padding: 10px 12px 12px;
  pointer-events: none;
}

.map-spotlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.map-spotlight-platform,
.map-spotlight-likes {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cfe0ff;
}

.map-spotlight-title {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-spotlight-event {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: #b9cbff;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .map-spotlight-card {
    width: var(--spotlight-width, 168px);
  }

  .map-spotlight-shell {
    height: var(--spotlight-shell-height, 148px);
  }

  .map-spotlight-media {
    height: 84px;
  }

  .map-spotlight-media-backdrop {
    filter: blur(12px) brightness(0.74);
  }

  .map-spotlight-content {
    padding: 9px 10px 10px;
  }

  .map-spotlight-title {
    font-size: 0.78rem;
  }
  .page-shell {
    padding: 20px 16px 80px;
  }

  .map-panel {
    border-radius: 24px;
  }

  .map-panel > .map-shell {
    height: min(64vh, 480px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .floating-add {
    top: 16px;
    right: 16px;
  }

  .post-actions {
    width: 100%;
    justify-content: space-between;
  }

  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: max(8px, env(safe-area-inset-top)) 12px 14px;
  }

  .modal-card {
    padding: 18px;
    border-radius: 22px;
    margin-top: 8px;
    max-height: calc(100dvh - 22px);
  }

  .modal-card.instagram-modal,
  .modal-card.tiktok-modal {
    max-height: calc(100dvh - 20px);
  }

  .modal-close-floating {
    display: none !important;
  }

  .floating-add {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-density-banner {
    max-width: calc(100% - 24px);
    white-space: normal;
  }

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

  .date-picker-row {
    flex-direction: row;
  }

  .inline-search-field {
    flex-direction: column;
  }

  .inline-search-field .search-place-button {
    width: 100%;
  }

  .modal-card.instagram-modal .viewer.instagram-embed,
  .modal-card.instagram-modal .viewer.instagram-preview {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    margin-left: auto;
    margin-right: auto;
  }

  .modal-card.tiktok-modal .viewer.aspect-9-16 {
    max-width: 100%;
  }

  .modal-card.instagram-modal .viewer.instagram-embed .instagram-media,
  .modal-card.instagram-modal .viewer.instagram-embed iframe,
  .modal-card.instagram-modal .viewer.instagram-embed video,
  .modal-card.instagram-modal .viewer.instagram-embed .video-frame,
  .modal-card.instagram-modal .viewer.instagram-preview .viewer-media {
    width: 100% !important;
    height: 100% !important;
  }
}
.viewer.instagram-photo img {
  object-fit: contain;
  background: #000;
}

.viewer.instagram-photo blockquote {
  margin: 0;
}

.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.admin-filter {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e5ecff;
  background: transparent;
  font-weight: 700;
  font-size: 0.92rem;
}

.admin-filter.active {
  border-color: rgba(114, 245, 160, 0.85);
  background: rgba(114, 245, 160, 0.15);
  color: #a5ffc5;
}

html[data-theme="light"] .admin-filter {
  border-color: rgba(110, 157, 220, 0.3) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #204b78 !important;
}

html[data-theme="light"] .admin-filter.active {
  border-color: rgba(46, 111, 188, 0.65) !important;
  background: rgba(191, 224, 255, 0.9) !important;
  color: #123a64 !important;
}

html[data-theme="dark"] .admin-filter {
  border-color: rgba(151, 181, 237, 0.24) !important;
  background: rgba(19, 28, 56, 0.9) !important;
  color: #e8f0ff !important;
}

html[data-theme="dark"] .admin-filter.active {
  border-color: rgba(114, 245, 160, 0.85) !important;
  background: rgba(114, 245, 160, 0.2) !important;
  color: #d8ffe8 !important;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.admin-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 24, 0.9);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #000;
}

.admin-meta {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #cbdaff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-location-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-location-block .post-meta {
  margin: 0;
}

.admin-location-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #0d1024;
}

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

.admin-form {
  max-width: 420px;
  margin: 70px auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
  background: rgba(4, 6, 18, 0.9);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-reviewers {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 24, 0.85);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-reviewers-header h2 {
  margin: 2px 0 4px;
}

.admin-reviewer-create {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-reviewer-create button {
  min-height: 42px;
}

.admin-reviewer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.admin-reviewer-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 15, 34, 0.92);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-reviewer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #cbdaff;
}

.admin-reviewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-reviewer-reset {
  display: flex;
  gap: 8px;
  align-items: end;
}

.admin-reviewer-reset .field {
  flex: 1 1;
}

.admin-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-pagination-summary {
  margin: 0;
}

.admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-pagination.bottom {
  justify-content: center;
}

.admin-page-link {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  text-decoration: none;
  color: #dce7ff;
  font-size: 0.85rem;
  min-width: 34px;
  text-align: center;
  background: transparent;
}

.admin-page-link:hover {
  border-color: rgba(114, 245, 160, 0.65);
}

.admin-page-link.active {
  border-color: rgba(114, 245, 160, 0.85);
  background: rgba(114, 245, 160, 0.18);
  color: #b8ffcf;
}

.admin-page-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.admin-synthetic {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 24, 0.85);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-synthetic-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-synthetic-header-row h2 {
  margin: 2px 0 4px;
}

.admin-synthetic-enabled-form {
  margin-top: 4px;
}

.admin-synthetic-enabled-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #e9f0ff;
  letter-spacing: 0.03em;
  -webkit-user-select: none;
          user-select: none;
}

.admin-synthetic-enabled-toggle input {
  width: 22px;
  height: 22px;
}

.admin-synthetic-settings-shell {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 12, 27, 0.82);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-synthetic-settings-shell h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #e6ecff;
  letter-spacing: 0.03em;
}

.admin-synthetic-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-synthetic-settings .field {
  gap: 6px;
}

.admin-synthetic-setting-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.admin-synthetic-setting-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-synthetic-setting-side-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-synthetic-settings input,
.admin-synthetic-settings select {
  min-height: 42px;
}

.admin-synthetic-settings select {
  appearance: none;
  background-color: rgba(8, 10, 28, 0.96);
  color: #ecf2ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23d9e4ff' d='M4.2 6.1 8 9.9l3.8-3.8 1.2 1.2L8 12.3 3 7.3z'/%3E%3C/svg%3E");
  background-position: calc(100% - 12px) 50%;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  padding-left: 14px;
  padding-right: 38px;
}

.admin-synthetic-settings input:disabled,
.admin-synthetic-settings select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-synthetic-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-synthetic-settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-synthetic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-synthetic-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #c8d6fb;
}

.admin-synthetic-summary span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  background: rgba(12, 15, 34, 0.92);
}

.admin-synthetic-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-window-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8bbdf;
  margin: 2px 0;
}

.admin-window-separator-line {
  flex: 1 1;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(145, 183, 248, 0.08), rgba(145, 183, 248, 0.8), rgba(145, 183, 248, 0.08));
}

.admin-window-separator-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  min-width: min(640px, calc(100vw - 160px));
}

.admin-window-separator-content strong {
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d9e5ff;
}

.admin-window-separator-content span {
  font-size: 0.74rem;
  color: #b5c8ea;
}

.admin-synthetic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-pagination-row-bottom {
  margin-top: 8px;
}

.admin-synthetic-row {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 15, 34, 0.92);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(172px, auto) 172px 1fr;
  gap: 12px;
  align-items: center;
}

.admin-synthetic-time {
  font-size: 0.79rem;
  color: #95aacb;
  white-space: nowrap;
}

.admin-synthetic-state {
  border-radius: 999px;
  padding: 4px 8px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: 1px solid transparent;
}

.admin-synthetic-state.state-pending {
  color: #dce7ff;
  border-color: rgba(220, 231, 255, 0.4);
  background: rgba(220, 231, 255, 0.1);
}

.admin-synthetic-state.state-executed {
  color: #a7ffca;
  border-color: rgba(114, 245, 160, 0.5);
  background: rgba(114, 245, 160, 0.14);
}

.admin-synthetic-state.state-missed {
  color: #ffd57a;
  border-color: rgba(255, 213, 122, 0.5);
  background: rgba(255, 213, 122, 0.14);
}

.admin-synthetic-state.state-skipped {
  color: #ffb3d5;
  border-color: rgba(255, 179, 213, 0.5);
  background: rgba(255, 179, 213, 0.14);
}

.admin-synthetic-state.state-canceled {
  color: #ffb0b0;
  border-color: rgba(255, 176, 176, 0.5);
  background: rgba(255, 176, 176, 0.15);
}

.admin-synthetic-pin-link {
  color: #dce7ff;
  text-decoration: none;
  font-size: 0.84rem;
}

.admin-synthetic-pin-link:hover {
  color: #a6ffc6;
}

@media (max-width: 768px) {
  .admin-shell {
    padding: 20px 16px 80px;
  }

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

  .admin-reviewer-create,
  .admin-reviewer-list {
    grid-template-columns: 1fr;
  }

  .admin-reviewer-reset {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-synthetic {
    padding: 14px;
  }

  .admin-synthetic-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-synthetic-enabled-form {
    width: 100%;
  }

  .admin-synthetic-enabled-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .admin-synthetic-setting-row {
    grid-template-columns: 1fr;
  }

  .admin-synthetic-setting-side-grid {
    grid-template-columns: 1fr;
  }

  .admin-synthetic-settings-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-pagination-row,
  .admin-pagination-row-bottom {
    justify-content: center;
  }

  .admin-pagination-row {
    flex-direction: column;
    align-items: center;
  }

  .admin-window-separator-content {
    min-width: 0;
    width: 100%;
  }

  .admin-synthetic-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.cookie-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  display: flex;
  justify-content: center;
  z-index: 1200;
}

.cookie-consent-panel {
  width: min(740px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 22, 0.96);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.cookie-consent-panel h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.cookie-consent-panel p {
  margin: 0;
  color: #d6e0ff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-consent-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px !important;
}

.cookie-consent-links a {
  color: #9bc8ff;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.turnstile-submit-wrap {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 28, 0.62);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.turnstile-widget {
  min-height: 65px;
}

.turnstile-submit-hidden,
.turnstile-vote-hidden {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

.modal-card .search-results,
.modal-card .search-results * {
  color: #0f172a;
}

.modal-card .search-results button,
.modal-card .search-results [role="option"],
.modal-card .search-results .search-result {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.modal-card .search-results button:hover,
.modal-card .search-results button:focus-visible,
.modal-card .search-results [role="option"]:hover,
.modal-card .search-results [role="option"]:focus-visible,
.modal-card .search-results .search-result:hover {
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(59, 130, 246, 0.22);
}

.modal-card .search-results button[aria-selected="true"],
.modal-card .search-results [role="option"][aria-selected="true"],
.modal-card .search-results .search-result[aria-selected="true"],
.modal-card .search-results .search-result.selected,
.modal-card .search-results .search-result.is-active {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.98));
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.14);
}

.modal-card .search-results .search-result-title,
.modal-card .search-results strong,
.modal-card .search-results b {
  color: #0b1220 !important;
  font-weight: 700;
}

.modal-card .search-results .search-result-meta,
.modal-card .search-results .post-meta,
.modal-card .search-results small,
.modal-card .search-results .muted {
  color: rgba(15, 23, 42, 0.76) !important;
  font-weight: 600;
  opacity: 1;
}

html[data-theme="dark"] .modal-card .search-results,
html[data-theme="dark"] .modal-card .search-results * {
  color: #e5eefc;
}

html[data-theme="dark"] .modal-card .search-results button,
html[data-theme="dark"] .modal-card .search-results [role="option"],
html[data-theme="dark"] .modal-card .search-results .search-result {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.34);
}

html[data-theme="dark"] .modal-card .search-results button[aria-selected="true"],
html[data-theme="dark"] .modal-card .search-results [role="option"][aria-selected="true"],
html[data-theme="dark"] .modal-card .search-results .search-result[aria-selected="true"],
html[data-theme="dark"] .modal-card .search-results .search-result.selected,
html[data-theme="dark"] .modal-card .search-results .search-result.is-active {
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.92), rgba(30, 41, 59, 0.96));
  border-color: rgba(96, 165, 250, 0.34);
}

html[data-theme="dark"] .modal-card .search-results .search-result-title,
html[data-theme="dark"] .modal-card .search-results strong,
html[data-theme="dark"] .modal-card .search-results b {
  color: #f8fbff !important;
}

html[data-theme="dark"] .modal-card .search-results .search-result-meta,
html[data-theme="dark"] .modal-card .search-results .post-meta,
html[data-theme="dark"] .modal-card .search-results small,
html[data-theme="dark"] .modal-card .search-results .muted {
  color: rgba(226, 232, 240, 0.82) !important;
}

.turnstile-vote-hidden {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

.youtube-embed-viewer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caption-hint-banner {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #fff4c5;
  background: rgba(255, 192, 67, 0.16);
  border: 1px solid rgba(255, 192, 67, 0.45);
  border-radius: 10px;
  padding: 8px 10px;
}

@media (prefers-color-scheme: light) {
  /* Krakow light theme: white + błękit */
  :root {
    background-color: #f7fbff;
    color: #18365b;
    color-scheme: light;
  }

  body {
    background:
      radial-gradient(circle at 14% -10%, rgba(126, 181, 255, 0.42) 0%, transparent 40%),
      radial-gradient(circle at 88% 0%, rgba(189, 224, 255, 0.72) 0%, transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #eef6ff 56%, #e3efff 100%);
    color: #18365b;
  }

  .page-shell,
  .legal-page {
    color: #18365b;
  }

  .hero .eyebrow,
  .overline {
    color: #5e8fcb;
  }

  .hero .lede,
  .hero .support,
  .legal-lede,
  .empty,
  .post-meta,
  .disclaimer,
  .submission-disclaimer,
  .motivation-card li,
  .site-footer,
  .map-loader {
    color: #4b6e99;
  }

  .hero-title-link:focus-visible,
  .post-thumb-button:focus-visible {
    outline-color: #7fb4ff;
  }

  .filter-chip,
  .cta-row,
  .motivation,
  .list-panel,
  .legal-section,
  .disclaimer,
  .map-panel,
  .modal-card,
  .place-search-result,
  .post-card {
    border-color: rgba(110, 157, 220, 0.18) !important;
  }

  .filter-chip {
    background: rgba(255, 255, 255, 0.88);
    color: #18365b;
    box-shadow: 0 8px 24px rgba(84, 124, 184, 0.08);
  }

  .filter-chip small {
    color: #6c8ebb;
  }

  .filter-chip.active {
    border-color: #7fb4ff;
    background: linear-gradient(180deg, #ffffff, #e8f3ff);
  }

  .map-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 70px rgba(106, 148, 204, 0.18);
  }

  .list-panel,
  .cta-row,
  .motivation,
  .legal-section,
  .modal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.96));
    box-shadow: 0 18px 44px rgba(106, 148, 204, 0.12);
  }

  .disclaimer {
    background: rgba(240, 247, 255, 0.88);
  }

  .post-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
    box-shadow: 0 16px 36px rgba(106, 148, 204, 0.12);
  }

  .post-card:hover {
    border-color: rgba(110, 157, 220, 0.28);
  }

  .post-thumb {
    background: rgba(224, 238, 255, 0.8);
  }

  .site-footer {
    border-top: 1px solid rgba(110, 157, 220, 0.18);
  }

  .site-footer a,
  .legal-section a {
    color: #2e6fbc;
  }

  .ghost,
  .like-button,
  .primary {
    color: #18365b;
  }

  .ghost {
    border-color: rgba(110, 157, 220, 0.22);
    background: rgba(255, 255, 255, 0.72);
  }

  .like-button {
    background: rgba(224, 238, 255, 0.92);
  }

  .primary {
    background: linear-gradient(135deg, #bfe0ff, #7fb4ff);
    color: #18365b;
    box-shadow: 0 12px 28px rgba(127, 180, 255, 0.28);
  }

  .floating-add {
    background: linear-gradient(135deg, #ffffff, #bfe0ff);
    color: #18365b;
    box-shadow: 0 15px 35px rgba(127, 180, 255, 0.28);
  }

  .field input,
  .field select,
  .inline-search-field input {
    background: #f8fbff;
    color: #18365b;
    border-color: rgba(110, 157, 220, 0.22);
  }

  .field input::placeholder,
  .inline-search-field input::placeholder {
    color: #7e96b6;
  }

  .success-banner {
    background: linear-gradient(180deg, rgba(244, 255, 248, 0.99), rgba(226, 247, 234, 0.99));
    border: 2px solid rgba(31, 111, 67, 0.72);
    color: #0a2f1d !important;
    text-shadow: none;
    box-shadow:
      0 12px 24px rgba(63, 133, 92, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .warning-banner {
    background: rgba(255, 230, 187, 0.78);
    border: 1px solid rgba(217, 150, 30, 0.34);
    color: #8b5f13;
  }

  .pending-banner,
  .map-density-banner {
    background: rgba(239, 246, 255, 0.92);
    border: 1px solid rgba(110, 157, 220, 0.22);
    color: #35598a;
  }

  .error-banner {
    background: rgba(255, 228, 228, 0.86);
    border: 1px solid rgba(224, 132, 132, 0.32);
    color: #9a3d3d;
  }

  .place-search-result {
    background: rgba(248, 251, 255, 0.95);
    color: #18365b;
  }

  .place-search-result.active {
    background: rgba(225, 239, 255, 0.98);
  }
}

html[data-theme="dark"] {
  --app-bg:
    radial-gradient(circle at 18% -10%, rgba(58, 75, 126, 0.28) 0%, transparent 36%),
    radial-gradient(circle at 85% 0%, rgba(28, 40, 86, 0.42) 0%, transparent 34%),
    linear-gradient(180deg, #040308 0%, #070b16 58%, #0a1020 100%);
  --app-text: #f5f7fb;
  --soft-text: #cbdaff;
  --muted-text: #95a3d9;
  --panel-bg: linear-gradient(180deg, rgba(7, 9, 24, 0.96), rgba(11, 15, 33, 0.96));
  --panel-header-bg: rgba(7, 9, 24, 0.96);
  --panel-border: rgba(255, 255, 255, 0.1);
  --panel-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --map-panel-bg: rgba(7, 9, 24, 0.9);
  --map-panel-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  --chip-bg: rgba(7, 9, 24, 0.88);
  --chip-active-bg: linear-gradient(180deg, rgba(12, 16, 36, 0.96), rgba(20, 30, 58, 0.96));
  --chip-small: #95a3d9;
  --control-bg: rgba(16, 20, 42, 0.85);
  --control-border: rgba(255, 255, 255, 0.12);
  --link-color: #7fb4ff;
  --thumb-bg: rgba(255, 255, 255, 0.05);
  --code-bg: rgba(255, 255, 255, 0.08);
  --overlay-bg: rgba(3, 5, 13, 0.86);
  --primary-bg: linear-gradient(135deg, #bfe0ff, #7fb4ff);
  --primary-color: #18365b;
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --ghost-color: #f5f7fb;
  --like-bg: rgba(255, 255, 255, 0.06);
  --theme-toggle-bg: rgba(255, 255, 255, 0.08);
  --theme-toggle-border: rgba(255, 255, 255, 0.12);
  --theme-toggle-color: #f5f7fb;
}

html[data-theme="light"] {
  --app-bg:
    radial-gradient(circle at 14% -10%, rgba(126, 181, 255, 0.42) 0%, transparent 40%),
    radial-gradient(circle at 88% 0%, rgba(189, 224, 255, 0.72) 0%, transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 56%, #e3efff 100%);
  --app-text: #18365b;
  --soft-text: #4b6e99;
  --muted-text: #5e8fcb;
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.96));
  --panel-header-bg: rgba(248, 251, 255, 0.98);
  --panel-border: rgba(110, 157, 220, 0.18);
  --panel-shadow: 0 18px 44px rgba(106, 148, 204, 0.12);
  --map-panel-bg: rgba(255, 255, 255, 0.9);
  --map-panel-shadow: 0 25px 70px rgba(106, 148, 204, 0.18);
  --chip-bg: rgba(255, 255, 255, 0.88);
  --chip-active-bg: linear-gradient(180deg, #ffffff, #e8f3ff);
  --chip-small: #6c8ebb;
  --control-bg: #f8fbff;
  --control-border: rgba(110, 157, 220, 0.22);
  --link-color: #2e6fbc;
  --thumb-bg: rgba(224, 238, 255, 0.8);
  --code-bg: rgba(232, 242, 255, 0.95);
  --overlay-bg: rgba(228, 237, 250, 0.74);
  --primary-bg: linear-gradient(135deg, #bfe0ff, #7fb4ff);
  --primary-color: #18365b;
  --ghost-bg: rgba(255, 255, 255, 0.72);
  --ghost-color: #18365b;
  --like-bg: rgba(224, 238, 255, 0.92);
  --theme-toggle-bg: rgba(255, 255, 255, 0.88);
  --theme-toggle-border: rgba(110, 157, 220, 0.24);
  --theme-toggle-color: #18365b;
}

body {
  background: var(--app-bg);
  color: var(--app-text);
}

.page-shell,
.legal-page,
.hero-title-link,
.modal-header,
.modal-header button,
.site-footer,
.admin-meta,
.admin-reviewer-meta,
.admin-pagination-summary,
.admin-synthetic-summary,
.admin-synthetic-time,
.admin-synthetic-entry,
.admin-synthetic-hints,
.admin-location-block,
.admin-location-block .post-meta,
.admin-location-map,
.form-message,
.share-body,
.share-body code {
  color: var(--app-text);
}

.hero .eyebrow,
.overline,
.post-meta,
.disclaimer,
.submission-disclaimer,
.motivation-card li,
.map-loader,
.empty,
.cta-copy,
.hero .support,
.hero .lede,
.legal-lede,
.admin-meta .post-meta,
.admin-reviewer-meta .post-meta {
  color: var(--soft-text);
}

.filter-chip,
.cta-row,
.motivation,
.list-panel,
.legal-section,
.disclaimer,
.map-panel,
.modal-card,
.place-search-result,
.post-card,
.admin-card,
.admin-form,
.admin-reviewers,
.admin-reviewer-card,
.admin-synthetic,
.admin-page-link,
.admin-location-map {
  border-color: var(--panel-border) !important;
}

.filter-chip {
  background: var(--chip-bg);
  color: var(--app-text);
  box-shadow: 0 8px 24px rgba(84, 124, 184, 0.08);
}

.filter-chip small {
  color: var(--chip-small);
}

.filter-chip.active {
  background: var(--chip-active-bg);
}

.map-panel {
  background: var(--map-panel-bg);
  box-shadow: var(--map-panel-shadow);
}

.list-panel,
.cta-row,
.motivation,
.legal-section,
.modal-card,
.admin-card,
.admin-form,
.admin-reviewers,
.admin-reviewer-card,
.admin-synthetic {
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}

.modal-header {
  background: var(--panel-header-bg);
}

.share-media,
.post-thumb,
.admin-location-map {
  background: var(--thumb-bg);
}

.share-body code {
  background: var(--code-bg);
}

.modal-overlay {
  background: var(--overlay-bg);
}

.site-footer {
  border-top: 1px solid var(--panel-border);
}

.site-footer a,
.legal-section a,
.admin-page-link,
.admin-synthetic-pin-link {
  color: var(--link-color);
}

.primary,
.floating-add {
  background: var(--primary-bg);
  color: var(--primary-color);
}

.ghost,
.like-button,
.date-picker-trigger,
.search-place-button {
  color: var(--ghost-color);
}

.ghost,
.date-picker-trigger,
.search-place-button {
  background: var(--ghost-bg);
  border-color: var(--control-border);
}

.like-button {
  background: var(--like-bg);
}

.field input,
.field select,
.inline-search-field input,
.share-body code,
.admin-synthetic-settings input,
.admin-synthetic-settings select {
  background: var(--control-bg);
  color: var(--app-text);
  border-color: var(--control-border);
}

.field input::placeholder,
.inline-search-field input::placeholder,
.admin-synthetic-settings input::placeholder {
  color: var(--soft-text);
}

.theme-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2500;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-toggle-border);
  background: var(--theme-toggle-bg);
  color: var(--theme-toggle-color);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid #7fb4ff;
  outline-offset: 2px;
}

body:has(.modal-overlay) .theme-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:has(.embed-page-shell) {
  min-height: 100dvh;
  overflow: hidden;
  background: transparent;
}

body:has(.embed-page-shell) .theme-toggle,
body:has(.embed-page-shell) .cookie-consent {
  display: none !important;
}

.embed-page-shell {
  width: 100vw;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: block;
  color: var(--app-text);
  font-feature-settings: "liga" on, "calt" on;
}

.embed-map-panel {
  width: 100vw;
  height: 100dvh;
  min-height: 320px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.embed-map-panel > .map-shell {
  height: 100dvh;
  min-height: 320px;
  border-radius: 0;
}

.embed-map-panel .map-density-banner {
  left: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
}

body:has(.embed-test-page) .cookie-consent {
  display: none !important;
}

.embed-test-page {
  width: min(1040px, calc(100vw - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px 0;
  color: var(--app-text);
}

.embed-test-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}

.embed-test-copy h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.embed-test-copy p:not(.overline) {
  max-width: 680px;
  color: var(--muted-text);
}

.embed-test-card iframe {
  width: 100%;
  height: min(70vh, 620px);
  min-height: 420px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--thumb-bg);
}

.embed-test-card pre {
  margin: 0;
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--code-bg);
  color: var(--app-text);
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* Final readability pass for legal/footer text in both themes */
html[data-theme="light"] .legal-page,
html[data-theme="light"] .legal-section,
html[data-theme="light"] .legal-section p,
html[data-theme="light"] .legal-section li,
html[data-theme="light"] .legal-back,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer nav {
  color: #294b72 !important;
}

html[data-theme="light"] .legal-lede {
  color: #426b99 !important;
}

html[data-theme="light"] .legal-section h2 {
  color: #1f5ea8 !important;
}

html[data-theme="light"] .legal-section a,
html[data-theme="light"] .legal-back a,
html[data-theme="light"] .site-footer a {
  color: #145aa8 !important;
  text-decoration-color: rgba(20, 90, 168, 0.32);
}

html[data-theme="dark"] .legal-page,
html[data-theme="dark"] .legal-section,
html[data-theme="dark"] .legal-section p,
html[data-theme="dark"] .legal-section li,
html[data-theme="dark"] .legal-back,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer nav {
  color: #d7e4ff !important;
}

html[data-theme="dark"] .legal-lede {
  color: #c9d8ff !important;
}

html[data-theme="dark"] .legal-section h2 {
  color: #9cc8ff !important;
}

html[data-theme="dark"] .legal-section a,
html[data-theme="dark"] .legal-back a,
html[data-theme="dark"] .site-footer a {
  color: #97ffd2 !important;
}


/* Stronger readability for top list cards in both themes */
html[data-theme="light"] {
  --card-title: #15395f;
  --card-meta: #456b98;
  --card-button-text: #15395f;
  --card-button-bg: rgba(255, 255, 255, 0.98);
  --card-button-border: rgba(114, 156, 214, 0.34);
  --card-like-bg: rgba(226, 239, 255, 0.98);
  --card-chip-text: #255383;
  --card-chip-bg: rgba(230, 241, 255, 0.96);
  --card-chip-border: rgba(114, 156, 214, 0.3);
}

html[data-theme="dark"] {
  --card-title: #eef4ff;
  --card-meta: #bdd0f4;
  --card-button-text: #eef4ff;
  --card-button-bg: rgba(20, 28, 56, 0.96);
  --card-button-border: rgba(151, 181, 237, 0.26);
  --card-like-bg: rgba(33, 44, 83, 0.96);
  --card-chip-text: #d6e4ff;
  --card-chip-bg: rgba(30, 40, 74, 0.96);
  --card-chip-border: rgba(151, 181, 237, 0.24);
}

.post-title {
  color: var(--card-title) !important;
}

.post-meta {
  color: var(--card-meta) !important;
}

.post-card .ghost,
.post-card .search-place-button,
.post-card .date-picker-trigger {
  color: var(--card-button-text) !important;
  background: var(--card-button-bg) !important;
  border-color: var(--card-button-border) !important;
}

.post-card .like-button {
  color: var(--card-button-text) !important;
  background: var(--card-like-bg) !important;
  border-color: var(--card-button-border) !important;
}

.post-card .like-button.liked {
  color: #0a0b14 !important;
}

.platform-chip {
  color: var(--card-chip-text) !important;
  background: var(--card-chip-bg) !important;
  border-color: var(--card-chip-border) !important;
}

.thumb-fallback {
  color: var(--card-title) !important;
}

html[data-theme="light"] .post-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98)) !important;
  border-color: rgba(110, 157, 220, 0.18) !important;
  box-shadow: 0 16px 36px rgba(106, 148, 204, 0.12) !important;
}

html[data-theme="light"] .post-card:hover {
  border-color: rgba(110, 157, 220, 0.28) !important;
}

html[data-theme="light"] .post-thumb {
  background: rgba(224, 238, 255, 0.8) !important;
}

/* Dark mode fix: force dark cards and readable controls even when system prefers light */
html[data-theme="dark"] .post-card {
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.98), rgba(15, 22, 44, 0.98)) !important;
  border-color: rgba(151, 181, 237, 0.18) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42) !important;
}

html[data-theme="dark"] .post-card:hover {
  border-color: rgba(151, 181, 237, 0.34) !important;
}

html[data-theme="dark"] .post-card .like-button {
  background: rgba(78, 104, 173, 0.34) !important;
  color: #eef4ff !important;
  border-color: rgba(151, 181, 237, 0.34) !important;
}

html[data-theme="dark"] .post-card .ghost,
html[data-theme="dark"] .post-card .search-place-button,
html[data-theme="light"] .place-search-result {
  background: rgba(248, 251, 255, 0.98) !important;
  color: #18365b !important;
  border-color: rgba(110, 157, 220, 0.24) !important;
}

html[data-theme="light"] .place-search-result:hover {
  background: rgba(229, 239, 255, 0.98) !important;
  border-color: rgba(90, 136, 255, 0.42) !important;
}

html[data-theme="light"] .place-search-result.active {
  background: rgba(220, 236, 255, 1) !important;
  border-color: rgba(79, 140, 228, 0.5) !important;
}

html[data-theme="light"] .place-search-result span {
  color: #18365b !important;
}

html[data-theme="light"] .place-search-result strong {
  color: #4d6fa2 !important;
}

html[data-theme="dark"] .place-search-result {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #edf2ff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .place-search-result:hover {
  background: rgba(90, 136, 255, 0.16) !important;
  border-color: rgba(90, 136, 255, 0.75) !important;
}

html[data-theme="dark"] .place-search-result.active {
  background: rgba(114, 245, 160, 0.18) !important;
  border-color: rgba(114, 245, 160, 0.8) !important;
}

html[data-theme="dark"] .place-search-result span {
  color: #d9e6ff !important;
}

html[data-theme="dark"] .place-search-result strong {
  color: #a9bcff !important;
}

html[data-theme="dark"] .platform-chip {
  background: rgba(38, 50, 92, 0.95) !important;
  color: #eef4ff !important;
  border-color: rgba(151, 181, 237, 0.24) !important;
}

/* Combined info section above footer */
.submission-guidance-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 16px 0 40px;
  padding: 16px 18px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.submission-guidance-card .submission-disclaimer {
  margin: 0;
  text-align: left;
  line-height: 1.65;
}

.submission-guidance-card .submission-disclaimer + .submission-disclaimer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 180, 255, 0.16);
}

html[data-theme="light"] .submission-guidance-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.96)) !important;
  border: 1px solid rgba(110, 157, 220, 0.2) !important;
  box-shadow: 0 16px 36px rgba(106, 148, 204, 0.12);
}

html[data-theme="light"] .submission-guidance-card .submission-disclaimer {
  color: #426b99 !important;
}

html[data-theme="dark"] .submission-guidance-card {
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.98), rgba(15, 22, 44, 0.98)) !important;
  border: 1px solid rgba(151, 181, 237, 0.18) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .submission-guidance-card .submission-disclaimer {
  color: #dbe7ff !important;
}

html[data-theme="dark"] .submission-guidance-card .submission-disclaimer + .submission-disclaimer {
  border-top-color: rgba(151, 181, 237, 0.18);
}

/* Better visibility for account names/handles in popup cards */
.popup-author-name {
  font-weight: 600;
}

html[data-theme="light"] .popup-author,
html[data-theme="light"] .post-author {
  color: #426b99 !important;
}

html[data-theme="light"] .post-liked-badge {
  background: rgba(41, 163, 98, 0.14) !important;
  border-color: rgba(41, 163, 98, 0.28) !important;
  color: #20724a !important;
}

html[data-theme="light"] .popup-author:hover,
html[data-theme="light"] .post-author:hover {
  color: #15395f !important;
}

html[data-theme="light"] .popup-author-name,
html[data-theme="light"] .post-author-name {
  color: #426b99 !important;
}

html[data-theme="light"] .popup-author-avatar,
html[data-theme="light"] .popup-author-avatar-fallback,
html[data-theme="light"] .post-author-avatar,
html[data-theme="light"] .post-author-avatar-fallback {
  border-color: rgba(66, 107, 153, 0.24) !important;
}

html[data-theme="light"] .popup-author-avatar-fallback,
html[data-theme="light"] .post-author-avatar-fallback {
  background: rgba(191, 224, 255, 0.82) !important;
  color: #15395f !important;
}

html[data-theme="dark"] .popup-author,
html[data-theme="dark"] .post-author {
  color: #dbe7ff !important;
}

html[data-theme="dark"] .popup-author:hover,
html[data-theme="dark"] .post-author:hover {
  color: #ffffff !important;
}

html[data-theme="dark"] .popup-author-name,
html[data-theme="dark"] .post-author-name {
  color: #dbe7ff !important;
}

/* Stronger admin/backend readability */
html[data-theme="light"] .admin-card,
html[data-theme="light"] .admin-form,
html[data-theme="light"] .admin-reviewers,
html[data-theme="light"] .admin-reviewer-card,
html[data-theme="light"] .admin-synthetic {
  color: #1f426a !important;
}

html[data-theme="light"] .admin-card h1,
html[data-theme="light"] .admin-card h2,
html[data-theme="light"] .admin-card h3,
html[data-theme="light"] .admin-form h1,
html[data-theme="light"] .admin-form h2,
html[data-theme="light"] .admin-form h3,
html[data-theme="light"] .admin-reviewers h2,
html[data-theme="light"] .admin-synthetic h2,
html[data-theme="light"] .admin-synthetic h3 {
  color: #123a64 !important;
}

html[data-theme="light"] .admin-card .overline,
html[data-theme="light"] .admin-form .overline,
html[data-theme="light"] .admin-reviewers .overline,
html[data-theme="light"] .admin-synthetic .overline,
html[data-theme="light"] .admin-meta,
html[data-theme="light"] .admin-reviewer-meta,
html[data-theme="light"] .admin-pagination-summary,
html[data-theme="light"] .admin-synthetic-summary,
html[data-theme="light"] .admin-synthetic-time,
html[data-theme="light"] .admin-synthetic-entry,
html[data-theme="light"] .admin-synthetic-hints,
html[data-theme="light"] .admin-location-block,
html[data-theme="light"] .admin-location-block .post-meta,
html[data-theme="light"] .admin-card .post-meta,
html[data-theme="light"] .admin-form .post-meta,
html[data-theme="light"] .admin-reviewers .post-meta,
html[data-theme="light"] .admin-synthetic .post-meta,
html[data-theme="light"] .admin-synthetic label,
html[data-theme="light"] .admin-form label {
  color: #476f9c !important;
}

html[data-theme="light"] .admin-synthetic-settings input,
html[data-theme="light"] .admin-synthetic-settings select,
html[data-theme="light"] .admin-form input,
html[data-theme="light"] .admin-form select,
html[data-theme="light"] .admin-form textarea {
  color: #163b63 !important;
  background: #ffffff !important;
  border-color: rgba(110, 157, 220, 0.26) !important;
}

html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-form,
html[data-theme="dark"] .admin-reviewers,
html[data-theme="dark"] .admin-reviewer-card,
html[data-theme="dark"] .admin-synthetic {
  color: #e8f0ff !important;
}

html[data-theme="dark"] .admin-card h1,
html[data-theme="dark"] .admin-card h2,
html[data-theme="dark"] .admin-card h3,
html[data-theme="dark"] .admin-form h1,
html[data-theme="dark"] .admin-form h2,
html[data-theme="dark"] .admin-form h3,
html[data-theme="dark"] .admin-reviewers h2,
html[data-theme="dark"] .admin-synthetic h2,
html[data-theme="dark"] .admin-synthetic h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-card .overline,
html[data-theme="dark"] .admin-form .overline,
html[data-theme="dark"] .admin-reviewers .overline,
html[data-theme="dark"] .admin-synthetic .overline,
html[data-theme="dark"] .admin-meta,
html[data-theme="dark"] .admin-reviewer-meta,
html[data-theme="dark"] .admin-pagination-summary,
html[data-theme="dark"] .admin-synthetic-summary,
html[data-theme="dark"] .admin-synthetic-time,
html[data-theme="dark"] .admin-synthetic-entry,
html[data-theme="dark"] .admin-synthetic-hints,
html[data-theme="dark"] .admin-location-block,
html[data-theme="dark"] .admin-location-block .post-meta,
html[data-theme="dark"] .admin-card .post-meta,
html[data-theme="dark"] .admin-form .post-meta,
html[data-theme="dark"] .admin-reviewers .post-meta,
html[data-theme="dark"] .admin-synthetic .post-meta,
html[data-theme="dark"] .admin-synthetic label,
html[data-theme="dark"] .admin-form label {
  color: #cfe0ff !important;
}

.hero .support {
  white-space: pre-line;
}

.filter-chip small {
  display: none !important;
}

