/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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;
  --app-bg:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(88, 28, 135, 0.07) 40%, transparent 74%),
    linear-gradient(180deg, #f8fbf8 0%, #eef7f4 55%, #e8eef7 100%);
  --app-text: #152436;
  --soft-text: #466276;
  --muted-text: #6a7f91;
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 246, 0.97));
  --panel-header-bg: rgba(248, 252, 250, 0.98);
  --panel-border: rgba(42, 94, 102, 0.18);
  --panel-shadow: 0 18px 44px rgba(38, 78, 93, 0.11);
  --map-panel-bg: rgba(255, 255, 255, 0.92);
  --map-panel-shadow: 0 25px 70px rgba(38, 78, 93, 0.16);
  --chip-bg: rgba(255, 255, 255, 0.92);
  --chip-active-bg: linear-gradient(135deg, #ffffff, #dff4ee);
  --chip-small: #617a86;
  --control-bg: #f8fcfa;
  --control-border: rgba(42, 94, 102, 0.22);
  --link-color: #0f766e;
  --thumb-bg: rgba(223, 244, 238, 0.82);
  --code-bg: rgba(234, 246, 244, 0.95);
  --overlay-bg: rgba(233, 244, 241, 0.78);
  --primary-bg: linear-gradient(135deg, #0f766e, #2457a6);
  --primary-color: #fffefd;
  --ghost-bg: rgba(255, 255, 255, 0.82);
  --ghost-color: #152436;
  --like-bg: rgba(223, 244, 238, 0.95);
  --theme-toggle-bg: rgba(255, 255, 255, 0.92);
  --theme-toggle-border: rgba(42, 94, 102, 0.22);
  --theme-toggle-color: #152436;
  background-color: #f8fbf8;
  color: var(--app-text);
  color-scheme: dark light;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--app-bg);
  color: var(--app-text);
}

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-top {
  margin-top: 18px;
  margin-bottom: 0;
}

.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 .site-language-switcher {
  align-items: center;
  gap: 10px 12px;
}

.site-service-version-label {
  color: inherit;
  font-weight: 800;
}

.site-language-switcher .site-service-version-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 340px);
  padding: 7px 10px;
  border: 1px solid rgba(114, 245, 160, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  text-decoration: none;
}

.site-service-version-icon {
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
}

.site-service-version-icon.sweden {
  width: 18px;
  height: 12px;
  overflow: hidden;
  border-radius: 2px;
  background: #006aa7;
  box-shadow: 0 0 0 1px rgba(223, 255, 234, 0.28);
}

.site-service-version-icon.sweden::before,
.site-service-version-icon.sweden::after {
  content: "";
  position: absolute;
  background: #fecc02;
}

.site-service-version-icon.sweden::before {
  top: 0;
  left: 6px;
  width: 2px;
  height: 100%;
}

.site-service-version-icon.sweden::after {
  top: 5px;
  left: 0;
  width: 100%;
  height: 2px;
}

.site-service-version-icon.global {
  width: 16px;
  height: 16px;
  border: 1.5px solid #72f5a0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(114, 245, 160, 0.18);
}

.site-service-version-icon.global::before,
.site-service-version-icon.global::after {
  content: "";
  position: absolute;
  border-color: rgba(114, 245, 160, 0.75);
  border-style: solid;
}

.site-service-version-icon.global::before {
  inset: 2px 5px;
  border-width: 0 1px;
  border-radius: 50%;
}

.site-service-version-icon.global::after {
  top: 6px;
  left: 2px;
  right: 2px;
  border-width: 1px 0 0;
}

.site-service-version-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.site-service-version-copy strong {
  color: #dfffea;
  font-size: 0.9rem;
  line-height: 1.15;
}

.site-service-version-copy small {
  color: #a5b4ff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.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(2.55rem, 6vw, 4.2rem);
  letter-spacing: 0;
  display: inline-flex;
  justify-content: center;
}

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

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

.brand-logo-link {
  padding: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  color: inherit;
}

.brand-logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(2.7rem, 5.1vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  text-rendering: optimizeLegibility;
  overflow: visible;
  white-space: nowrap;
  padding: 0 0.2em 0.12em 0.04em;
}

.brand-logo-word {
  display: inline-block;
}

.brand-logo-pin-o {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: baseline;
  width: 0.7em;
  height: 0.88em;
  margin: 0 0.035em 0 0.02em;
  color: #0f766e;
  transform: translateY(0.1em);
  filter: drop-shadow(0 0.08em 0.16em rgba(15, 118, 110, 0.24));
  transition: transform 180ms ease, filter 180ms ease;
}

.brand-logo-pin-o svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.95;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo-link:hover .brand-logo-pin-o,
.brand-logo-link:focus-visible .brand-logo-pin-o {
  transform: translateY(0.04em) scale(1.055);
  filter: drop-shadow(0 0.11em 0.2em rgba(15, 118, 110, 0.34));
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-pin-o {
    transition: none;
  }
}

.brand-logo-word-urlaubs {
  background: linear-gradient(135deg, #12233a 0%, #0f766e 52%, #2457a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 0;
  text-shadow: none;
}

html[data-theme="light"] .brand-logo-word-urlaubs {
  color: #355b86;
  text-shadow: 0 10px 26px rgba(255, 255, 255, 0.42);
}

.brand-logo-word-map {
  margin-left: 0;
  padding-right: 0.16em;
  background: linear-gradient(135deg, #0f766e 0%, #2457a6 46%, #6d3b8c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 1px 10px rgba(15, 118, 110, 0.08);
}

.brand-logo-suffix {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--soft-text);
}

.brand-logo.compact {
  gap: 0.54rem;
}

.brand-logo.compact .brand-logo-wordmark {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  letter-spacing: 0;
}

.brand-logo.compact .brand-logo-suffix {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.blog-brand-heading {
  margin: 0;
}

@media (max-width: 640px) {
  .brand-logo-wordmark {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .brand-logo.compact .brand-logo-wordmark {
    font-size: clamp(1.8rem, 7.8vw, 2.3rem);
  }

  .brand-logo-suffix {
    font-size: 0.7rem;
  }
}

@media (max-width: 460px) {
  .brand-logo {
    gap: 0.4rem;
  }

  .brand-logo-wordmark {
    font-size: clamp(2.1rem, 9vw, 2.6rem);
  }

  .brand-logo.compact .brand-logo-wordmark {
    font-size: clamp(1.65rem, 7.2vw, 2.05rem);
  }

  .brand-logo-suffix {
    display: none;
  }
}

.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;
}

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

.filters-secondary {
  margin-top: 0;
  gap: 10px;
}

.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, background 0.2s, box-shadow 0.2s, color 0.2s;
}

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

.filter-chip.active,
.filter-chip[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #ffffff, #ffe8ed 45%, #ff6b84);
  color: #172033;
  transform: translateY(-2px) scale(1.035);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(201, 31, 55, 0.38);
}

.filter-chip.active small,
.filter-chip[aria-pressed="true"] small {
  color: #7b1427;
  font-weight: 850;
}

.filter-chip.filter-chip-compact {
  padding: 10px 18px;
}

.filter-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.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-outside-mask {
  position: absolute;
  background: rgba(255, 252, 252, 0.18);
  backdrop-filter: blur(6px) saturate(0.74) brightness(0.95);
  -webkit-backdrop-filter: blur(6px) saturate(0.74) brightness(0.95);
  pointer-events: none;
  z-index: 650;
}

.map-allowed-frame {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(201, 31, 55, 0.08);
  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;
}

.map-spotlight-overlay-anchor.is-hovered,
.map-spotlight-overlay-anchor.is-hovered .map-spotlight-card {
  pointer-events: none;
  cursor: default;
}

.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;
}

.desktop-map-zoom-controls {
  position: absolute;
  top: 86px;
  right: 20px;
  z-index: 790;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-map-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 790;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-zoom-button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(12, 19, 34, 0.9);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(6, 15, 30, 0.28);
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.map-zoom-button:hover,
.map-zoom-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 1);
  background: rgba(15, 39, 64, 0.96);
  box-shadow: 0 18px 34px rgba(6, 15, 30, 0.34);
}

.map-zoom-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 18px rgba(6, 15, 30, 0.16);
}

.mini-map-zoom-controls .map-zoom-button {
  width: 38px;
  height: 38px;
}

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

.map-pins-loading-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 45;
  width: min(360px, calc(100% - 44px));
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 11, 28, 0.86);
  color: #f7fbff;
  text-align: center;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  pointer-events: none;
}

.map-pins-loading-card strong {
  font-size: 1rem;
}

.map-pins-loading-card span {
  font-size: 0.88rem;
  line-height: 1.35;
  color: #d9e5ff;
}

.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% - 240px);
  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;
}

.map-style-toggle {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 32;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 17, 38, 0.78);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.map-style-chip {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #dce7ff;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.map-style-chip:hover {
  transform: translateY(-1px);
}

.map-style-chip.active {
  color: #0c2a3e;
  background: linear-gradient(180deg, #7eeacc, #41d9c9);
  box-shadow: 0 10px 20px rgba(55, 189, 173, 0.22);
}

.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;
}

.blog-teaser-card {
  display: grid;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(96, 168, 255, 0.12), rgba(45, 212, 191, 0.08));
  border: 1px solid rgba(143, 196, 255, 0.22);
}

.blog-teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.blog-teaser-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.blog-teaser-copy {
  margin: 0;
  max-width: 760px;
  color: var(--soft-text);
  line-height: 1.55;
}

.blog-teaser-link {
  white-space: nowrap;
  flex-shrink: 0;
}

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

.blog-teaser-mini-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(143, 196, 255, 0.22);
  box-shadow: 0 10px 26px rgba(99, 145, 204, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.blog-teaser-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 245, 160, 0.34);
  box-shadow: 0 14px 32px rgba(99, 145, 204, 0.14);
}

.blog-teaser-mini-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.55);
}

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

.blog-teaser-mini-title {
  margin: 0;
  color: var(--app-text);
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.siepomaga-autofill-card {
  border: 1px solid rgba(217, 119, 6, 0.34);
  border-radius: 18px;
  padding: 15px 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 218, 92, 0.52), transparent 38%),
    linear-gradient(180deg, #fff9df 0%, #fff1bd 100%);
  color: #70380a;
  box-shadow: 0 16px 36px rgba(132, 77, 0, 0.12);
}

.siepomaga-autofill-card strong {
  display: block;
  margin-bottom: 6px;
  color: #7a2e0e;
  font-size: 0.94rem;
}

.siepomaga-autofill-card p {
  margin: 0;
  color: #74430d;
  line-height: 1.48;
  font-size: 0.9rem;
  font-weight: 500;
}

.jobs-autofill-card {
  border-color: rgba(124, 58, 237, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(236, 72, 153, 0.18), transparent 42%),
    linear-gradient(180deg, #f7f2ff 0%, #efe7ff 100%);
  color: #3b246c;
  box-shadow: 0 16px 36px rgba(76, 29, 149, 0.12);
}

.jobs-autofill-card strong,
.jobs-autofill-card p {
  color: #3b246c;
}

.medics-autofill-card {
  border-color: rgba(20, 184, 166, 0.30);
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.20), transparent 42%),
    linear-gradient(180deg, #ecfffb 0%, #d9fbf2 100%);
  color: #134e4a;
  box-shadow: 0 16px 36px rgba(13, 148, 136, 0.12);
}

.medics-autofill-card strong,
.medics-autofill-card p {
  color: #134e4a;
}

.siepomaga-autofill-message {
  margin: 0;
  border: 1px solid rgba(180, 83, 9, 0.24);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff8df;
  color: #65370c;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 500;
}

.siepomaga-autofill-message.loading {
  border-color: rgba(37, 99, 235, 0.3);
  background: #eef6ff;
  color: #1d4f91;
}

.siepomaga-autofill-message.applied {
  border-color: rgba(22, 163, 74, 0.32);
  background: #ecfdf3;
  color: #136c36;
}

.siepomaga-autofill-message.missing,
.siepomaga-autofill-message.error {
  border-color: rgba(180, 83, 9, 0.3);
  background: #fff4d6;
  color: #74430d;
}

.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: 4px 12px 12px 0;
  padding-left: 12px;
  overflow: visible;
}

.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;
}

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

.post-thumb.thumb-aspect-1-1 {
  aspect-ratio: 1 / 1;
}

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

.post-thumb.thumb-aspect-book-cover {
  aspect-ratio: 2 / 3;
}

.mini-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  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-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;
}

.book-genre-line {
  margin: -1px 0 7px;
}

.book-genre-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 77, 0.38);
  background: rgba(255, 183, 77, 0.14);
  color: #ffd99a;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.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;
}

.event-detail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin: 6px 0 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.event-detail-chip {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

.event-detail-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.event-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.event-detail-label,
.event-detail-line {
  margin: 0;
}

.event-detail-label {
  font-weight: 800;
  text-transform: capitalize;
}

.event-detail-line {
  color: #c4d2ff;
  font-size: 0.92rem;
}

.event-detail-date-time {
  color: #ffd38a;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(5, 12, 28, 0.35), 0 0 14px rgba(255, 185, 92, 0.18);
}

.event-detail-line:last-child {
  color: #edf3ff;
  font-weight: 700;
}

.event-detail-price {
  width: fit-content;
  margin: 3px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 224, 138, 0.98), rgba(255, 178, 89, 0.96));
  color: #4a2c00;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 169, 68, 0.18);
}

.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;
}

.book-location-report {
  display: inline-flex;
}

.book-location-report-trigger.submitted {
  border-color: rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.book-location-report-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 4, 10, 0.72);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.book-location-report-card {
  width: min(100%, 430px);
  border-radius: 8px;
  border: 1px solid rgba(255, 92, 40, 0.2);
  background: #080808;
  color: #fff7f2;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  padding: 18px;
}

.book-location-report-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.book-location-report-header h2 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.25;
}

.book-location-report-kicker {
  margin: 0;
  color: #ffb36a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.book-location-report-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 92, 40, 0.3);
  background: rgba(255, 92, 40, 0.12);
  color: #fff7f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.book-location-report-current {
  margin: 14px 0 0;
  color: #ffe8d7;
  font-size: 0.92rem;
}

.book-location-report-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.book-location-report-form label {
  display: grid;
  gap: 8px;
  color: #ffe8d7;
  font-size: 0.9rem;
  font-weight: 800;
}

.book-location-report-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 92, 40, 0.24);
  background: rgba(255, 247, 242, 0.08);
  color: #ffffff;
  padding: 10px 12px;
  font: inherit;
}

.book-location-report-form input::placeholder {
  color: rgba(255, 232, 215, 0.62);
}

.book-location-report-error,
.book-location-report-success {
  margin: 0;
  font-size: 0.88rem;
}

.book-location-report-error {
  color: #fecaca;
}

.book-location-report-success {
  color: #bbf7d0;
}

.book-location-report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.book-location-report-spinner {
  animation: book-location-report-spin 0.9s linear infinite;
}

@keyframes book-location-report-spin {
  to {
    transform: rotate(360deg);
  }
}

.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.book-youtube-modal {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.modal-card.book-youtube-modal .viewer.aspect-book-cover {
  width: min(100%, 380px);
  flex: 0 0 auto;
  align-self: center;
}

.modal-card.book-modal .modal-footer.actions {
  justify-content: center;
  gap: 10px 12px;
}

.modal-card.book-pin-modal .modal-footer.actions {
  width: min(100%, 520px);
  margin: 0 auto;
  justify-content: center;
}

.modal-card.book-modal .modal-footer.actions .ghost,
.modal-card.book-modal .modal-footer.actions .like-button {
  min-height: 40px;
}

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

.modal-card.facebook-page-modal {
  width: min(860px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  overflow-x: hidden;
}

.modal-header.facebook-page-header {
  justify-content: flex-end;
  gap: 0;
  padding-top: 0;
}

.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-target-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-target-title {
  margin: 0;
  color: var(--soft-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.share-target {
  min-width: 0;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  padding: 10px 8px;
  background: var(--ghost-bg);
  color: var(--app-text);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.1;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.share-target:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.38);
}

.share-target:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
}

.share-target-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

.share-target-icon > span {
  display: block;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.share-target > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.share-actions > button {
  flex: 1 1;
  justify-content: center;
}

@media (max-width: 460px) {
  .share-targets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-actions > button {
    flex-basis: 100%;
  }
}

.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-card.book-pin-modal .modal-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: flex-start;
  column-gap: 8px;
}

.modal-card.book-pin-modal .modal-header > div {
  grid-column: 2;
  max-width: 100%;
  text-align: center;
}

.modal-card.book-pin-modal .modal-close-inline {
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
}

.modal-card.book-pin-modal .popup-author {
  justify-content: center;
}

.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-body.facebook-page-body {
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

.pin-attached-article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.pin-attached-article-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pin-attached-article-header h4 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.35;
}

.pin-attached-article-body {
  display: grid;
  grid-template-columns: minmax(132px, 176px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pin-attached-article-thumb {
  overflow: hidden;
  border-radius: 16px;
  background: var(--thumb-bg);
  aspect-ratio: 16 / 9;
  min-width: 0;
}

.pin-attached-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pin-attached-article-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pin-attached-article-meta {
  margin: 0;
}

.pin-attached-article-excerpt {
  margin: 0;
  line-height: 1.5;
  color: #eef3ff;
}

.pin-attached-article-excerpt-muted {
  color: #b8caef;
}

html[data-theme="light"] .pin-attached-article-card {
  border-color: rgba(188, 211, 236, 0.9);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.98));
}

html[data-theme="light"] .pin-attached-article-meta {
  color: rgba(69, 86, 112, 0.82);
}

html[data-theme="light"] .pin-attached-article-excerpt {
  color: #1b2c46;
}

html[data-theme="light"] .pin-attached-article-excerpt-muted {
  color: rgba(85, 104, 132, 0.86);
}

.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-hint {
  color: var(--soft-text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.add-category-field select {
  cursor: pointer;
}

.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;
}

.time-picker-row select {
  flex: 1 1;
  min-width: 0;
}

.time-picker-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  font-weight: 700;
  color: var(--soft-text);
}

.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;
}

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

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

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

.viewer.aspect-book-cover .viewer-media,
.post-thumb.thumb-aspect-book-cover img,
.top-list .post-thumb.platform-books img,
.map-spotlight-card.topic-books .map-spotlight-thumb {
  object-fit: cover;
  object-position: center center;
}

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

.external-thumb.platform-website,
.viewer-media.platform-website,
.post-thumb.platform-website img {
  object-position: center 84%;
}

.external-thumb.platform-article,
.viewer-media.platform-article,
.post-thumb.platform-article img {
  object-position: center top;
}

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

.linkedin-profile-fallback {
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(236, 249, 255, 0.96), rgba(199, 234, 255, 0.96)),
    #e8f6ff;
  color: #12304a;
  text-align: center;
}

.linkedin-profile-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #0a66c2;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
}

.linkedin-profile-fallback strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(0.84rem, 2.2vw, 1rem);
  line-height: 1.15;
}

.linkedin-profile-fallback span:last-child {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: #38627f;
  text-transform: uppercase;
}

.linkedin-profile-fallback.compact {
  gap: 0.32rem;
  padding: 0.65rem;
}

.linkedin-profile-fallback.compact .linkedin-profile-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-size: 1.1rem;
}

.linkedin-profile-fallback.compact strong {
  font-size: 0.74rem;
}

.linkedin-profile-fallback.compact span:last-child {
  display: none;
}

.adzuna-job-fallback {
  flex-direction: column;
  gap: 0.25rem;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 44%),
    radial-gradient(circle at 82% 82%, rgba(34, 211, 238, 0.44), transparent 50%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #06b6d4 100%);
  text-align: center;
}

.adzuna-job-fallback strong {
  font-size: clamp(2.9rem, 12vw, 8.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-shadow: 0 12px 34px rgba(15, 23, 42, 0.32);
}

.adzuna-job-fallback span {
  font-size: clamp(1.05rem, 4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: 0.06em;
  color: #dbeafe;
  text-shadow: 0 6px 18px rgba(15, 23, 42, 0.24);
}

.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;
}

.aspect-facebook-page {
  aspect-ratio: auto;
  max-width: none;
}

.viewer.facebook-page-embed {
  width: 100%;
  max-width: min(100%, 520px);
  height: clamp(420px, 72dvh, 780px);
  margin: 8px auto 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.viewer.facebook-page-embed-polished {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(59, 89, 152, 0.12);
  box-shadow: 0 18px 48px rgba(24, 36, 64, 0.12);
}

.facebook-timeline-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.16), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f6f8ff 55%, #eef4ff 100%);
}

.facebook-timeline-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 16px;
  background: #e9eefc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.facebook-timeline-avatar img,
.facebook-timeline-avatar-image,
.facebook-timeline-avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facebook-timeline-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1877f2, #3b82f6);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.facebook-timeline-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

.facebook-timeline-copy span {
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facebook-timeline-copy strong {
  overflow: hidden;
  color: #111827;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facebook-timeline-open {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.22);
}

.facebook-page-frame {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.viewer.facebook-page-embed iframe {
  display: block;
  background: #fff;
}

.viewer.facebook-page-embed-polished iframe {
  height: calc(100% + 82px);
  transform: translateY(-82px);
}

.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-book-cover {
  aspect-ratio: 2 / 3;
  max-width: 380px;
  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;
  overflow: visible !important;
}

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

.pin-cluster {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(160, 198, 255, 0.96), rgba(66, 98, 226, 0.88) 72%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 15px rgba(30, 48, 120, 0.32);
  font-weight: 800;
  font-size: 0.72rem;
}

.pin-cluster-marker {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.pin-cluster-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(190px, calc(100vw - 40px));
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 28, 0.94);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
  color: #f7fbff;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.pin-cluster-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 10px;
  background: rgba(10, 14, 28, 0.94);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
}

.pin-cluster-marker:hover .pin-cluster-tooltip,
.pin-cluster-marker:active .pin-cluster-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.pin-cluster-tooltip-title,
.pin-cluster-tooltip-item strong,
.pin-cluster-tooltip-item em,
.pin-cluster-tooltip-more {
  display: block;
}

.pin-cluster-tooltip-title {
  font-size: 0.78rem;
  line-height: 1.2;
  color: #ffffff;
}

.pin-cluster-tooltip-list {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.pin-cluster-tooltip-item {
  display: grid;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.pin-cluster-tooltip-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8fbff;
  font-size: 0.73rem;
  line-height: 1.2;
}

.pin-cluster-tooltip-item em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b7c8ef;
  font-size: 0.66rem;
  line-height: 1.18;
  font-style: normal;
}

.pin-cluster-tooltip-more {
  margin-top: 7px;
  color: #9fdcff;
  font-size: 0.68rem;
  font-weight: 800;
}

.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,
.pin-icon-highlight .pin-cluster {
  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);
}

.pin-icon.platform-website {
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.pin-icon.platform-news {
  background: linear-gradient(135deg, #6f1022, #a61f3d);
}

.pin-icon.platform-sport {
  background: linear-gradient(135deg, #16803c, #22c55e);
}

.pin-icon.platform-promotions,
.platform-chip.platform-promotions,
.external-fallback.platform-promotions,
.viewer.external.platform-promotions .external-pill {
  background: linear-gradient(135deg, #d946ef, #84cc16);
  color: #fff;
}

.pin-icon.platform-help {
  background: linear-gradient(135deg, #f4c542, #d4a017);
}

.pin-icon.platform-celebrities {
  background: linear-gradient(135deg, #fff200, #ffd400);
  color: #4a3200;
}

.pin-icon.platform-celebrities-youtube,
.pin-icon.platform-celebrities-facebook,
.pin-icon.platform-celebrities-instagram,
.pin-icon.platform-celebrities-tiktok,
.pin-icon.platform-celebrities-linkedin,
.pin-icon.platform-celebrities-twitter {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.68);
}

.pin-icon.platform-celebrities-youtube,
.external-fallback.platform-celebrities-youtube,
.viewer.external.platform-celebrities-youtube .external-pill {
  background: linear-gradient(90deg, #fff200 0 50%, #ff2d2d 50% 100%);
}

.pin-icon.platform-celebrities-facebook,
.external-fallback.platform-celebrities-facebook,
.viewer.external.platform-celebrities-facebook .external-pill {
  background: linear-gradient(90deg, #fff200 0 50%, #1877f2 50% 100%);
}

.pin-icon.platform-celebrities-instagram,
.external-fallback.platform-celebrities-instagram,
.viewer.external.platform-celebrities-instagram .external-pill {
  background: linear-gradient(90deg, #fff200 0 50%, #dd2a7b 50% 74%, #8134af 74% 100%);
}

.pin-icon.platform-celebrities-tiktok,
.external-fallback.platform-celebrities-tiktok,
.viewer.external.platform-celebrities-tiktok .external-pill {
  background: linear-gradient(90deg, #fff200 0 50%, #00d9f5 50% 76%, #111827 76% 100%);
}

.pin-icon.platform-celebrities-linkedin,
.external-fallback.platform-celebrities-linkedin,
.viewer.external.platform-celebrities-linkedin .external-pill {
  background: linear-gradient(90deg, #fff200 0 50%, #0a66c2 50% 100%);
}

.pin-icon.platform-celebrities-twitter,
.external-fallback.platform-celebrities-twitter,
.viewer.external.platform-celebrities-twitter .external-pill {
  background: linear-gradient(90deg, #fff200 0 50%, #0f1419 50% 100%);
}

.pin-icon.platform-books {
  background: transparent;
  color: #5c230b;
}

.pin-icon.platform-books.book-pin {
  width: 46px;
  height: 60px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.pin-icon.platform-books.book-pin::after {
  content: none;
}

.book-pin-image {
  position: absolute;
  inset: 0;
  width: 46px;
  height: 60px;
  display: block;
  object-fit: contain;
  overflow: visible;
  filter: drop-shadow(0 7px 9px rgba(129, 54, 3, 0.3));
  transform-origin: 50% 92%;
  transition: transform 150ms ease, filter 150ms ease;
}

.pin-icon.platform-books.book-pin:hover .book-pin-image {
  transform: translateY(-1px) scale(1.025);
  filter: drop-shadow(0 9px 12px rgba(129, 54, 3, 0.38));
}

.pin-icon.platform-books.book-pin.audiobook-pin .book-pin-image,
.pin-icon.platform-books.book-pin.audiobooksnow-pin .book-pin-image {
  filter: drop-shadow(0 8px 12px rgba(255, 92, 40, 0.36));
}

.pin-icon.platform-books.book-pin.audiobook-pin:hover .book-pin-image,
.pin-icon.platform-books.book-pin.audiobooksnow-pin:hover .book-pin-image {
  filter: drop-shadow(0 10px 14px rgba(255, 92, 40, 0.46));
}

.pin-icon.platform-books.book-pin.audible-pin .book-pin-image {
  filter: drop-shadow(0 8px 12px rgba(255, 92, 40, 0.36));
}

.pin-icon.platform-books.book-pin.audible-pin:hover .book-pin-image {
  filter: drop-shadow(0 10px 14px rgba(255, 92, 40, 0.46));
}

.pin-icon.platform-books.book-pin.legimi-pin .book-pin-image {
  filter: drop-shadow(0 8px 12px rgba(0, 137, 96, 0.34));
}

.pin-icon.platform-books.book-pin.legimi-pin:hover .book-pin-image {
  filter: drop-shadow(0 10px 14px rgba(0, 137, 96, 0.4));
}

.pin-icon.platform-books.book-pin .pin-like {
  top: 6px;
  right: 0;
  z-index: 2;
  padding: 1px 4px;
  border: 1px solid rgba(255, 92, 40, 0.34);
  background: rgba(255, 248, 232, 0.98);
  color: #5c230b;
  font-size: 0.48rem;
  box-shadow: 0 6px 12px rgba(129, 54, 3, 0.18);
}

.pin-icon.platform-books.book-pin .pin-like::before {
  content: none;
}

.pin-icon.platform-hotels {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  color: #083344;
}

.pin-icon.platform-fishing,
.external-fallback.platform-fishing {
  background: linear-gradient(135deg, #0f766e, #38bdf8);
  color: #ffffff;
}

.pin-icon.fishing-pike-pin {
  width: 52px;
  height: 76px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.pin-icon.fishing-pike-pin::after {
  content: none;
}

.fishing-pike-pin-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 13px 16px rgba(0, 0, 0, 0.38));
}

.pin-icon.fishing-pike-pin .pin-like {
  top: -11px;
  right: -4px;
  z-index: 2;
  transform: scale(0.84);
  transform-origin: top right;
}

.pin-icon-highlight .pin-icon.fishing-pike-pin {
  box-shadow: none;
  animation: fishing-pike-highlight-pulse 1.45s ease-in-out infinite;
}

@keyframes fishing-pike-highlight-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(114, 245, 160, 0));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(114, 245, 160, 0.72));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(114, 245, 160, 0));
  }
}

.pin-icon.platform-gastronomy,
.external-fallback.platform-gastronomy {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #ffffff;
}

.pin-icon.platform-business,
.external-fallback.platform-business {
  background: linear-gradient(135deg, #334155, #0ea5e9);
  color: #ffffff;
}

.pin-icon.platform-jobs,
.external-fallback.platform-jobs {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
}

.pin-icon.platform-medics,
.external-fallback.platform-medics {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #ffffff;
}

.platform-chip.platform-jobs {
  background: rgba(99, 102, 241, 0.20);
  color: #a5b4fc;
}

.platform-chip.platform-medics {
  background: rgba(20, 184, 166, 0.20);
  color: #5eead4;
}

.platform-chip.platform-fishing {
  background: rgba(20, 184, 166, 0.20);
  color: #5eead4;
}

.platform-chip.platform-gastronomy {
  background: rgba(245, 158, 11, 0.20);
  color: #fbbf24;
}

.platform-chip.platform-business {
  background: rgba(14, 165, 233, 0.20);
  color: #7dd3fc;
}

.viewer.external.platform-jobs .external-pill {
  background: rgba(99, 102, 241, 0.92);
  color: #ffffff;
}

.viewer.external.platform-medics .external-pill {
  background: rgba(13, 148, 136, 0.92);
  color: #ffffff;
}

.viewer.external.platform-fishing .external-pill {
  background: rgba(15, 118, 110, 0.92);
  color: #ffffff;
}

.viewer.external.platform-gastronomy .external-pill {
  background: rgba(234, 88, 12, 0.92);
  color: #ffffff;
}

.viewer.external.platform-business .external-pill {
  background: rgba(14, 116, 144, 0.92);
  color: #ffffff;
}

.job-cluster-pin {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
}

.pin-job-icon {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.viewer.external.platform-website .external-pill {
  background: rgba(15, 118, 110, 0.92);
}

.viewer.external.platform-article .external-pill {
  background: rgba(245, 158, 11, 0.94);
}

.viewer.external.platform-news .external-pill {
  background: rgba(111, 16, 34, 0.92);
}

.viewer.external.platform-sport .external-pill {
  background: rgba(22, 128, 60, 0.92);
}

.viewer.external.platform-help .external-pill {
  background: rgba(212, 160, 23, 0.94);
  color: #4a3208;
}

.viewer.external.platform-celebrities .external-pill {
  background: rgba(255, 221, 0, 0.96);
  color: #4a3200;
}

.viewer.external.platform-books .external-pill {
  background: rgba(92, 59, 30, 0.92);
}

.viewer.external.platform-hotels .external-pill {
  background: rgba(125, 211, 252, 0.96);
  color: #083344;
}

.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-card.topic-books .map-spotlight-media {
  width: 104px;
  height: 104px;
  margin: 10px auto 0;
  border-radius: 18px;
}

.map-spotlight-card.topic-books.book-source-cover .map-spotlight-media {
  width: 86px;
  height: 129px;
}

.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.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-thumb.fallback.platform-jobs {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.map-spotlight-thumb.fallback.platform-medics {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}

.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,
.map-spotlight-article,
.map-spotlight-book-genre {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cfe0ff;
}

.map-spotlight-book-genre {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffd99a;
}

.map-spotlight-article {
  color: #ffd59a;
}

.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-specialization {
  margin: 6px 0 0;
  padding: 6px 10px;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(94, 234, 212, 0.58);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.34), rgba(14, 165, 233, 0.26));
  color: #5eead4;
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.2);
  font-size: 0.76rem;
  line-height: 1.12;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

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

.map-spotlight-author {
  margin: 5px 0 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.22;
}

.map-spotlight-location {
  margin: 6px 0 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #99f6e4;
  font-size: 0.72rem;
  font-weight: 800;
  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;
  }

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

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

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

  .post-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .post-card .post-actions > * {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 4px);
    justify-content: center;
    min-width: 0;
  }

  .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,
  .modal-card.facebook-page-modal {
    max-height: calc(100dvh - 20px);
  }

  .modal-card.facebook-page-modal {
    padding: 14px;
  }

  .modal-card.compact-mobile-post-modal {
    position: relative;
  }

  .modal-card.compact-mobile-post-modal .modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 12;
    padding: 0;
    background: transparent;
    justify-content: flex-end;
    pointer-events: none;
  }

  .modal-card.compact-mobile-post-modal .modal-header > div {
    display: none;
  }

  .modal-card.compact-mobile-post-modal .modal-close-inline {
    width: 40px;
    height: 40px;
    pointer-events: auto;
    background: rgba(4, 6, 17, 0.78);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  }

  .modal-card.compact-mobile-post-modal .modal-close-inline svg {
    color: #ffffff;
    stroke: currentColor;
  }

  .modal-card.compact-mobile-post-modal .modal-body {
    padding-top: 0;
  }

  .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;
  }

  .map-pins-loading-card {
    width: min(320px, calc(100% - 32px));
    padding: 16px 18px;
  }

  .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%;
  }

  .viewer.facebook-page-embed {
    max-width: 100%;
    height: clamp(360px, 62dvh, 680px);
  }

  .facebook-timeline-chrome {
    min-height: 64px;
    gap: 10px;
    padding: 10px 12px;
  }

  .facebook-timeline-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .facebook-timeline-open {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .viewer.facebook-page-embed-polished iframe {
    height: calc(100% + 72px);
    transform: translateY(-72px);
  }

  .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-view-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-view-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: #d8e4ff;
  font-weight: 800;
  cursor: pointer;
}

.admin-view-tab.active {
  background: linear-gradient(135deg, #7dd3fc, #5eead4);
  color: #0f2432;
}

.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-view-tabs {
  border-color: rgba(110, 157, 220, 0.26) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="light"] .admin-view-tab {
  color: #204b78 !important;
}

html[data-theme="light"] .admin-view-tab.active {
  background: linear-gradient(135deg, #0f766e, #2457a6) !important;
  color: #fffefd !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-view-tabs {
  border-color: rgba(151, 181, 237, 0.18) !important;
  background: rgba(19, 28, 56, 0.78) !important;
}

html[data-theme="dark"] .admin-view-tab {
  color: #e8f0ff !important;
}

html[data-theme="dark"] .admin-view-tab.active {
  background: linear-gradient(135deg, #7dd3fc, #5eead4) !important;
  color: #0f2432 !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-location-reports {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 24, 0.72);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.admin-location-report-list {
  display: grid;
  gap: 12px;
}

.admin-location-report-card {
  border-radius: 16px;
  border: 1px solid rgba(151, 181, 237, 0.16);
  background: rgba(19, 28, 56, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-location-report-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-location-report-main h3 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 1.08rem;
}

.admin-location-report-status {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-location-report-status.status-pending {
  background: rgba(125, 211, 252, 0.15);
  color: #bae6fd;
}

.admin-location-report-status.status-resolved {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.admin-location-report-status.status-published {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.admin-location-report-status.status-rejected {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.admin-location-report-places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-location-report-places section {
  border-radius: 14px;
  border: 1px solid rgba(151, 181, 237, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.admin-location-report-places section.suggested {
  border-color: rgba(255, 92, 40, 0.32);
  background: rgba(255, 92, 40, 0.08);
}

.admin-location-report-places span,
.admin-location-report-meta {
  color: #aebce0;
  font-size: 0.82rem;
}

.admin-location-report-places strong {
  color: #f8fafc;
  line-height: 1.3;
}

.admin-location-report-places small {
  color: #90a2cb;
}

.admin-location-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.admin-location-report-actions {
  justify-content: flex-start;
}

.admin-book-video-preview {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-book-video-preview a {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: #020617;
}

.admin-community-story-preview iframe,
.admin-community-story-fallback {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 0;
  background: #020617;
}

.admin-community-story-fallback {
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-weight: 800;
  text-decoration: none;
}

.admin-book-video-preview img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.admin-book-video-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #aebce0;
  font-size: 0.82rem;
}

.admin-book-video-preview strong {
  width: 100%;
  color: #f8fafc;
  font-size: 0.9rem;
}

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

.admin-pin-preview {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-pin-preview-media {
  min-height: 138px;
  background: linear-gradient(135deg, rgba(114, 245, 160, 0.18), rgba(74, 144, 226, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f7fb;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-pin-preview-media img {
  width: 100%;
  height: 100%;
  min-height: 138px;
  object-fit: cover;
  display: block;
}

.admin-pin-preview-media span {
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.admin-pin-preview-copy {
  min-width: 0;
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.admin-pin-preview-copy strong {
  line-height: 1.25;
  color: var(--app-text, #f5f7fb);
}

.admin-pin-preview-copy p {
  margin: 0;
  color: var(--soft-text, #aebdf4);
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-pin-preview-empty {
  color: #8190c5 !important;
}

.admin-category-badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(114, 245, 160, 0.14);
  color: #a5ffc5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55em;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.78em;
}

.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-edit-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 34, 0.68);
  min-width: 0;
}

.admin-edit-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-edit-header-row strong {
  display: block;
  margin-top: 2px;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.admin-inline-field {
  margin: 0;
  min-width: 0;
}

.admin-inline-field input,
.admin-inline-field select,
.admin-inline-field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-inline-field textarea {
  resize: vertical;
}

.admin-edit-map-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-location-map-editor,
.admin-location-map-placeholder {
  min-height: 240px;
}

.admin-location-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfe0ff;
  background: rgba(13, 16, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-edit-map-hint {
  margin: 0;
}

.admin-edit-title {
  grid-column: span 2;
}

.admin-partner-links-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-partner-links-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-partner-links-header span:first-child {
  display: block;
  color: var(--app-text, #f5f7fb);
  font-weight: 800;
}

.admin-partner-links-header .post-meta {
  margin: 2px 0 0;
}

.admin-partner-link-row {
  display: grid;
  grid-template-columns: auto minmax(96px, 0.34fr) minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.admin-partner-link-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #cfe0ff;
  font-weight: 900;
}

.admin-partner-link-label,
.admin-partner-link-url {
  min-width: 0;
}

@media (max-width: 720px) {
  .admin-edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-edit-title {
    grid-column: span 1;
  }

  .admin-partner-link-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-partner-link-url {
    grid-column: 1 / -1;
  }
}

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

.admin-article-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 34, 0.68);
}

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

.admin-article-header-row strong {
  display: block;
  margin-top: 2px;
}

.admin-article-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-article-badge.linked {
  background: rgba(68, 211, 141, 0.16);
  color: #baf7d1;
}

.admin-article-badge.empty {
  background: rgba(255, 255, 255, 0.06);
  color: #d6e4ff;
}

.admin-article-badge.muted {
  background: rgba(255, 184, 0, 0.12);
  color: #ffe09d;
}

.admin-article-summary,
.admin-article-empty-state {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.admin-article-copy,
.admin-article-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-article-copy {
  flex: 1 1 280px;
  min-width: 0;
  color: #dbe7ff;
  font-size: 0.86rem;
}

.admin-article-copy strong {
  font-size: 0.96rem;
}

.admin-article-summary-actions {
  flex: 0 0 auto;
  align-items: flex-end;
}

.admin-article-summary-actions .ghost,
.admin-article-empty-state .ghost {
  min-width: 156px;
}

.admin-article-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.admin-attachable-article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.admin-attachable-article.current {
  border-color: rgba(68, 211, 141, 0.35);
  background: rgba(68, 211, 141, 0.08);
}

.admin-attachable-article-thumb {
  width: 96px;
  min-height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.admin-attachable-article-thumb img,
.admin-attachable-article-thumb-fallback {
  width: 100%;
  height: 100%;
}

.admin-attachable-article-thumb img {
  object-fit: cover;
  display: block;
}

.admin-attachable-article-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #1e2d55, #33508f);
}

.admin-attachable-article-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: #dbe7ff;
  font-size: 0.85rem;
}

.admin-attachable-article-copy strong {
  font-size: 0.94rem;
  line-height: 1.35;
}

.admin-attachable-article-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  justify-content: space-between;
}

.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-location-report-main {
    flex-direction: column;
  }

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

  .admin-book-video-preview {
    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,
  .filter-chip[aria-pressed="true"] {
    border-color: #216fd8;
    background: linear-gradient(135deg, #ffffff, #dcecff 48%, #7fb4ff);
    color: #0e2544;
    box-shadow:
      0 0 0 3px rgba(61, 132, 224, 0.16),
      0 14px 30px rgba(65, 124, 201, 0.26);
  }

  .filter-chip.active small,
  .filter-chip[aria-pressed="true"] small {
    color: #1b5ca9;
  }

  .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);
  }

  .event-detail-card {
    background: linear-gradient(180deg, rgba(230, 241, 255, 0.94), rgba(244, 249, 255, 0.98));
    border-color: rgba(110, 157, 220, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .event-detail-label {
    color: #15395f;
  }

  .event-detail-line {
    color: #59799f;
  }

  .event-detail-date-time {
    color: #a35612;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 12px rgba(255, 181, 84, 0.18);
  }

  .event-detail-line:last-child {
    color: #173b63;
    font-weight: 800;
  }

  .event-detail-price {
    color: #563100;
    box-shadow: 0 8px 18px rgba(191, 112, 20, 0.14);
  }

  .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:
    linear-gradient(135deg, rgba(14, 116, 144, 0.18), rgba(88, 28, 135, 0.12) 42%, transparent 74%),
    linear-gradient(180deg, #071013 0%, #0b1720 58%, #101623 100%);
  --app-text: #f7faf9;
  --soft-text: #c8dfd9;
  --muted-text: #94aba8;
  --panel-bg: linear-gradient(180deg, rgba(8, 18, 22, 0.96), rgba(13, 24, 32, 0.96));
  --panel-header-bg: rgba(8, 18, 22, 0.96);
  --panel-border: rgba(190, 227, 219, 0.12);
  --panel-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --map-panel-bg: rgba(8, 18, 22, 0.9);
  --map-panel-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  --chip-bg: rgba(8, 18, 22, 0.88);
  --chip-active-bg: linear-gradient(180deg, rgba(12, 30, 33, 0.96), rgba(27, 38, 54, 0.96));
  --chip-small: #9db9b7;
  --control-bg: rgba(15, 30, 36, 0.85);
  --control-border: rgba(190, 227, 219, 0.14);
  --link-color: #5eead4;
  --thumb-bg: rgba(255, 255, 255, 0.05);
  --code-bg: rgba(255, 255, 255, 0.08);
  --overlay-bg: rgba(4, 10, 13, 0.86);
  --primary-bg: linear-gradient(135deg, #7dd3fc, #5eead4);
  --primary-color: #0f2432;
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --ghost-color: #f7faf9;
  --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: #f7faf9;
}

html[data-theme="light"] {
  --app-bg:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(88, 28, 135, 0.07) 40%, transparent 74%),
    linear-gradient(180deg, #f8fbf8 0%, #eef7f4 55%, #e8eef7 100%);
  --app-text: #152436;
  --soft-text: #466276;
  --muted-text: #6a7f91;
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 246, 0.97));
  --panel-header-bg: rgba(248, 252, 250, 0.98);
  --panel-border: rgba(42, 94, 102, 0.18);
  --panel-shadow: 0 18px 44px rgba(38, 78, 93, 0.11);
  --map-panel-bg: rgba(255, 255, 255, 0.92);
  --map-panel-shadow: 0 25px 70px rgba(38, 78, 93, 0.16);
  --chip-bg: rgba(255, 255, 255, 0.92);
  --chip-active-bg: linear-gradient(135deg, #ffffff, #dff4ee);
  --chip-small: #617a86;
  --control-bg: #f8fcfa;
  --control-border: rgba(42, 94, 102, 0.22);
  --link-color: #0f766e;
  --thumb-bg: rgba(223, 244, 238, 0.82);
  --code-bg: rgba(234, 246, 244, 0.95);
  --overlay-bg: rgba(233, 244, 241, 0.78);
  --primary-bg: linear-gradient(135deg, #0f766e, #2457a6);
  --primary-color: #fffefd;
  --ghost-bg: rgba(255, 255, 255, 0.82);
  --ghost-color: #152436;
  --like-bg: rgba(223, 244, 238, 0.95);
  --theme-toggle-bg: rgba(255, 255, 255, 0.92);
  --theme-toggle-border: rgba(42, 94, 102, 0.22);
  --theme-toggle-color: #152436;
}

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-view-tabs,
.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 {
  border-color: rgba(201, 31, 55, 0.32);
  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,
.admin-view-tabs {
  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;
}

/* 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);
}

/* Modern home layout stage */
.home-shell {
  max-width: 1280px;
  gap: clamp(22px, 3vw, 36px);
}

.home-hero-stage,
.home-map-stage,
.home-content-stage,
.home-secondary-surface {
  position: relative;
  isolation: isolate;
}

.home-hero-stage {
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 34px;
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(circle at 12% 0%, rgba(143, 232, 255, 0.18) 0%, transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(90, 104, 255, 0.16) 0%, transparent 38%),
    var(--panel-bg);
  box-shadow: var(--panel-shadow);
}

.home-hero-stage::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -54px;
  height: 120px;
  background: radial-gradient(circle, rgba(63, 209, 255, 0.18) 0%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.home-hero-stage .support {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.28vw, 1.12rem);
  line-height: 1.75;
}

.home-hero-stage .support span {
  display: block;
}

.hero-submit-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
}

.hero-submit-button {
  display: inline-flex;
  min-height: 54px;
  max-width: 260px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 19px;
  background: linear-gradient(180deg, #ff7a88, #c91f37);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(180, 26, 52, 0.28);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hero-submit-button:hover,
.hero-submit-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(180, 26, 52, 0.34);
  filter: saturate(1.04);
}

.hero-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  filter: grayscale(0.18);
}

.home-map-stage {
  border-radius: 36px;
  overflow: hidden;
}

.home-map-stage::before,
.home-content-stage::before,
.home-secondary-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(143, 232, 255, 0.2), rgba(127, 180, 255, 0.08), rgba(45, 212, 191, 0.16));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.home-content-stage {
  border-radius: 34px;
  padding: clamp(24px, 3vw, 34px);
}

.home-content-stage .content-panel-header {
  margin-bottom: 24px;
}

.home-content-stage .content-tabs {
  padding: 8px;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.home-content-stage .content-tab {
  min-height: 42px;
  border-color: transparent;
}

.home-content-stage .content-tab.active {
  box-shadow: 0 10px 24px rgba(99, 145, 204, 0.18);
}

.home-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.home-secondary-main,
.home-secondary-rail {
  display: grid;
  gap: 22px;
}

.home-cta-surface {
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.home-cta-surface .primary {
  align-self: flex-start;
}

.home-secondary-surface {
  overflow: hidden;
}

.home-secondary-surface .overline {
  margin-bottom: 8px;
}

.home-secondary-main .motivation-card ul {
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.home-secondary-main .motivation-card li {
  margin: 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.home-secondary-main .motivation-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7fb4ff, #2dd4bf);
  box-shadow: 0 0 0 4px rgba(127, 180, 255, 0.12);
}

.blog-teaser-mini-card {
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

html[data-theme="light"] .home-content-stage .content-tabs {
  background: rgba(232, 242, 255, 0.78);
}

html[data-theme="light"] .blog-teaser-mini-card {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .blog-teaser-mini-card {
  background: rgba(13, 20, 40, 0.64);
}

html[data-theme="dark"] .home-content-stage .content-tabs {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 960px) {
  .home-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-hero-stage,
  .home-content-stage {
    border-radius: 28px;
    padding: 20px 18px;
  }

  .home-map-stage {
    border-radius: 28px;
  }

  .home-content-stage .content-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
    border-radius: 26px;
  }

  .home-content-stage .content-tab {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    border-radius: 18px;
    padding: 12px 14px;
  }

  .home-content-stage .content-tab:last-child {
    grid-column: 1 / -1;
  }

  .home-secondary-main .motivation-card ul,
  .blog-teaser-grid,
  .category-story-grid {
    grid-template-columns: 1fr;
  }

  .category-story-card {
    min-height: auto;
  }
}

/* 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"] .book-genre-badge {
  background: rgba(255, 183, 77, 0.22);
  border-color: rgba(194, 107, 0, 0.28);
  color: #8a4a00;
}

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,
html[data-theme="light"] .admin-location-reports,
html[data-theme="light"] .admin-location-report-card {
  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,
html[data-theme="light"] .admin-location-report-main 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,
html[data-theme="light"] .admin-article-copy,
html[data-theme="light"] .admin-attachable-article-copy,
html[data-theme="light"] .admin-location-report-meta,
html[data-theme="light"] .admin-location-report-places span,
html[data-theme="light"] .admin-location-report-places small,
html[data-theme="light"] .admin-book-video-preview div {
  color: #476f9c !important;
}

html[data-theme="light"] .admin-location-report-places section {
  border-color: rgba(110, 157, 220, 0.18) !important;
  background: rgba(248, 250, 252, 0.9) !important;
}

html[data-theme="light"] .admin-location-report-places section.suggested {
  border-color: rgba(194, 107, 0, 0.26) !important;
  background: rgba(255, 247, 237, 0.92) !important;
}

html[data-theme="light"] .admin-location-report-places strong {
  color: #17324d !important;
}

html[data-theme="light"] .admin-book-video-preview strong {
  color: #17324d !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,
html[data-theme="dark"] .admin-location-reports,
html[data-theme="dark"] .admin-location-report-card,
html[data-theme="dark"] .admin-article-block,
html[data-theme="dark"] .admin-attachable-article,
html[data-theme="dark"] .pin-attached-article-card {
  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,
html[data-theme="dark"] .admin-location-report-main 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,
html[data-theme="dark"] .admin-article-copy,
html[data-theme="dark"] .admin-attachable-article-copy,
html[data-theme="dark"] .admin-location-report-meta,
html[data-theme="dark"] .admin-location-report-places span,
html[data-theme="dark"] .admin-location-report-places small,
html[data-theme="dark"] .admin-book-video-preview div {
  color: #cfe0ff !important;
}

html[data-theme="dark"] .admin-book-video-preview strong {
  color: #ffffff !important;
}

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

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

.article-section {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 0;
}

.article-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.article-section-copy {
  margin: 0.35rem 0 0;
  color: var(--soft-text);
  max-width: 720px;
}

.article-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.article-card,
.blog-card,
.article-page-card {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.article-card-image,
.blog-card-media,
.article-page-cover,
.article-modal-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.article-card-image,
.blog-card-media {
  object-position: left center;
}

.article-card-image,
.blog-card-media {
  height: 190px;
}

.article-page-cover,
.article-modal-image {
  aspect-ratio: 16 / 9;
}

.article-card-body,
.blog-card-body,
.article-page-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.article-card-body > *,
.blog-card-body > *,
.article-page-body > * {
  min-width: 0;
}

.article-card-topline {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
}

.article-card-location,
.blog-card-meta,
.article-card-meta,
.article-page-meta,
.article-page-excerpt,
.article-modal-excerpt {
  color: var(--soft-text);
}

.article-card-location {
  min-width: 0;
}

.article-card-title,
.blog-card h2,
.article-page-body h1 {
  margin: 0;
}

.article-card-title a,
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-card-title a:hover,
.blog-card h2 a:hover,
.blog-backlink a:hover {
  text-decoration: underline;
}

.article-card-excerpt,
.blog-card-body p,
.article-rich-text p {
  margin: 0;
  line-height: 1.65;
}

.article-page-body h1,
.article-page-excerpt,
.article-rich-text,
.article-rich-text h2,
.article-rich-text p,
.article-rich-text li,
.article-rich-text a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.article-card-actions,
.blog-card-actions,
.article-page-actions,
.article-modal-actions,
.article-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.article-chip {
  width: auto;
  min-width: max-content;
  max-width: 100%;
  padding-inline: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.article-section-link {
  white-space: nowrap;
}

.article-marker-wrapper {
  background: transparent !important;
  border: 0 !important;
}

.pin-icon.platform-article {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.pin-icon.article-pin {
  font-size: 0.72rem;
}

.pin-icon.article-pin .pin-letter {
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.article-marker-highlight .pin-icon.article-pin {
  box-shadow:
    0 0 0 4px rgba(125, 211, 252, 0.3),
    0 0 0 9px rgba(125, 211, 252, 0.16),
    0 16px 28px rgba(15, 23, 42, 0.5);
  animation: pin-highlight-pulse 1.45s ease-in-out infinite;
}

.article-post-card .post-meta-row {
  margin-bottom: 8px;
}

.article-post-thumb {
  background: var(--thumb-bg);
}

.article-list-badge {
  width: auto;
  min-width: 46px;
  padding: 0 10px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.article-list-excerpt {
  margin: 0 0 10px;
  color: var(--card-title);
  opacity: 0.78;
  line-height: 1.55;
}

.article-post-card .post-actions {
  margin-top: 2px;
}

.article-post-card .post-thumb-button,
.article-post-card .post-thumb {
  max-width: 160px;
}

.article-post-card .post-thumb {
  height: 160px;
}

.article-post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-post-card .ghost {
  white-space: nowrap;
}

.article-post-card .post-title {
  margin-bottom: 8px;
}

.article-post-card .post-meta {
  text-transform: none;
}

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

.article-post-card .post-title,
.article-post-card .article-list-excerpt {
  overflow-wrap: anywhere;
}

.article-post-card .post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-post-card .article-list-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .article-post-card .post-thumb {
    height: auto;
  }
}

.article-modal-card {
  width: min(720px, calc(100vw - 24px));
}

.article-modal-body {
  display: grid;
  gap: 1rem;
}

.blog-shell,
.article-shell {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.blog-hero {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.blog-hero-copy {
  max-width: 760px;
}

.blog-card-media-link,
.article-card-image-link,
.blog-card-media-button,
.article-card-image-button,
.blog-card-content-link {
  display: block;
}

.blog-card-content-link {
  display: grid;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.blog-card-media-button,
.article-card-image-button,
.blog-card-title-button,
.article-card-title-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.blog-card-title-button:hover,
.article-card-title-button:hover {
  text-decoration: underline;
}

.article-page-excerpt {
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-rich-text {
  display: grid;
  gap: 1rem;
}

.article-rich-text h2 {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
}

.blog-backlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0.35rem 0 1rem;
}

.blog-backlink {
  margin: 0.35rem 0 1rem;
}

.blog-backlinks a,
.blog-backlink a {
  color: var(--link-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(14, 30, 48, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.blog-backlinks a:hover,
.blog-backlink a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(14, 30, 48, 0.16);
}

@media (max-width: 720px) {
  .article-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .article-card-image,
  .blog-card-media {
    height: 172px;
  }

  .blog-teaser-header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .blog-teaser-link {
    align-self: flex-start;
  }
}

.content-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.content-panel-copy {
  margin: 6px 0 0;
  color: var(--soft-text);
  max-width: 720px;
}

.content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.content-tab {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.content-tab.active {
  border-color: #72f5a0;
  background: rgba(114, 245, 160, 0.12);
  transform: translateY(-1px);
}

.content-panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.article-section-compact {
  margin-top: 0;
}

.hotel-empty {
  padding: 28px 0 10px;
}

@media (max-width: 720px) {
  .content-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .content-tabs {
    justify-content: flex-start;
  }
}

/* === v10 design implementation: conservative home/blog/article surface pass === */
html[data-theme="light"] body {
  position: relative;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12) 0%, rgba(72, 55, 112, 0.08) 42%, transparent 72%),
    linear-gradient(180deg, #f7fbf8 0%, #eef7f4 46%, #e6eef7 100%);
}

html[data-theme="light"] body::before {
  display: none;
}

html[data-theme="light"] body::after {
  display: none;
}

.home-shell {
  position: relative;
  max-width: 1284px;
  padding-top: 10px;
  padding-bottom: 44px;
  gap: 24px;
}

.banner-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

:root:not([data-theme]) .home-hero-stage,
html[data-theme="light"] .home-hero-stage {
  padding: 22px 34px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(255, 255, 255, 0.9) 42%, rgba(72, 55, 112, 0.12)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 20px 55px rgba(38, 78, 93, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
          backdrop-filter: blur(16px) saturate(1.05);
}

:root:not([data-theme]) .home-hero-stage::after,
html[data-theme="light"] .home-hero-stage::after {
  left: 22%;
  right: 22%;
  bottom: -34px;
  height: 82px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.12), transparent);
  filter: blur(18px);
}

.home-hero-stage .hero-title {
  margin: 0;
}

:root:not([data-theme]) .home-hero-stage .support,
html[data-theme="light"] .home-hero-stage .support,
html[data-theme="dark"] .home-hero-stage .support {
  max-width: 920px;
  font-size: 0.98rem;
  line-height: 1.42;
  font-weight: 500;
  text-wrap: balance;
}

:root:not([data-theme]) .home-hero-stage .support,
html[data-theme="light"] .home-hero-stage .support {
  color: #173756;
}

html[data-theme="dark"] .home-hero-stage {
  padding: 22px 34px 24px;
  border-radius: 30px;
}

html[data-theme="dark"] .home-hero-stage::after {
  left: 22%;
  right: 22%;
  bottom: -34px;
  height: 82px;
}

:root:not([data-theme]) .brand-logo-wordmark,
html[data-theme="light"] .brand-logo-wordmark,
html[data-theme="dark"] .brand-logo-wordmark {
  font-family: "Inter", "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(3.2rem, 5.5vw, 4.1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

:root:not([data-theme]) .brand-logo-word-urlaubs,
html[data-theme="light"] .brand-logo-word-urlaubs {
  background: linear-gradient(135deg, #12233a 0%, #0f766e 52%, #2457a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

:root:not([data-theme]) .brand-logo-word-map,
html[data-theme="light"] .brand-logo-word-map {
  margin-left: 0;
  padding-right: 0.16em;
  background: linear-gradient(135deg, #0f766e 0%, #2457a6 46%, #6d3b8c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 1px 10px rgba(15, 118, 110, 0.08);
}

:root:not([data-theme]) .brand-logo-suffix,
html[data-theme="light"] .brand-logo-suffix {
  color: #34495e;
}

.theme-toggle {
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(160, 181, 204, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: #102740;
  box-shadow: 0 10px 22px rgba(69, 102, 141, 0.18);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

:root:not([data-theme]) .home-map-stage,
html[data-theme="light"] .home-map-stage {
  padding: 2px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 246, 242, 0.96));
  box-shadow: 0 16px 36px rgba(38, 78, 93, 0.12);
  overflow: hidden;
}

:root:not([data-theme]) .home-map-stage::before,
html[data-theme="light"] .home-map-stage::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(15, 118, 110, 0.12), rgba(36, 87, 166, 0.1));
}

html[data-theme="dark"] .home-map-stage {
  padding: 2px;
  border-radius: 20px;
  border: 1px solid rgba(151, 181, 237, 0.16);
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.96), rgba(15, 22, 44, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

html[data-theme="dark"] .home-map-stage::before {
  background: linear-gradient(135deg, rgba(151, 181, 237, 0.26), rgba(103, 226, 201, 0.12), rgba(90, 104, 255, 0.12));
}

.book-map-toolbar {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(110, 157, 220, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 246, 0.96));
  box-shadow: 0 14px 30px rgba(38, 78, 93, 0.1);
}

.book-genre-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 1px 2px 4px;
  scrollbar-width: thin;
}

.book-genre-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110, 157, 220, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: #24405c;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.book-genre-chip:hover,
.book-genre-chip:focus-visible {
  border-color: rgba(15, 118, 110, 0.38);
  background: rgba(249, 253, 252, 0.98);
  outline: none;
  transform: translateY(-1px);
}

.book-genre-chip.active {
  border-color: rgba(15, 118, 110, 0.4);
  background: linear-gradient(180deg, #16a394, #2457a6);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 108, 146, 0.22);
}

.book-genre-chip small {
  display: inline-flex;
  min-width: 24px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(36, 64, 92, 0.1);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.book-genre-chip.active small {
  background: rgba(255, 255, 255, 0.18);
}

.book-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.book-search-field {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 11px 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(110, 157, 220, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: #24405c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.book-search-field:focus-within {
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 0 0 3px rgba(20, 164, 148, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.book-search-field svg {
  flex: 0 0 auto;
  color: #4f7597;
}

.book-search-field input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #102740;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
}

.book-search-field input::placeholder {
  color: rgba(64, 91, 118, 0.7);
}

.book-search-clear {
  flex: 0 0 auto;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(36, 64, 92, 0.1);
  color: #24405c;
  cursor: pointer;
}

.book-search-clear:hover,
.book-search-clear:focus-visible {
  outline: none;
  background: rgba(36, 64, 92, 0.16);
}

.book-search-status {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 39, 64, 0.07);
  color: #24405c;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.book-search-status.empty {
  color: #7a2e37;
  background: rgba(204, 55, 74, 0.1);
}

html[data-theme="dark"] .book-map-toolbar {
  border-color: rgba(151, 181, 237, 0.18);
  background: linear-gradient(180deg, rgba(10, 16, 31, 0.96), rgba(15, 24, 45, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .book-genre-chip,
html[data-theme="dark"] .book-search-field {
  border-color: rgba(151, 181, 237, 0.18);
  background: rgba(18, 28, 51, 0.82);
  color: #dce7ff;
}

html[data-theme="dark"] .book-genre-chip:hover,
html[data-theme="dark"] .book-genre-chip:focus-visible {
  border-color: rgba(103, 226, 201, 0.36);
  background: rgba(25, 38, 68, 0.96);
}

html[data-theme="dark"] .book-search-field:focus-within {
  border-color: rgba(103, 226, 201, 0.44);
  box-shadow: 0 0 0 3px rgba(103, 226, 201, 0.12);
}

html[data-theme="dark"] .book-search-field svg {
  color: #9fb6d8;
}

html[data-theme="dark"] .book-search-field input {
  color: #f8fbff;
}

html[data-theme="dark"] .book-search-field input::placeholder {
  color: rgba(220, 231, 255, 0.58);
}

html[data-theme="dark"] .book-search-clear {
  background: rgba(255, 255, 255, 0.1);
  color: #dce7ff;
}

html[data-theme="dark"] .book-search-clear:hover,
html[data-theme="dark"] .book-search-clear:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .book-search-status {
  background: rgba(255, 255, 255, 0.08);
  color: #dce7ff;
}

html[data-theme="dark"] .book-search-status.empty {
  background: rgba(255, 122, 136, 0.14);
  color: #ffd6dc;
}

@media (max-width: 760px) {
  .book-map-toolbar {
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .book-genre-strip {
    gap: 7px;
    margin: 0 -2px;
    padding-bottom: 5px;
  }

  .book-genre-chip {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .book-search-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .book-search-field {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .book-search-status {
    width: 100%;
    min-height: 34px;
  }
}

.home-map-stage .map-shell {
  height: clamp(940px, 94vh, 1120px);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #e7f5f1, #f4fbf8);
  border: 1px solid rgba(131, 180, 218, 0.34);
}

.home-map-stage .leaflet-container {
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .home-map-stage .map-shell {
    height: min(78vh, 760px);
  }
}

html[data-theme="dark"] .home-map-stage .map-shell {
  background: linear-gradient(180deg, #0d1730, #101f3d);
  border-color: rgba(151, 181, 237, 0.18);
}

.map-scroll-list-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 785;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: calc(100% - 120px);
  min-height: 36px;
  padding: 8px 15px 8px 17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(10, 18, 34, 0.62);
  color: #f8fbff;
  box-shadow: 0 12px 28px rgba(6, 15, 30, 0.22);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  transform: translateX(-50%);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.map-scroll-list-cta:hover,
.map-scroll-list-cta:focus-visible {
  outline: none;
  background: rgba(23, 42, 72, 0.76);
  box-shadow: 0 16px 34px rgba(6, 15, 30, 0.28);
  transform: translate(-50%, -2px);
}

.map-scroll-list-cta svg {
  flex: 0 0 auto;
  opacity: 0.9;
  transform: translateY(1px);
}

html[data-theme="light"] .map-scroll-list-cta {
  border-color: rgba(110, 157, 220, 0.42);
  background: rgba(255, 255, 255, 0.88);
  color: #24405c;
  box-shadow: 0 12px 28px rgba(106, 148, 204, 0.2);
}

html[data-theme="light"] .map-scroll-list-cta:hover,
html[data-theme="light"] .map-scroll-list-cta:focus-visible {
  background: rgba(247, 251, 255, 0.97);
  box-shadow: 0 16px 34px rgba(106, 148, 204, 0.26);
}

html[data-theme="light"] .map-pins-loading-card {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(248, 252, 250, 0.92);
  color: #12353a;
  box-shadow: 0 18px 44px rgba(15, 76, 93, 0.16);
}

html[data-theme="light"] .map-pins-loading-card span {
  color: #496b73;
}

html[data-theme="light"] .map-style-toggle {
  border-color: rgba(15, 118, 110, 0.26);
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .map-style-chip {
  color: #3b5979;
}

.floating-add {
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  background: linear-gradient(180deg, #0f766e, #2457a6);
  color: #ffffff;
  border: 5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(15, 76, 93, 0.24);
}

:root:not([data-theme]) .map-zoom-button,
html[data-theme="light"] .map-zoom-button {
  border-color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 238, 255, 0.96));
  color: #18365b;
  box-shadow: 0 12px 26px rgba(106, 148, 204, 0.24);
}

:root:not([data-theme]) .map-zoom-button:hover,
:root:not([data-theme]) .map-zoom-button:focus-visible,
html[data-theme="light"] .map-zoom-button:hover,
html[data-theme="light"] .map-zoom-button:focus-visible {
  background: linear-gradient(180deg, #ffffff, #d9ecff);
  box-shadow: 0 16px 32px rgba(106, 148, 204, 0.3);
}

html[data-theme="light"] .list-panel.home-content-stage {
  padding: 20px 20px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.98));
  border: 1px solid rgba(110, 157, 220, 0.24);
  box-shadow: 0 24px 54px rgba(106, 148, 204, 0.12);
}

html[data-theme="light"] .home-content-stage::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(191, 224, 255, 0.16), rgba(127, 180, 255, 0.08));
}

.home-content-stage .content-panel-header {
  align-items: flex-start;
  gap: 14px;
}

html[data-theme="light"] .home-content-stage h2,
html[data-theme="light"] .home-secondary-surface h3,
html[data-theme="light"] .blog-card h2,
html[data-theme="light"] .article-page-body h1 {
  color: #0f2336;
}

html[data-theme="light"] .home-content-stage .content-panel-copy,
html[data-theme="light"] .blog-teaser-copy,
html[data-theme="light"] .article-card-excerpt,
html[data-theme="light"] .blog-card-body p,
html[data-theme="light"] .article-page-excerpt,
html[data-theme="light"] .article-modal-excerpt,
html[data-theme="light"] .submission-guidance-card .submission-disclaimer,
html[data-theme="light"] .content-panel-copy {
  color: #4b6988;
}

.home-content-stage .content-tabs {
  flex-wrap: nowrap;
  gap: 6px;
}

html[data-theme="light"] .home-content-stage .content-tabs {
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(74, 130, 205, 0.34);
  background: linear-gradient(135deg, #7fb4ff, #2e6fbc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .home-content-stage .content-tab {
  min-height: 42px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[data-theme="light"] .home-content-stage .content-tab.active {
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  color: #173756;
  box-shadow: 0 10px 20px rgba(106, 148, 204, 0.18);
  transform: none;
}

.top-list-sort {
  flex-wrap: nowrap;
  gap: 8px;
}

.top-list-sort .content-tab {
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
}

.top-list .post-card {
  min-width: 0;
  max-width: none;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 247, 255, 0.99));
  border: 1px solid rgba(110, 157, 220, 0.22);
  box-shadow: 0 10px 24px rgba(106, 148, 204, 0.11);
}

.top-list .post-card:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 111, 188, 0.34);
}

.top-list .post-thumb-button {
  max-width: none;
}

.top-list .post-thumb {
  max-width: none;
  min-height: 104px;
  aspect-ratio: 16 / 9.2;
  border-radius: 0;
  background: linear-gradient(180deg, #eef6ff, #dbeeff);
}

.top-list .post-thumb.thumb-aspect-1-1,
.top-list .post-thumb.thumb-aspect-9-16,
.top-list .post-thumb.thumb-aspect-16-9 {
  aspect-ratio: 16 / 9.2;
}

.top-list .post-thumb.platform-books {
  min-height: 0;
  aspect-ratio: 2 / 3;
}

.top-list .post-thumb.platform-books.thumb-aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.top-list .post-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  height: 100%;
  padding: 10px 10px 11px;
}

html[data-theme="light"] .top-list .post-title,
html[data-theme="light"] .top-list .article-list-excerpt,
html[data-theme="light"] .top-list .post-author,
html[data-theme="light"] .top-list .post-author-name {
  color: #10253c;
}

.top-list .article-list-excerpt {
  display: none;
}

.top-list .post-title {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.48em;
}

.top-list .book-genre-line {
  margin: -2px 0 0;
}

.top-list .book-genre-badge {
  padding: 3px 7px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.top-list .book-location-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  margin: -1px 0 0;
  color: #2f7d78;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.18;
}

.top-list .book-author-line {
  min-width: 0;
  margin: -1px 0 0;
  color: rgba(255, 247, 237, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.18;
}

.top-list .book-author-line span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-list .book-location-line svg {
  flex: 0 0 auto;
}

.top-list .book-location-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-rating-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.book-rating-badges a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.94);
  color: #115e59;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.book-rating-badges a:first-child {
  border-color: rgba(159, 18, 57, 0.26);
  background: #fff1f2;
  color: #9f1239;
}

.book-rating-badges span {
  color: inherit;
  opacity: 0.78;
}

.book-rating-badges.compact a {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 0.66rem;
}

.top-list .book-top-action {
  min-height: 30px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(193, 18, 31, 0.46);
  background: linear-gradient(135deg, #c1121f, #ef4444);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(193, 18, 31, 0.18);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.top-list .book-top-action svg {
  flex: 0 0 auto;
}

.top-list .book-top-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(193, 18, 31, 0.25);
}

.top-list .book-top-action.audible-top-action,
.top-list .book-top-action.amazon-top-action {
  border-color: rgba(255, 153, 0, 0.46);
  background: linear-gradient(135deg, #ff9900, #f97316);
  box-shadow: 0 8px 16px rgba(255, 153, 0, 0.18);
}

.top-list .book-top-action.audible-top-action:hover,
.top-list .book-top-action.amazon-top-action:hover {
  box-shadow: 0 10px 20px rgba(255, 153, 0, 0.25);
}

.top-list .promotion-post-card .post-title {
  -webkit-line-clamp: 3;
  min-height: 3.72em;
}

html[data-theme="light"] .top-list .post-meta,
html[data-theme="light"] .top-list .article-list-badge {
  color: #6284aa;
  font-size: 0.69rem;
  letter-spacing: 0.05em;
}

.top-list .post-meta.fundraiser-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
  gap: 5px 7px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 228, 230, 0.96));
  color: #8f1128 !important;
  font-size: 0.7rem;
  line-height: 1.12;
  letter-spacing: 0.04em;
  box-shadow: 0 7px 18px rgba(239, 68, 68, 0.12);
}

.top-list .post-meta.fundraiser-meta span {
  font-weight: 800;
}

.top-list .post-meta.fundraiser-meta strong {
  color: #c91f37;
  font-weight: 950;
}

.top-list .post-author {
  display: none;
}

.top-list .post-meta-row {
  gap: 6px;
  margin-bottom: 0;
}

.top-list .article-post-card .post-thumb {
  height: auto;
  min-height: 104px;
  aspect-ratio: 16 / 9.2;
}

.top-list .event-detail-card {
  align-items: start;
  margin: 4px 0 10px;
  padding: 12px 12px;
  min-height: 148px;
}

.top-list .event-detail-chip {
  align-self: center;
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.top-list .event-detail-heading {
  align-items: center;
  gap: 8px;
}

.top-list .event-detail-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-list .event-detail-price {
  flex: 0 0 auto;
  margin: 0;
  padding: 3px 8px;
  font-size: 0.66rem;
  line-height: 1.15;
  box-shadow: 0 5px 12px rgba(244, 190, 49, 0.16);
}

.top-list .event-detail-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.33;
}

.top-list .event-detail-date-time {
  -webkit-line-clamp: 1;
}


.top-list .medic-detail-card {
  min-height: 160px;
}

.top-list .medic-specialization-badge {
  max-width: 52%;
  font-size: 0.68rem;
}

.top-list .medic-source-line {
  -webkit-line-clamp: 1;
}

.event-detail-chip[class*="platform-event-"] {
  background: var(--event-pin-fill) !important;
  color: #ffffff !important;
}

.event-detail-chip.platform-event-standup {
  color: #4a3200 !important;
}

.top-list .post-liked-badge {
  display: none;
}

.top-list .post-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-items: stretch;
}

.top-list .post-actions .ghost,
.top-list .post-actions .like-button {
  min-height: 32px;
  width: 100%;
  min-width: 0;
  padding: 6px 9px;
  font-size: 0.69rem;
  line-height: 1.1;
  white-space: nowrap;
  border-radius: 999px;
  justify-content: center;
  text-align: center;
}

.top-list .post-actions .ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(110, 157, 220, 0.34);
  color: #173756;
  box-shadow: 0 5px 12px rgba(46, 111, 188, 0.08);
}

.top-list .post-actions .like-button {
  background: #f2f8ff;
  color: #173756;
  border: 1px solid rgba(110, 157, 220, 0.22);
  box-shadow: none;
}

.top-list .post-actions .ticket-action {
  border-color: rgba(22, 163, 74, 0.45) !important;
  background: linear-gradient(135deg, #16a34a, #0f766e) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(20, 184, 166, 0.18);
}

.top-list .post-actions .help-action {
  border-color: rgba(217, 119, 6, 0.45) !important;
  background: linear-gradient(135deg, #f59e0b, #dc2626) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.22) !important;
  font-weight: 900;
}

.top-list .post-actions .help-action:hover {
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.3) !important;
}

.top-list .post-actions .like-button.liked {
  background: linear-gradient(135deg, #ffef99, #ffd56b);
  color: #0f2438;
  border-color: transparent;
}

.home-secondary-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(342px, 0.84fr);
  gap: 16px;
}

.home-secondary-main,
.home-secondary-rail {
  gap: 16px;
}

html[data-theme="light"] .home-secondary-surface {
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid rgba(42, 94, 102, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 245, 0.99));
  box-shadow: 0 16px 38px rgba(38, 78, 93, 0.1);
}

html[data-theme="light"] .home-secondary-surface::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(15, 118, 110, 0.1), rgba(109, 59, 140, 0.07));
}

.story-panel {
  padding: clamp(22px, 3vw, 34px);
}

.story-panel-inner {
  display: grid;
  gap: 14px;
}

.story-panel-copy {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.story-panel-copy p {
  margin: 0;
  color: #17324b;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.78;
}

.story-panel-copy .story-panel-closing {
  font-weight: 800;
  color: #5b2c83;
}

.category-story {
  display: grid;
  gap: 18px;
  margin-top: clamp(18px, 2.6vw, 28px);
}

.category-story-header {
  display: grid;
  gap: 8px;
  max-width: 780px;
}

.category-story-header h3 {
  margin: 0;
  color: #132c43;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.category-story-header p {
  margin: 0;
  color: #42617b;
  line-height: 1.65;
}

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

.category-story-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(190, 46, 70, 0.16);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 184, 193, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 248, 0.88));
  box-shadow: 0 12px 30px rgba(176, 43, 67, 0.08);
}

.category-story-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(201, 31, 55, 0.1);
  color: #9c1831;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-story-card h4 {
  margin: 0;
  color: #132c43;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.category-story-card p {
  margin: 0;
  color: #435f78;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 1280px) {
  .category-story-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .category-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .category-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .category-story-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] .story-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 244, 246, 0.99) 46%, rgba(255, 232, 236, 0.99));
}

html[data-theme="light"] .story-panel .overline,
html[data-theme="light"] .story-panel-copy p {
  color: #17324b;
}

html[data-theme="light"] .story-panel .overline {
  color: #9c1831;
}

html[data-theme="light"] .motivation {
  padding: 0;
  border: none;
  background: transparent;
}

html[data-theme="light"] .motivation-card h3,
html[data-theme="light"] .motivation-card li,
html[data-theme="light"] .blog-teaser-mini-title {
  color: #132c43;
}

html[data-theme="light"] .home-secondary-main .motivation-card li::before {
  background: linear-gradient(135deg, #0f766e, #2457a6);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

html[data-theme="light"] .home-cta-surface {
  background: linear-gradient(135deg, #f7fbf8, #e3f3ef 55%, #dce7f7);
  border-color: rgba(42, 94, 102, 0.22);
}

html[data-theme="light"] .home-cta-surface .overline,
html[data-theme="light"] .home-cta-surface .cta-copy {
  color: #234357;
}

html[data-theme="light"] .home-cta-surface .primary {
  align-self: center;
  min-height: 44px;
  padding-inline: 16px;
  background: linear-gradient(180deg, #0f766e, #2457a6);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 76, 93, 0.22);
}

html[data-theme="light"] .submission-guidance-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 245, 0.98));
}

html[data-theme="light"] .blog-teaser-card {
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: linear-gradient(135deg, #f8fbf8 0%, #e3f3ef 42%, #dde9f7 100%);
  border-color: rgba(42, 94, 102, 0.18);
}

.blog-teaser-header {
  gap: 10px;
  align-items: flex-start;
}

.blog-teaser-card h3 {
  margin-bottom: 2px;
  font-size: 0.94rem;
}

.blog-teaser-copy {
  font-size: 0.86rem;
  line-height: 1.34;
}

.blog-teaser-grid {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.blog-teaser-mini-card {
  flex: 1 1;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
}

.blog-teaser-mini-thumb {
  aspect-ratio: 16 / 6.6;
  border-radius: 10px;
}

.blog-teaser-mini-title {
  font-size: 0.76rem;
  line-height: 1.18;
  -webkit-line-clamp: 1;
}

html[data-theme="light"] .blog-teaser-card h3,
html[data-theme="light"] .blog-teaser-card .blog-teaser-copy,
html[data-theme="light"] .blog-teaser-card .overline {
  color: #13273d;
}

html[data-theme="light"] .blog-teaser-link {
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #102844, #091a2f);
  border: 1px solid rgba(8, 27, 47, 0.12);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 40, 68, 0.2);
}

html[data-theme="light"] .blog-teaser-mini-card,
html[data-theme="light"] .article-card,
html[data-theme="light"] .blog-card,
html[data-theme="light"] .article-page-card {
  border-radius: 24px;
  border: 1px solid rgba(200, 221, 244, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: 0 16px 36px rgba(103, 144, 191, 0.12);
}

html[data-theme="light"] .article-card-body,
html[data-theme="light"] .blog-card-body,
html[data-theme="light"] .article-page-body {
  padding: 18px 18px 20px;
}

html[data-theme="light"] .article-card-location,
html[data-theme="light"] .blog-card-meta,
html[data-theme="light"] .article-card-meta,
html[data-theme="light"] .article-page-meta,
html[data-theme="light"] .article-page-excerpt,
html[data-theme="light"] .article-modal-excerpt {
  color: #5a7594;
}

html[data-theme="light"] .article-card-actions .ghost,
html[data-theme="light"] .blog-card-actions .ghost,
html[data-theme="light"] .article-page-actions .ghost,
html[data-theme="light"] .article-modal-actions .ghost,
html[data-theme="light"] .article-section-link,
html[data-theme="light"] .blog-backlinks a,
html[data-theme="light"] .blog-backlink a {
  background: #f1f6fc;
  color: #113251;
  border: 1px solid rgba(178, 203, 229, 0.86);
}

html[data-theme="light"] .blog-shell,
html[data-theme="light"] .article-shell {
  max-width: 1200px;
  padding-top: 40px;
}

html[data-theme="light"] .blog-hero {
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(200, 221, 244, 0.72);
  background: linear-gradient(135deg, rgba(86, 211, 222, 0.16), rgba(255, 255, 255, 0.94) 48%, rgba(243, 173, 142, 0.24));
  box-shadow: 0 18px 40px rgba(100, 142, 188, 0.1);
}

html[data-theme="light"] .blog-grid {
  gap: 18px;
}

html[data-theme="light"] .modal-overlay {
  background: rgba(226, 237, 250, 0.74);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

html[data-theme="light"] .modal-card.article-modal-card {
  border-radius: 28px;
  border: 1px solid rgba(200, 221, 244, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: 0 24px 56px rgba(80, 120, 166, 0.18);
}

html[data-theme="light"] .modal-header {
  position: static;
  background: transparent;
}

html[data-theme="light"] .modal-close-inline {
  background: #eff6fd;
  color: #0f2944;
  border-color: rgba(176, 201, 229, 0.84);
}

html[data-theme="light"] .cookie-consent {
  inset: auto 22px 22px auto;
  justify-content: flex-end;
  padding-left: 22px;
}

html[data-theme="light"] .cookie-consent-panel {
  width: min(430px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(198, 219, 242, 0.84);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 50px rgba(101, 142, 190, 0.18);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  padding: 18px 18px 16px;
}

html[data-theme="light"] .cookie-consent-panel h2,
html[data-theme="light"] .cookie-consent-panel p,
html[data-theme="light"] .cookie-consent-links,
html[data-theme="light"] .cookie-consent-links a {
  color: #153553;
}

html[data-theme="light"] .cookie-consent-actions .primary {
  background: linear-gradient(180deg, #132842, #0a1a2d);
  color: #ffffff;
}

html[data-theme="light"] .cookie-consent-actions .ghost {
  background: #eff5fb;
  color: #123250;
  border: 1px solid rgba(180, 203, 227, 0.86);
}

html[data-theme="light"] .legal-section {
  border-radius: 24px;
  border: 1px solid rgba(198, 219, 242, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.98));
  box-shadow: 0 18px 42px rgba(106, 147, 194, 0.1);
}

html[data-theme="light"] .site-footer {
  position: relative;
  margin-top: 8px;
  padding: 24px 0 34px;
  border-top: none;
  color: #5b7391;
}

html[data-theme="light"] .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 235, 248, 0), rgba(224, 239, 252, 0.95) 20%, rgba(224, 239, 252, 0.95) 80%, rgba(223, 235, 248, 0));
}

html[data-theme="light"] .site-footer a {
  color: #173552;
}

@media (max-width: 980px) {
  .home-secondary-grid {
    grid-template-columns: 1fr;
  }

  .home-secondary-main,
  .home-secondary-rail {
    gap: 18px;
  }

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

  .top-list .post-card {
    max-width: none;
  }

  .blog-teaser-grid {
    flex-wrap: wrap;
  }

  .blog-teaser-mini-card {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 4px);
  }
}

@media (max-width: 720px) {
  .home-shell {
    padding-top: 10px;
    gap: 18px;
  }

  :root:not([data-theme]) .home-hero-stage,
  html[data-theme="light"] .home-hero-stage,
  html[data-theme="dark"] .home-hero-stage,
  .home-hero-stage {
    padding: 18px 18px 20px;
    border-radius: 24px;
  }

  :root:not([data-theme]) .brand-logo-wordmark,
  html[data-theme="light"] .brand-logo-wordmark,
  html[data-theme="dark"] .brand-logo-wordmark {
    font-size: 2.08rem;
  }

  .home-hero-stage .hero-title,
  .home-hero-stage .hero-title-link,
  .home-hero-stage .brand-logo,
  .home-hero-stage .brand-logo-wordmark {
    max-width: 100%;
  }

  .home-hero-stage .hero-title {
    width: 100%;
  }

  .home-hero-stage .hero-title-link {
    min-width: 0;
    overflow: visible;
  }

  .home-hero-stage .brand-logo {
    min-width: 0;
  }

  .home-hero-stage .brand-logo-wordmark {
    flex-shrink: 1;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
  }

  :root:not([data-theme]) .home-map-stage,
  html[data-theme="light"] .home-map-stage,
  html[data-theme="dark"] .home-map-stage,
  .home-map-stage {
    padding: 2px;
    border-radius: 16px;
  }

  .home-map-stage .map-shell {
    height: min(68vh, 430px);
    border-radius: 14px;
  }

  .map-style-toggle {
    top: 10px;
    left: 10px;
    padding: 5px;
    gap: 4px;
  }

  .map-style-chip {
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .map-density-banner {
    max-width: calc(100% - 168px);
  }

  .floating-add {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-width: 4px;
  }

  .desktop-map-zoom-controls {
    display: none;
  }

  .map-scroll-list-cta {
    bottom: 10px;
    max-width: calc(100% - 28px);
    min-height: 34px;
    padding: 7px 12px 7px 14px;
    gap: 7px;
    font-size: 0.72rem;
    box-shadow: 0 10px 22px rgba(6, 15, 30, 0.2);
  }

  .map-scroll-list-cta svg {
    width: 14px;
    height: 14px;
  }

  .home-content-stage,
  .home-secondary-surface,
  .blog-hero,
  .article-page-card,
  .cookie-consent-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-content-stage .content-panel-header {
    align-items: stretch;
  }

  .home-content-stage .content-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .home-content-stage .content-tab {
    flex: 1 1;
    justify-content: center;
  }

  .top-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .top-list .post-card {
    max-width: none;
    border-color: rgba(67, 117, 181, 0.34) !important;
    box-shadow:
      0 14px 30px rgba(106, 148, 204, 0.13),
      0 0 0 1px rgba(255, 255, 255, 0.68) inset !important;
  }

  html[data-theme="light"] .top-list .post-card,
  :root:not([data-theme]) .top-list .post-card {
    border-color: rgba(67, 117, 181, 0.36) !important;
    box-shadow:
      0 14px 30px rgba(106, 148, 204, 0.13),
      0 0 0 1px rgba(255, 255, 255, 0.68) inset !important;
  }

  html[data-theme="dark"] .top-list .post-card {
    border-color: rgba(151, 181, 237, 0.3) !important;
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(151, 181, 237, 0.16) inset !important;
  }

  .top-list .event-post-card {
    border-color: rgba(22, 163, 74, 0.4) !important;
    border-top-width: 4px;
    box-shadow:
      0 16px 34px rgba(20, 83, 45, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.62) inset !important;
  }

  html[data-theme="light"] .top-list .event-post-card,
  :root:not([data-theme]) .top-list .event-post-card {
    border-color: rgba(22, 163, 74, 0.4) !important;
  }

  .top-list .event-post-card .event-detail-card {
    margin-bottom: 0;
  }

  .top-list .event-post-card .post-actions {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(22, 163, 74, 0.24);
  }

  html[data-theme="dark"] .top-list .event-post-card {
    border-color: rgba(94, 234, 212, 0.34) !important;
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(94, 234, 212, 0.12) inset !important;
  }

  html[data-theme="dark"] .top-list .event-post-card .post-actions {
    border-top-color: rgba(94, 234, 212, 0.2);
  }

  .top-list .post-thumb {
    min-height: 148px;
  }

  .top-list .post-actions {
    grid-template-columns: 1fr;
  }

  .top-list .post-actions .ghost,
  .top-list .post-actions .like-button {
    flex: 1 1 100%;
    width: 100%;
  }

  .cookie-consent {
    inset: auto 12px 12px 12px;
    justify-content: center;
    padding-left: 0;
  }
}
@media (max-width: 900px) {
  .admin-attachable-article {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .admin-attachable-article-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pin-attached-article-body {
    display: block;
  }
}

@media (max-width: 640px) {
  .admin-article-summary-actions .ghost,
  .admin-article-empty-state .ghost,
  .admin-attachable-article-actions .ghost,
  .admin-attachable-article-actions .primary {
    width: 100%;
  }

  .admin-article-header-row,
  .admin-article-summary,
  .admin-article-empty-state,
  .pin-attached-article-header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .admin-attachable-article-thumb {
    width: 100%;
    min-height: 168px;
  }
}

/* Biletomat-style event + region map layer */
.map-region-loading-pill {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 540;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(9, 13, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eef3ff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  pointer-events: none;
}

.map-region-toolbar {
  position: absolute;
  right: 14px;
  top: 142px;
  z-index: 770;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(520px, calc(100% - 28px));
  pointer-events: none;
}

.map-region-toolbar > * {
  pointer-events: auto;
}

.map-region-reset {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(12, 17, 38, 0.82);
  color: #eff6ff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.map-region-loading {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(12, 17, 38, 0.72);
  color: #cfe1ff;
  font-size: 0.78rem;
  font-weight: 800;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.map-region-status {
  position: absolute;
  z-index: 770;
  left: 14px;
  right: 14px;
  bottom: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 17, 38, 0.82);
  color: #eaf2ff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.map-region-status span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fc1ff;
}

.map-region-status strong {
  font-size: 1rem;
}

.map-region-status em {
  color: #cfe1ff;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.region-cluster-wrapper,
.pin-event-group-wrapper {
  background: transparent;
  border: 0;
}

.region-cluster-wrapper-neighbor {
  opacity: 0.92;
  filter: saturate(0.95);
}

.region-cluster {
  min-width: 154px;
  min-height: 48px;
  border-radius: 999px;
  padding: 7px 8px 7px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(33, 37, 91, 0.96), rgba(58, 51, 128, 0.94));
  border: 1px solid rgba(102, 94, 207, 0.78);
  box-shadow:
    0 9px 20px rgba(20, 18, 64, 0.44),
    0 2px 0 rgba(255, 255, 255, 0.12) inset;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.region-cluster:hover {
  transform: translateY(-1px) scale(1.025);
  box-shadow:
    0 13px 26px rgba(20, 18, 64, 0.52),
    0 2px 0 rgba(255, 255, 255, 0.14) inset;
}

.region-cluster-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  color: #ffffff;
  font-size: 0.83rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.region-cluster-name span {
  display: block;
}

.region-cluster-count {
  min-width: 45px;
  height: 35px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111a46;
  background: linear-gradient(135deg, #58efd7, #45d5ff);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 8px 14px rgba(21, 214, 221, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  font-size: 0.79rem;
  font-weight: 950;
}

.region-cluster-wrapper-compact {
  pointer-events: auto;
}

.region-cluster-compact {
  width: 78px;
  min-width: 78px;
  height: 46px;
  min-height: 46px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px 6px 5px;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(17, 28, 62, 0.88);
  text-align: center;
  box-shadow:
    0 8px 18px rgba(8, 16, 36, 0.24),
    0 0 0 2px rgba(126, 234, 204, 0.12);
}

.region-cluster-compact:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 12px 24px rgba(8, 16, 36, 0.34),
    0 0 0 4px rgba(126, 234, 204, 0.14);
}

.region-cluster-compact .region-cluster-name {
  display: block;
  width: 100%;
  font-size: 0.67rem;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
}

.region-cluster-compact .region-cluster-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-cluster-compact .region-cluster-count {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7eeacc;
  box-shadow: none;
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

@media (max-width: 720px) {
  .map-region-toolbar {
    top: 66px;
    right: 12px;
    max-width: calc(100% - 24px);
    justify-content: flex-end;
  }

  .map-region-reset {
    padding: 8px 11px;
    font-size: 0.72rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  }

  .map-region-status {
    padding: 10px 12px;
    gap: 1px;
  }

  .map-region-status em {
    display: none;
  }
}

.pin-event-cluster-wrapper,
.pin-event-group-wrapper,
.pin-job-group-wrapper {
  display: block;
  overflow: visible !important;
}

.pin-icon.event-pin {
  width: 36px;
  height: 47px;
  font-size: 0.74rem;
  line-height: 1;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.24);
}

.pin-icon.event-cluster-pin {
  width: 42px;
  height: 52px;
  font-size: 0.72rem;
}

.pin-icon.event-pin::before {
  content: none;
}

.pin-icon.event-pin::after {
  width: 11px;
  height: 12px;
  bottom: -10px;
  background: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: none;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.16);
}

.pin-event-icon {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 21px;
  color: inherit;
  font-size: 1.02rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.pin-icon.event-cluster-pin .pin-event-icon {
  top: -4px;
  width: 25px;
  height: 23px;
}

.pin-event-icon-aggregate img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.pin-event-count,
.pin-event-date,
.pin-event-time {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.05;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  font-weight: 950;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}

.pin-event-count {
  bottom: 27px;
  min-width: 70px;
  background: rgba(255, 255, 255, 0.96);
  color: #102040;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.48rem;
  letter-spacing: 0.005em;
  text-transform: none;
}

.pin-event-date {
  bottom: 17px;
  min-width: 44px;
  background: rgba(255, 239, 164, 0.98);
  color: #4b3100;
  border: 1px solid rgba(255, 255, 255, 0.62);
  font-size: 0.47rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pin-event-time {
  bottom: 2px;
  min-width: 38px;
  background: rgba(8, 12, 24, 0.88);
  color: #f7faff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding-inline: 7px;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pin-icon.event-cluster-pin .pin-event-meta-stack {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.pin-icon.event-cluster-pin .pin-event-meta-stack .pin-event-count,
.pin-icon.event-cluster-pin .pin-event-meta-stack .pin-event-date,
.pin-icon.event-cluster-pin .pin-event-meta-stack .pin-event-time {
  position: relative;
  inset: auto;
  transform: none;
  margin: 0;
}

.pin-icon.event-cluster-pin .pin-event-meta-stack .pin-event-date,
.pin-icon.event-cluster-pin .pin-event-meta-stack .pin-event-count {
  margin-bottom: -3px;
}

.pin-icon.event-cluster-pin .pin-event-meta-stack .pin-event-date {
  z-index: 5;
  min-width: 56px;
  font-size: 0.45rem;
  padding-inline: 7px;
}

.pin-icon.event-cluster-pin .pin-event-meta-stack .pin-event-count {
  z-index: 4;
  min-width: 70px;
}

.pin-icon.event-cluster-pin .pin-event-meta-stack .pin-event-time {
  top: 1px;
  z-index: 3;
  min-width: 38px;
  font-size: 0.48rem;
  padding-inline: 6px;
}

.pin-icon.event-pin-priced .pin-like {
  right: auto;
  left: -7px;
}

.pin-event-price {
  position: absolute;
  top: -8px;
  right: -23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 34px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  font-size: 0.49rem;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0.005em;
  text-transform: none;
  box-shadow:
    0 5px 11px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 3;
  pointer-events: none;
}

.pin-icon.event-cluster-pin .pin-event-price-stack {
  position: absolute;
  top: -10px;
  right: -34px;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
}

.pin-icon.event-cluster-pin .pin-event-price-stack .pin-event-price {
  position: relative;
  top: auto;
  right: auto;
  min-width: 48px;
  margin: 0;
  font-size: 0.46rem;
  padding-inline: 6px;
}

.pin-icon.event-cluster-pin .pin-event-price-stack.range .pin-event-price + .pin-event-price {
  margin-top: -3px;
}

.pin-icon.event-cluster-pin .pin-event-price-stack.single {
  top: -9px;
}

.pin-event-price.price-low {
  background: linear-gradient(135deg, rgba(122, 239, 145, 0.98), rgba(38, 190, 86, 0.98));
  color: #06260f;
}

.pin-event-price.price-mid {
  background: linear-gradient(135deg, rgba(255, 232, 128, 0.98), rgba(244, 190, 49, 0.98));
  color: #432c00;
}

.pin-event-price.price-high {
  background: linear-gradient(135deg, rgba(255, 184, 96, 0.98), rgba(248, 119, 37, 0.98));
  color: #3b1800;
}

.pin-event-price.price-premium {
  background: linear-gradient(135deg, rgba(255, 112, 112, 0.98), rgba(220, 38, 38, 0.98));
  color: #fff7f7;
}

.pin-icon.platform-event-concerts,
.platform-chip.platform-event-concerts,
.external-fallback.platform-event-concerts,
.viewer.external.platform-event-concerts .external-pill {
  --event-pin-fill: linear-gradient(135deg, #ff7d98, #c93663);
  background: var(--event-pin-fill);
}

.pin-icon.platform-event-theatre,
.platform-chip.platform-event-theatre,
.external-fallback.platform-event-theatre,
.viewer.external.platform-event-theatre .external-pill {
  --event-pin-fill: linear-gradient(135deg, #aa83ff, #7048d7);
  background: var(--event-pin-fill);
}

.pin-icon.platform-event-cabaret,
.platform-chip.platform-event-cabaret,
.external-fallback.platform-event-cabaret,
.viewer.external.platform-event-cabaret .external-pill {
  --event-pin-fill: linear-gradient(135deg, #ffc27a, #e97927);
  background: var(--event-pin-fill);
}

.pin-icon.platform-event-standup,
.platform-chip.platform-event-standup,
.external-fallback.platform-event-standup,
.viewer.external.platform-event-standup .external-pill {
  --event-pin-fill: linear-gradient(135deg, #ffdc67, #e4a51d);
  background: var(--event-pin-fill);
  color: #4a3200;
}

.pin-icon.platform-event-sports,
.platform-chip.platform-event-sports,
.external-fallback.platform-event-sports,
.viewer.external.platform-event-sports .external-pill {
  --event-pin-fill: linear-gradient(135deg, #22c55e, #0f766e);
  background: var(--event-pin-fill);
}

.pin-icon.platform-event-kids,
.platform-chip.platform-event-kids,
.external-fallback.platform-event-kids,
.viewer.external.platform-event-kids .external-pill {
  --event-pin-fill: linear-gradient(135deg, #6fda98, #23afa1);
  background: var(--event-pin-fill);
}

.pin-icon.platform-event-festivals,
.platform-chip.platform-event-festivals,
.external-fallback.platform-event-festivals,
.viewer.external.platform-event-festivals .external-pill {
  --event-pin-fill: linear-gradient(135deg, #6db7ff, #3d74df);
  background: var(--event-pin-fill);
}

.pin-icon.platform-event-other,
.platform-chip.platform-event-other,
.external-fallback.platform-event-other,
.viewer.external.platform-event-other .external-pill {
  --event-pin-fill: linear-gradient(135deg, #5eead4, #2563eb);
  background: var(--event-pin-fill);
}

.pin-icon.platform-event-aggregate {
  --event-pin-fill: linear-gradient(135deg, #7dd3fc, #2563eb 58%, #1d4ed8);
  background: var(--event-pin-fill);
}

.pin-icon.job-cluster-pin {
  --event-pin-fill: linear-gradient(135deg, #6366f1, #8b5cf6);
  background: var(--event-pin-fill);
}

.pin-icon.job-cluster-pin .pin-job-icon {
  top: -2px;
  width: 28px;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}

.pin-icon.job-cluster-pin .pin-event-count {
  min-width: 66px;
  color: #24133f;
}


.viewer.external.platform-event-concerts .external-pill {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.viewer.external.platform-event-theatre .external-pill {
  background: linear-gradient(135deg, #7c2d12, #f97316);
}

.viewer.external.platform-event-cabaret .external-pill {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.viewer.external.platform-event-standup .external-pill {
  background: linear-gradient(135deg, #111827, #6366f1);
}

.viewer.external.platform-event-sports .external-pill {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.viewer.external.platform-event-kids .external-pill {
  background: linear-gradient(135deg, #06b6d4, #f472b6);
}

.viewer.external.platform-event-festivals .external-pill {
  background: linear-gradient(135deg, #eab308, #a855f7);
}

.viewer.external.platform-event-other .external-pill {
  background: linear-gradient(135deg, #334155, #14b8a6);
}

.pin-event-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--pin-summary-text, #dbe6ff);
  font-size: 0.82rem;
  font-weight: 800;
}

.pin-event-summary span {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--pin-summary-pill-bg, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--pin-summary-pill-border, rgba(255, 255, 255, 0.12));
}

.pin-event-summary .pin-event-summary-chip {
  background: var(--pin-summary-chip-bg, rgba(245, 158, 11, 0.2));
  border-color: var(--pin-summary-chip-border, rgba(245, 158, 11, 0.34));
  color: var(--pin-summary-chip-text, #fde68a);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.book-genre-summary {
  --pin-summary-chip-bg: rgba(255, 183, 77, 0.2);
  --pin-summary-chip-border: rgba(255, 183, 77, 0.38);
  --pin-summary-chip-text: #ffd99a;
}

.book-author-summary {
  --pin-summary-chip-bg: rgba(193, 18, 31, 0.18);
  --pin-summary-chip-border: rgba(193, 18, 31, 0.34);
  --pin-summary-chip-text: #fecaca;
}

.book-location-summary {
  --pin-summary-chip-bg: rgba(45, 212, 191, 0.18);
  --pin-summary-chip-border: rgba(45, 212, 191, 0.34);
  --pin-summary-chip-text: #99f6e4;
}


.medic-popup-specialization,
.medic-summary-specialization,
.medic-profile-specialization,
.medic-specialization-badge,
.map-spotlight-specialization {
  font-weight: 950;
  letter-spacing: -0.01em;
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.34);
}

.medic-popup-specialization {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 6px 10px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(14, 165, 233, 0.18));
  color: #a7ffef;
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.14);
}

.medic-profile-summary {
  border-color: rgba(45, 212, 191, 0.22);
}

.medic-summary-specialization {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.16);
  color: #99f6e4;
}

.medic-profile-card {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 18px;
  padding: 13px 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.12), transparent 36%),
    rgba(20, 184, 166, 0.08);
  color: #d9fffb;
}

.medic-profile-card strong {
  font-size: 1rem;
  color: #f0fdfa;
}

.medic-profile-card em {
  color: #67e8f9;
  font-style: normal;
  font-weight: 800;
}

.medic-profile-card p {
  margin: 0;
  color: #c7f9ef;
  font-size: 0.9rem;
  line-height: 1.42;
}

.pyszne-popup-summary {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 18px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 146, 60, 0.18), transparent 36%),
    rgba(249, 115, 22, 0.08);
  color: #ffedd5;
}

.pyszne-popup-summary strong {
  color: #fff7ed;
  font-size: 0.98rem;
}

.pyszne-popup-summary p {
  margin: 0;
  color: #fed7aa;
  font-size: 0.9rem;
  line-height: 1.42;
}


.medic-detail-card {
  border-color: rgba(45, 212, 191, 0.18);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.13), rgba(14, 165, 233, 0.07)),
    rgba(255, 255, 255, 0.06);
}

.medic-detail-card .event-detail-heading {
  align-items: center;
}

.medic-specialization-badge {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.98), rgba(14, 165, 233, 0.96)) !important;
  color: #ecfeff !important;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.2) !important;
}

.medic-source-line {
  color: #67e8f9;
  font-weight: 800;
}

.medic-detail-description {
  color: rgba(219, 234, 254, 0.78);
}

html[data-theme="light"] .pin-event-summary {
  --pin-summary-text: #174579;
  --pin-summary-pill-bg: rgba(36, 94, 150, 0.11);
  --pin-summary-pill-border: rgba(36, 94, 150, 0.24);
  --pin-summary-chip-bg: rgba(255, 222, 137, 0.72);
  --pin-summary-chip-border: rgba(222, 142, 22, 0.48);
  --pin-summary-chip-text: #8a4a00;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .pin-event-summary {
    --pin-summary-text: #174579;
    --pin-summary-pill-bg: rgba(36, 94, 150, 0.11);
    --pin-summary-pill-border: rgba(36, 94, 150, 0.24);
    --pin-summary-chip-bg: rgba(255, 222, 137, 0.72);
    --pin-summary-chip-border: rgba(222, 142, 22, 0.48);
    --pin-summary-chip-text: #8a4a00;
  }
}

.modal-cluster.same-place {
  margin: 0 0 16px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.modal-cluster-header .overline {
  margin: 0;
}

.modal-cluster-header strong {
  color: #f7fbff;
  font-size: 0.85rem;
}

.modal-cluster-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.modal-cluster-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef4ff;
  text-align: left;
  cursor: pointer;
}

.modal-cluster-item.active {
  border-color: rgba(114, 245, 160, 0.62);
  background: rgba(114, 245, 160, 0.12);
}

.modal-cluster-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.modal-cluster-item strong,
.modal-cluster-item em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-cluster-item strong {
  font-size: 0.86rem;
}

.modal-cluster-item em {
  margin-top: 2px;
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.72rem;
  font-style: normal;
}

.ticket-action {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(135deg, #16a34a, #14b8a6);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.22);
}

.help-action {
  border-color: rgba(251, 191, 36, 0.65);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.24);
}

.hotel-action {
  border-color: rgba(59, 130, 246, 0.62);
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 58%, #f59e0b 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 15px 34px rgba(37, 99, 235, 0.28),
    0 0 0 3px rgba(125, 211, 252, 0.16);
}

.job-action {
  border-color: rgba(139, 92, 246, 0.68);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 15px 34px rgba(99, 102, 241, 0.30),
    0 0 0 3px rgba(139, 92, 246, 0.14);
}

.medic-action {
  border-color: rgba(20, 184, 166, 0.68);
  background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 15px 34px rgba(13, 148, 136, 0.28),
    0 0 0 3px rgba(45, 212, 191, 0.14);
}

.source-action {
  color: #fff;
  text-decoration: none;
}

.gastronomy-action {
  border-color: rgba(249, 115, 22, 0.72);
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 15px 34px rgba(249, 115, 22, 0.30),
    0 0 0 3px rgba(254, 215, 170, 0.16);
}

.news-action {
  border-color: rgba(166, 31, 61, 0.68);
  background: linear-gradient(135deg, #6f1022, #a61f3d);
  box-shadow: 0 14px 30px rgba(166, 31, 61, 0.25);
}

.sport-action {
  border-color: rgba(34, 197, 94, 0.58);
  background: linear-gradient(135deg, #16803c, #22c55e);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.22);
}

.celebrity-action {
  border-color: rgba(255, 242, 0, 0.7);
  background: linear-gradient(135deg, #fff200, #ffd400);
  color: #4a3200;
  box-shadow: 0 14px 30px rgba(255, 212, 0, 0.24);
}

.linkedin-action {
  border-color: rgba(10, 102, 194, 0.68);
  background: linear-gradient(135deg, #064b91, #0a66c2);
  box-shadow: 0 14px 30px rgba(10, 102, 194, 0.25);
}

.twitter-action {
  border-color: rgba(15, 20, 25, 0.72);
  background: linear-gradient(135deg, #0f1419, #2f3644);
  box-shadow: 0 14px 30px rgba(15, 20, 25, 0.22);
}

.book-action {
  border-color: rgba(139, 94, 52, 0.68);
  background: linear-gradient(135deg, #8b5e34, #5c3b1e);
  box-shadow: 0 14px 30px rgba(92, 59, 30, 0.25);
}

.book-action.youtube-partner-action {
  border-color: rgba(239, 68, 68, 0.7);
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 14px 30px rgba(185, 28, 28, 0.25);
}

.book-action.legimi-partner-action {
  border-color: rgba(41, 172, 69, 0.72);
  background: linear-gradient(135deg, #2cb34a, #0f8f3a);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 143, 58, 0.26);
}

.book-action.audiobooksnow-partner-action {
  border-color: rgba(193, 18, 31, 0.72);
  background: linear-gradient(135deg, #c1121f, #ef4444);
  color: #fff;
  box-shadow: 0 14px 30px rgba(193, 18, 31, 0.26);
}

.book-action.audible-partner-action {
  border-color: rgba(255, 153, 0, 0.72);
  background: linear-gradient(135deg, #ff9900, #f97316);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 153, 0, 0.24);
}

.book-action.amazon-partner-action {
  border-color: rgba(255, 153, 0, 0.72);
  background: linear-gradient(135deg, #ff9900, #f97316);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 153, 0, 0.22);
}

.book-link-actions {
  width: min(100%, 520px);
  margin: -2px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: center;
  justify-content: center;
}

.book-link-actions .book-action {
  min-height: 44px;
  min-width: min(100%, 220px);
  justify-content: center;
  padding: 12px 18px;
  text-align: center;
  white-space: nowrap;
}

.book-detail-meta {
  --book-meta-label-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(139, 92, 246, 0.20));
  --book-meta-label-border: rgba(147, 197, 253, 0.34);
  --book-meta-label-color: #dbeafe;
  --book-meta-icon-color: #bfdbfe;
  width: min(100%, 520px);
  margin: -2px auto 0;
  display: grid;
  gap: 8px;
  align-self: center;
  color: #dbe6ff;
}

.book-detail-meta p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  min-width: 0;
}

.book-detail-meta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--book-meta-label-bg);
  border: 1px solid var(--book-meta-label-border);
  color: var(--book-meta-label-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.book-detail-meta-value {
  min-width: 0;
  color: #f8fbff;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.book-detail-meta-value.with-icon {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--book-meta-icon-color);
}

.book-detail-meta-value.with-icon svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.book-detail-meta-text {
  min-width: 0;
}

@media (min-width: 769px) {
  .modal-card.book-modal .book-detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
  }

  .modal-card.book-modal .book-detail-meta p {
    display: inline-grid;
    width: auto;
  }
}

html[data-theme="light"] .book-detail-meta {
  --book-meta-label-bg: linear-gradient(135deg, rgba(219, 234, 254, 0.94), rgba(237, 233, 254, 0.92));
  --book-meta-label-border: rgba(79, 70, 229, 0.28);
  --book-meta-label-color: #1e3a8a;
  --book-meta-icon-color: #2457a6;
  color: #174579;
}

html[data-theme="light"] .book-detail-meta-label {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] .book-detail-meta-value {
  color: #10253c;
}

html[data-theme="light"] .book-detail-meta-value.with-icon {
  color: #0f766e;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .book-detail-meta {
    --book-meta-label-bg: linear-gradient(135deg, rgba(219, 234, 254, 0.94), rgba(237, 233, 254, 0.92));
    --book-meta-label-border: rgba(79, 70, 229, 0.28);
    --book-meta-label-color: #1e3a8a;
    --book-meta-icon-color: #2457a6;
    color: #174579;
  }

  :root:not([data-theme]) .book-detail-meta-label {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  }

  :root:not([data-theme]) .book-detail-meta-value {
    color: #10253c;
  }

  :root:not([data-theme]) .book-detail-meta-value.with-icon {
    color: #0f766e;
  }
}

@media (max-width: 768px) {
  .book-link-actions {
    width: min(100%, 360px);
    justify-content: stretch;
  }

  .book-link-actions .book-action {
    width: 100%;
    min-width: 0;
  }

  .modal-card.book-modal .modal-footer.actions {
    justify-content: flex-start;
  }

  .book-detail-meta {
    width: min(100%, 360px);
  }
}

.book-youtube-panel {
  width: min(100%, 520px);
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
  align-self: center;
  contain: layout paint;
  transform: translateZ(0);
}

.book-youtube-player {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #000;
  flex: 0 0 auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.book-youtube-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform: translateZ(0);
}

.promotion-action {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(244, 114, 182, 0.7);
  background: linear-gradient(135deg, #ff4fa3 0%, #f97316 52%, #facc15 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 15px 34px rgba(244, 114, 182, 0.32),
    0 0 0 3px rgba(251, 207, 232, 0.18);
}

.promotion-action::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.ticket-action:hover,
.help-action:hover,
.hotel-action:hover,
.job-action:hover,
.medic-action:hover,
.source-action:hover,
.promotion-action:hover {
  transform: translateY(-1px);
}

.ticket-action:hover {
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.3);
}

.help-action:hover {
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.32);
}

.hotel-action:hover {
  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.36),
    0 0 0 4px rgba(125, 211, 252, 0.22);
}

.job-action:hover {
  box-shadow:
    0 18px 40px rgba(99, 102, 241, 0.40),
    0 0 0 4px rgba(139, 92, 246, 0.20);
}

.medic-action:hover {
  box-shadow:
    0 18px 40px rgba(13, 148, 136, 0.38),
    0 0 0 4px rgba(45, 212, 191, 0.20);
}

.news-action:hover {
  box-shadow: 0 18px 36px rgba(166, 31, 61, 0.34);
}

.sport-action:hover {
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.3);
}

.celebrity-action:hover {
  box-shadow: 0 18px 36px rgba(255, 212, 0, 0.32);
}

.book-action:hover {
  box-shadow: 0 18px 36px rgba(92, 59, 30, 0.34);
}

.book-action.youtube-partner-action:hover {
  box-shadow: 0 18px 36px rgba(185, 28, 28, 0.34);
}

.book-action.legimi-partner-action:hover {
  box-shadow: 0 18px 36px rgba(15, 143, 58, 0.34);
}

.book-action.audiobooksnow-partner-action:hover {
  box-shadow: 0 18px 36px rgba(193, 18, 31, 0.34);
}

.book-action.audible-partner-action:hover {
  box-shadow: 0 18px 36px rgba(255, 153, 0, 0.34);
}

.book-action.amazon-partner-action:hover {
  box-shadow: 0 18px 36px rgba(255, 153, 0, 0.32);
}

.promotion-action:hover {
  box-shadow:
    0 18px 40px rgba(244, 114, 182, 0.42),
    0 0 0 4px rgba(251, 207, 232, 0.24);
}

html[data-theme="light"] .ticket-action {
  border-color: rgba(22, 163, 74, 0.45);
  background: linear-gradient(135deg, #16a34a, #0f766e);
  color: #fff;
}

html[data-theme="light"] .help-action {
  border-color: rgba(217, 119, 6, 0.48);
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: #fff;
}

html[data-theme="light"] .hotel-action {
  border-color: rgba(29, 78, 216, 0.42);
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 58%, #d97706 100%);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(29, 78, 216, 0.24),
    0 0 0 3px rgba(14, 165, 233, 0.18);
}

html[data-theme="light"] .job-action {
  border-color: rgba(99, 102, 241, 0.34);
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(99, 102, 241, 0.24),
    0 0 0 3px rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .medic-action {
  border-color: rgba(13, 148, 136, 0.34);
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(13, 148, 136, 0.22),
    0 0 0 3px rgba(45, 212, 191, 0.18);
}

html[data-theme="light"] .news-action {
  border-color: rgba(111, 16, 34, 0.38);
  background: linear-gradient(135deg, #6f1022, #a61f3d);
}

html[data-theme="light"] .sport-action {
  border-color: rgba(22, 128, 60, 0.36);
  background: linear-gradient(135deg, #16803c, #22c55e);
}

html[data-theme="light"] .celebrity-action {
  border-color: rgba(202, 138, 4, 0.42);
  background: linear-gradient(135deg, #fff200, #ffd400);
  color: #4a3200;
}

html[data-theme="light"] .book-action {
  border-color: rgba(92, 59, 30, 0.36);
  background: linear-gradient(135deg, #8b5e34, #5c3b1e);
}

html[data-theme="light"] .book-action.youtube-partner-action {
  border-color: rgba(185, 28, 28, 0.34);
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

html[data-theme="light"] .book-action.legimi-partner-action {
  border-color: rgba(15, 143, 58, 0.38);
  background: linear-gradient(135deg, #2cb34a, #0f8f3a);
  color: #fff;
}

html[data-theme="light"] .book-action.audiobooksnow-partner-action {
  border-color: rgba(193, 18, 31, 0.38);
  background: linear-gradient(135deg, #c1121f, #ef4444);
  color: #fff;
}

html[data-theme="light"] .book-action.audible-partner-action {
  border-color: rgba(255, 153, 0, 0.42);
  background: linear-gradient(135deg, #ff9900, #f97316);
  color: #fff;
}

html[data-theme="light"] .book-action.amazon-partner-action {
  border-color: rgba(255, 153, 0, 0.42);
  background: linear-gradient(135deg, #ff9900, #f97316);
  color: #fff;
}

html[data-theme="light"] .book-youtube-panel {
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .promotion-action {
  border-color: rgba(219, 39, 119, 0.34);
  background: linear-gradient(135deg, #e11d48 0%, #f97316 54%, #facc15 100%);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(225, 29, 72, 0.22),
    0 0 0 3px rgba(253, 186, 116, 0.22);
}

html[data-theme] .event-detail-price.price-low {
  background: linear-gradient(135deg, rgba(122, 239, 145, 0.98), rgba(38, 190, 86, 0.98));
  color: #06260f;
  box-shadow: 0 8px 18px rgba(38, 190, 86, 0.16);
}

html[data-theme] .event-detail-price.price-mid {
  background: linear-gradient(135deg, rgba(255, 232, 128, 0.98), rgba(244, 190, 49, 0.98));
  color: #432c00;
  box-shadow: 0 8px 18px rgba(244, 190, 49, 0.16);
}

html[data-theme] .event-detail-price.price-high {
  background: linear-gradient(135deg, rgba(255, 184, 96, 0.98), rgba(248, 119, 37, 0.98));
  color: #3b1800;
  box-shadow: 0 8px 18px rgba(248, 119, 37, 0.16);
}

html[data-theme] .event-detail-price.price-premium {
  background: linear-gradient(135deg, rgba(255, 112, 112, 0.98), rgba(220, 38, 38, 0.98));
  color: #fff7f7;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.16);
}


html[data-theme="light"] .medic-popup-specialization,
html[data-theme="light"] .medic-summary-specialization,
html[data-theme="light"] .map-spotlight-specialization {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(13, 148, 136, 0.24);
  color: #0f766e;
  text-shadow: none;
}

html[data-theme="light"] .map-spotlight-specialization {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(14, 165, 233, 0.12));
  border-color: rgba(13, 148, 136, 0.32);
  color: #0f766e;
}

html[data-theme="light"] .modal-cluster.same-place {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.94), rgba(238, 246, 255, 0.98));
  border-color: rgba(110, 157, 220, 0.24);
}

html[data-theme="light"] .modal-cluster-header strong {
  color: #173b63;
}

html[data-theme="light"] .modal-cluster-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(110, 157, 220, 0.24);
  color: #173b63;
}

html[data-theme="light"] .modal-cluster-item.active {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.96), rgba(236, 253, 245, 0.98));
  border-color: rgba(34, 197, 94, 0.48);
  color: #14532d;
}

html[data-theme="light"] .modal-cluster-item-icon {
  background: rgba(219, 234, 254, 0.9);
  color: #174579;
}

html[data-theme="light"] .modal-cluster-item.active .modal-cluster-item-icon {
  background: rgba(167, 243, 208, 0.9);
  color: #047857;
}

html[data-theme="light"] .modal-cluster-item strong {
  color: inherit;
}

html[data-theme="light"] .modal-cluster-item em {
  color: #59799f;
}

html[data-theme="light"] .modal-cluster-item.active em {
  color: #166534;
}

html[data-theme="light"] .medic-detail-card {
  background: linear-gradient(180deg, rgba(224, 252, 247, 0.92), rgba(241, 253, 250, 0.98));
  border-color: rgba(20, 184, 166, 0.22);
}

html[data-theme="light"] .medic-profile-card {
  border-color: rgba(20, 184, 166, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(240, 249, 255, 0.98));
  color: #134e4a;
}

html[data-theme="light"] .medic-profile-card strong {
  color: #164e63;
}

html[data-theme="light"] .medic-profile-card em {
  color: #0f766e;
  text-shadow: none;
}

html[data-theme="light"] .medic-profile-card p {
  color: #155e63;
}

html[data-theme="light"] .pyszne-popup-summary {
  border-color: rgba(249, 115, 22, 0.30);
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 146, 60, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 241, 242, 0.98));
  color: #7c2d12;
}

html[data-theme="light"] .pyszne-popup-summary strong {
  color: #9a3412;
}

html[data-theme="light"] .pyszne-popup-summary p {
  color: #7c2d12;
}

html[data-theme="light"] .medic-source-line {
  color: #0f766e;
}

html[data-theme="light"] .event-detail-card {
  background: linear-gradient(180deg, rgba(230, 241, 255, 0.94), rgba(244, 249, 255, 0.98));
  border-color: rgba(110, 157, 220, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .event-detail-label {
  color: #15395f;
}

html[data-theme="light"] .event-detail-line {
  color: #59799f;
}

html[data-theme="light"] .event-detail-date-time {
  color: #a35612;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 12px rgba(255, 181, 84, 0.18);
}

html[data-theme="light"] .event-detail-line:last-child {
  color: #173b63;
  font-weight: 800;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .modal-cluster.same-place {
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.94), rgba(238, 246, 255, 0.98));
    border-color: rgba(110, 157, 220, 0.24);
  }

  :root:not([data-theme]) .modal-cluster-header strong {
    color: #173b63;
  }

  :root:not([data-theme]) .modal-cluster-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(110, 157, 220, 0.24);
    color: #173b63;
  }

  :root:not([data-theme]) .modal-cluster-item.active {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.96), rgba(236, 253, 245, 0.98));
    border-color: rgba(34, 197, 94, 0.48);
    color: #14532d;
  }

  :root:not([data-theme]) .modal-cluster-item-icon {
    background: rgba(219, 234, 254, 0.9);
    color: #174579;
  }

  :root:not([data-theme]) .modal-cluster-item.active .modal-cluster-item-icon {
    background: rgba(167, 243, 208, 0.9);
    color: #047857;
  }

  :root:not([data-theme]) .modal-cluster-item strong {
    color: inherit;
  }

  :root:not([data-theme]) .modal-cluster-item em {
    color: #59799f;
  }

  :root:not([data-theme]) .modal-cluster-item.active em {
    color: #166534;
  }

  :root:not([data-theme]) .medic-profile-card {
    border-color: rgba(20, 184, 166, 0.34);
    background:
      radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.2), transparent 34%),
      linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(240, 249, 255, 0.98));
    color: #134e4a;
  }

  :root:not([data-theme]) .medic-profile-card strong {
    color: #164e63;
  }

  :root:not([data-theme]) .medic-profile-card em {
    color: #0f766e;
    text-shadow: none;
  }

  :root:not([data-theme]) .medic-profile-card p {
    color: #155e63;
  }
}

/* Compact dropdown filters for the home hero */
.home-hero-stage {
  overflow: visible;
  z-index: 30;
}

.home-map-stage,
.home-content-stage,
.home-secondary-surface {
  z-index: 0;
}

.polska-filter-bar {
  --smart-filter-panel: rgba(255, 255, 255, 0.98);
  --smart-filter-border: rgba(148, 163, 184, 0.28);
  --smart-filter-text: #111827;
  --smart-filter-muted: #64748b;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: start;
  gap: 10px;
  position: relative;
  z-index: 50;
  width: min(640px, 100%);
  margin: 16px auto 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(238, 245, 255, 0.08));
  box-shadow:
    0 18px 44px rgba(3, 7, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.polska-filter-bar.events-date-active {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  width: min(640px, 100%);
}

.smart-filter-dropdown {
  position: relative;
  min-width: 0;
}

.smart-filter-trigger,
.smart-filter-admin-toggle {
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6f9ff;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.smart-filter-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-align: left;
}

.smart-filter-trigger:hover,
.smart-filter-dropdown.open .smart-filter-trigger,
.smart-filter-trigger.active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.18),
    0 0 0 3px rgba(255, 255, 255, 0.08);
}

.smart-filter-trigger.active {
  background: linear-gradient(135deg, #ffffff, #ffe8ed 45%, #ff6b84);
  color: #172033;
  border-color: rgba(255, 255, 255, 0.9);
}

.smart-filter-trigger-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  color: currentColor;
  font-size: 1.45rem;
  font-weight: 900;
}

.smart-filter-trigger.active .smart-filter-trigger-icon {
  background: rgba(255, 255, 255, 0.48);
}

.smart-filter-trigger-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.smart-filter-trigger-copy strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: clamp(0.96rem, 1.2vw, 1.1rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-filter-caret {
  justify-self: end;
  transition: transform 0.18s ease;
}

.smart-filter-dropdown.open .smart-filter-caret {
  transform: rotate(180deg);
}

.smart-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 5px;
  min-width: 260px;
  width: max(100%, 280px);
  padding: 8px;
  border: 1px solid var(--smart-filter-border);
  border-radius: 19px;
  background: var(--smart-filter-panel);
  color: var(--smart-filter-text);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  z-index: 100;
}

.smart-filter-dropdown:last-of-type .smart-filter-menu,
.smart-filter-date-menu {
  left: auto;
  right: 0;
}

.smart-filter-menu-wide {
  width: min(420px, calc(100vw - 44px));
}

.smart-filter-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 42px;
  padding: 9px 40px 9px 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.smart-filter-option:hover {
  background: rgba(37, 99, 235, 0.08);
}

.smart-filter-option.active {
  background: rgba(37, 99, 235, 0.13);
  color: #0f172a;
}

.smart-filter-option.active::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #2563eb;
  font-weight: 950;
}

.smart-filter-option small {
  color: var(--smart-filter-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.smart-filter-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.smart-filter-calendar {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
}

.smart-filter-calendar strong {
  color: #111827;
  font-size: 0.94rem;
  font-weight: 900;
}

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

.smart-filter-calendar label span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.smart-filter-calendar input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 11px;
  background: #fff;
  color: #111827;
  color-scheme: light;
  font: inherit;
}

.smart-filter-calendar-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-top: 2px;
}

.smart-filter-mini-action,
.smart-filter-apply {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.smart-filter-mini-action {
  border-color: rgba(148, 163, 184, 0.42);
  color: #334155;
}

.smart-filter-apply {
  border: 0;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.smart-filter-option-compact {
  align-items: center;
  min-height: 40px;
  text-align: center;
}

.smart-filter-option-compact span {
  width: 100%;
  text-align: center;
}

.smart-filter-admin-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  font-weight: 850;
}

.smart-filter-admin-toggle small {
  color: #aebdff;
  font-size: 0.68rem;
}

.smart-filter-admin-toggle.active {
  background: linear-gradient(135deg, #ffffff, #ffe8ed 45%, #ff6b84);
  color: #172033;
}

.smart-filter-admin-toggle.active small {
  color: #7b1427;
}

html[data-theme="light"] .polska-filter-bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 245, 255, 0.58));
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 42px rgba(71, 85, 105, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .smart-filter-trigger,
html[data-theme="light"] .smart-filter-admin-toggle {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .smart-filter-trigger:hover,
html[data-theme="light"] .smart-filter-dropdown.open .smart-filter-trigger,
html[data-theme="light"] .smart-filter-trigger.active {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 30px rgba(37, 99, 235, 0.12),
    0 0 0 3px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .smart-filter-trigger.active,
html[data-theme="light"] .smart-filter-admin-toggle.active {
  background: linear-gradient(135deg, #ffffff, #dcecff 48%, #7fb4ff);
  color: #0e2544;
}

html[data-theme="light"] .smart-filter-admin-toggle small {
  color: #6c8ebb;
}

html[data-theme="light"] .smart-filter-admin-toggle.active small {
  color: #1b5ca9;
}

@media (max-width: 720px) {
  :root:not([data-theme]) .home-hero-stage .support,
  html[data-theme="light"] .home-hero-stage .support,
  html[data-theme="dark"] .home-hero-stage .support,
  .home-hero-stage .support {
    max-width: 19rem;
    font-size: 0.78rem;
    line-height: 1.38;
    text-wrap: wrap;
  }

  .home-hero-stage .support span {
    white-space: normal;
  }

  .hero-submit-strip {
    margin-top: 14px;
  }

  .hero-submit-button {
    width: 100%;
    max-width: none;
    min-height: 50px;
    border-radius: 17px;
  }

  .polska-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 7px;
    border-radius: 22px;
  }

  .polska-filter-bar.events-date-active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .smart-filter-dropdown {
    position: static;
  }

  .smart-filter-trigger {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    gap: 7px;
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .smart-filter-trigger-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 1.08rem;
  }

  .smart-filter-trigger-copy strong {
    font-size: 0.98rem;
  }

  .smart-filter-menu {
    left: 7px;
    right: 7px;
    top: calc(100% + 8px);
    width: auto;
    min-width: 0;
    max-height: min(64vh, 430px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .smart-filter-menu-wide {
    width: auto;
  }

  .smart-filter-option {
    min-height: 38px;
    padding-block: 8px;
  }

  .smart-filter-admin-toggle {
    grid-column: 1 / -1;
    min-height: 44px;
  }
}
/* Book AI assistant */
.book-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1700;
  font-family: inherit;
}

.book-chat-bubble,
.book-chat-input button,
.book-chat-icon-button {
  border: 0;
  cursor: pointer;
}

.book-chat-bubble {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fffdf7;
  background: linear-gradient(135deg, #12324a, #237c89);
  box-shadow: 0 18px 44px rgba(18, 38, 58, 0.24);
  font-weight: 800;
}

.book-chat-bubble-avatar {
  display: block;
  width: 34px;
  height: 34px;
  background: url("/brand/book-agent-avatar.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.book-chat-panel {
  width: min(420px, calc(100vw - 32px));
  height: min(660px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(21, 45, 62, 0.16);
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: 0 26px 70px rgba(18, 38, 58, 0.28);
}

.book-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(21, 45, 62, 0.1);
  color: #142638;
  background: linear-gradient(135deg, rgba(35, 124, 137, 0.12), rgba(179, 55, 83, 0.1));
}

.book-chat-widget.preview .book-chat-header {
  background: linear-gradient(135deg, rgba(35, 124, 137, 0.18), rgba(244, 184, 70, 0.2));
}

.book-chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.book-chat-header-avatar {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8) url("/brand/book-agent-avatar.png") center / 86% auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(21, 45, 62, 0.08);
}

.book-chat-header p {
  margin: 0 0 2px;
  color: #6e5c4d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-chat-header h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.book-chat-header-actions {
  display: flex;
  gap: 8px;
}

.book-chat-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #173148;
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.book-chat-messages {
  flex: 1 1;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.book-chat-messages.is-empty {
  display: grid;
  place-items: center;
}

.book-chat-empty {
  max-width: 260px;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #4c6070;
  text-align: center;
}

.book-chat-empty-avatar {
  display: block;
  width: 94px;
  height: 86px;
  background: url("/brand/book-agent-avatar.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(18, 38, 58, 0.18));
}

.book-chat-empty p {
  margin: 0;
}

.book-chat-message {
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}

.book-chat-message > p {
  margin: 0;
  width: fit-content;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  color: #152d3e;
  background: #f0e6d2;
  line-height: 1.45;
}

.book-chat-message.user {
  justify-items: end;
}

.book-chat-message.user > p {
  color: #fffdf7;
  background: #173148;
}

.book-chat-cards {
  display: grid;
  gap: 10px;
}

.book-chat-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(21, 45, 62, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.book-chat-card img,
.book-chat-card > svg {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  color: #237c89;
  background: #e8f4f4;
}

.book-chat-card strong {
  display: block;
  color: #122638;
  font-size: 0.94rem;
}

.book-chat-card span,
.book-chat-limitations span {
  display: block;
  color: #6b5c50;
  font-size: 0.78rem;
}

.book-chat-card p {
  margin: 6px 0 0;
  color: #2a3e4f;
  font-size: 0.86rem;
  line-height: 1.4;
}

.book-chat-card-actions,
.book-chat-actions,
.book-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-chat-card-actions {
  margin-top: 8px;
}

.book-chat-card-actions button,
.book-chat-actions button,
.book-chat-suggestions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(35, 124, 137, 0.22);
  border-radius: 999px;
  color: #12324a;
  background: #f8f4ea;
  font-weight: 750;
  cursor: pointer;
}

.book-chat-suggestions {
  padding: 0 14px 12px;
  max-height: 116px;
  overflow-y: auto;
}

.book-chat-suggestions button {
  text-align: left;
  border-color: rgba(179, 55, 83, 0.18);
  background: rgba(179, 55, 83, 0.08);
}

.book-chat-thinking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4e6676;
  font-size: 0.86rem;
}

.book-chat-thinking i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #237c89;
  animation: book-chat-thinking 1.05s ease-in-out infinite;
}

.book-chat-thinking i:nth-child(4) {
  animation-delay: 0.14s;
}

.book-chat-thinking i:nth-child(5) {
  animation-delay: 0.28s;
}

.book-chat-error {
  margin: 0 14px 10px;
  color: #8b2441;
  font-size: 0.86rem;
}

.book-chat-input {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(21, 45, 62, 0.1);
}

.book-chat-input input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(21, 45, 62, 0.18);
  border-radius: 999px;
  color: #142638;
  background: #fffdf8;
}

.book-chat-input button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffdf7;
  background: #237c89;
}

.book-chat-input button:disabled,
.book-chat-suggestions button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

@keyframes book-chat-thinking {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.admin-chat {
  display: grid;
  gap: 18px;
}

.admin-chat-stats,
.admin-chat-credential-list {
  display: grid;
  gap: 10px;
}

.admin-chat-stats {
  justify-items: end;
  color: #64748b;
  font-size: 0.85rem;
}

.admin-chat-settings textarea,
.admin-chat-credential-create input,
.admin-chat-credential-create select,
.admin-chat-credential-card input {
  width: 100%;
}

.admin-chat-prompt-field textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-chat-credential-create {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-chat-credential-create.has-api-base {
  grid-template-columns: minmax(140px, 0.8fr) minmax(160px, 1fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr) auto;
}

.admin-chat-credential-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.2fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.admin-chat-credential-card > div:first-child {
  display: grid;
  gap: 4px;
}

.admin-chat-credential-card span {
  color: #64748b;
  font-size: 0.85rem;
}

.admin-chat-credential-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 760px) {
  .book-chat-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .book-chat-bubble {
    width: 100%;
    justify-content: center;
  }

  .book-chat-panel {
    width: 100%;
    height: min(640px, calc(100vh - 24px));
  }

  .admin-chat-credential-create,
  .admin-chat-credential-card,
  .admin-chat-credential-actions {
    grid-template-columns: 1fr;
  }

  .admin-chat-stats {
    justify-items: start;
  }
}

.book-link-actions .book-action.book-page-action {
  border-color: rgba(14, 116, 144, 0.38);
  background: linear-gradient(135deg, #0f766e, #0e7490);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(14, 116, 144, 0.20);
}

.top-list .book-top-action.book-page-top-action {
  border-color: rgba(14, 116, 144, 0.38);
  background: linear-gradient(135deg, #0f766e, #0e7490);
  box-shadow: 0 8px 16px rgba(14, 116, 144, 0.18);
}

.top-list .book-top-action.book-page-top-action:hover {
  box-shadow: 0 10px 20px rgba(14, 116, 144, 0.24);
}

.book-link-actions .book-action.book-page-action:hover {
  box-shadow: 0 16px 34px rgba(14, 116, 144, 0.26);
}

.book-page-shell {
  min-height: 100vh;
  padding: 28px clamp(16px, 4vw, 52px) 56px;
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.82), rgba(255, 255, 255, 0.96) 260px),
    #ffffff;
  color: #111827;
}

.book-page-breadcrumbs {
  width: min(1120px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.86rem;
}

.book-page-breadcrumbs a {
  color: #9f1239;
  font-weight: 800;
  text-decoration: none;
}

.book-page-hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.book-place-hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.book-place-hero h1 {
  margin: 0;
  max-width: 860px;
  color: #111827;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.book-place-hero p {
  max-width: 780px;
  margin: 0;
  color: #374151;
  font-size: 1.06rem;
  line-height: 1.7;
}

.book-place-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-place-stats span,
.book-place-chip-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.86);
  color: #115e59;
  font-size: 0.86rem;
  font-weight: 900;
}

.book-page-cover-wrap {
  width: 100%;
  max-width: 320px;
}

.book-page-cover-wrap.audible-book-page-cover-wrap {
  max-width: 320px;
}

.book-page-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  background: #f8fafc;
}

.book-page-cover.audible-book-page-cover {
  aspect-ratio: 1 / 1;
}

.book-page-main {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.book-page-kicker {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(193, 18, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #9f1239;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.book-page-main h1 {
  margin: 0;
  max-width: 760px;
  color: #111827;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.book-page-location {
  margin: 0;
  color: #334155;
  font-size: 1.04rem;
  line-height: 1.45;
}

.book-page-location strong {
  color: #0f766e;
}

.book-page-description {
  margin: 0;
  max-width: 780px;
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.72;
}

.book-page-description.muted {
  color: #64748b;
}

.book-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.book-page-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
}

.book-page-button.primary {
  background: #9f1239;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(159, 18, 57, 0.18);
}

.book-page-button.audiobooksnow,
.book-page-button.external {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}

.book-page-button.audible,
.book-page-button.amazon {
  border-color: rgba(255, 153, 0, 0.46);
  background: linear-gradient(135deg, #ff9900, #f97316);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 153, 0, 0.18);
}

.book-page-button.legimi {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(21, 128, 61, 0.16);
}

.book-page-button.report-location {
  border-color: rgba(255, 92, 40, 0.3);
  background: rgba(255, 247, 242, 0.95);
  color: #9a3412;
  box-shadow: none;
}

.book-page-button.report-location.submitted {
  border-color: rgba(21, 128, 61, 0.24);
  background: #f0fdf4;
  color: #166534;
}

.book-page-section {
  width: min(1120px, 100%);
  margin: 34px auto 0;
}

.book-page-shell .site-footer {
  width: min(1120px, 100%);
  margin: 40px auto 0;
}

.book-page-section h2 {
  margin: 0;
  color: #172033;
  font-size: 1.75rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.book-page-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.book-page-section-heading a {
  color: #9f1239;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.book-page-section-copy {
  max-width: 820px;
  margin: -2px 0 16px;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.65;
}

.book-video-section {
  display: grid;
  gap: 16px;
}

.book-video-heading {
  margin-bottom: 0;
}

.book-video-heading .book-page-section-copy {
  margin: 6px 0 0;
}

.book-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.book-video-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 4px;
  background: #ffffff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.book-video-thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.book-video-preview {
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.book-video-preview:focus-visible {
  outline: 3px solid rgba(255, 92, 40, 0.72);
  outline-offset: 3px;
}

.book-video-thumb {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.book-video-preview:hover .book-video-thumb {
  transform: scale(1.015);
}

.book-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #0f172a;
}

.book-video-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 42px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.94);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.book-video-card strong {
  display: block;
  min-height: 58px;
  padding: 12px 13px 14px;
  color: #172033;
  font-size: 0.96rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.book-video-empty {
  margin: 0;
  color: #64748b;
}

.book-video-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.book-video-form label {
  display: grid;
  gap: 8px;
  color: #172033;
  font-size: 0.92rem;
  font-weight: 900;
}

.book-video-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.book-video-input-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.46);
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
}

.book-video-submit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 92, 40, 0.54);
  border-radius: 8px;
  background: #ff5c28;
  color: #050505;
  font: inherit;
  font-weight: 950;
  padding: 10px 14px;
  cursor: pointer;
}

.book-video-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.book-video-error,
.book-video-success {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.book-video-error {
  color: #be123c;
}

.book-video-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #15803d;
}

.book-video-spinner {
  animation: book-location-report-spin 0.9s linear infinite;
}

.book-page-map {
  width: 100%;
  height: min(520px, 58vh);
  min-height: 320px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #e2e8f0;
}

.book-context-map {
  position: relative;
  overflow: hidden;
}

.book-context-map .leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  font-family: inherit;
}

.book-context-map .leaflet-control-zoom a {
  color: #172033;
  text-decoration: none;
}

.book-context-map-marker {
  cursor: pointer;
}

.book-context-map-popup-shell .leaflet-popup-content-wrapper {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.book-context-map-popup-shell .leaflet-popup-content {
  margin: 12px 14px;
}

.book-context-map-popup-shell .leaflet-popup-close-button {
  color: #475569;
}

.book-context-map-popup {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 210px;
  max-width: 272px;
  color: #172033;
}

.book-context-map-popup-cover {
  width: 54px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  object-fit: cover;
}

.book-context-map-popup-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.book-context-map-popup strong,
.book-context-map-popup small,
.book-context-map-popup em,
.book-context-map-popup-genre {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-context-map-popup strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.book-context-map-popup small {
  color: #64748b;
  font-size: 0.74rem;
}

.book-context-map-popup-genre {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(14, 116, 144, 0.24);
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.08);
  color: #0e7490;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.book-context-map-popup em {
  color: #0f766e;
  font-size: 0.72rem;
  font-style: normal;
}

.book-context-map-popup-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.book-context-map-popup-ratings span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.book-context-map-popup-ratings span:last-child {
  background: #f0fdfa;
  color: #115e59;
}

.book-context-map-popup-ratings b {
  color: inherit;
  font-size: 0.66rem;
  font-weight: 950;
}

.book-context-map-popup-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #0e7490);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.book-context-map.leaflet-container .book-context-map-popup-link,
.book-context-map.leaflet-container .book-context-map-popup-link:visited,
.book-context-map.leaflet-container .book-context-map-popup-link:hover,
.book-context-map.leaflet-container .book-context-map-popup-link:focus-visible {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.book-context-map.leaflet-container .book-context-map-popup-link:hover {
  background: linear-gradient(135deg, #115e59, #155e75);
}

.book-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.book-related-card {
  min-height: 128px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.book-related-cover {
  width: 58px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #f8fafc;
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.1);
}

.book-related-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.book-related-copy strong {
  font-weight: 950;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.book-related-copy small {
  color: #64748b;
  font-size: 0.86rem;
}

.book-related-copy em {
  color: #0f766e;
  font-size: 0.83rem;
  font-style: normal;
}

.book-related-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.book-related-rating-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.book-related-rating-pill.readers {
  background: #f0fdfa;
  color: #115e59;
}

.book-related-rating-pill strong {
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
}

.book-rating-panel {
  width: min(1120px, 100%);
  margin: 28px auto 0;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.book-rating-panel.compact {
  width: min(100%, 520px);
  margin: 14px auto 0;
  padding: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  box-shadow: none;
}

.book-rating-panel.inline {
  width: 100%;
  margin: 0;
  padding: 12px;
  border-color: rgba(15, 118, 110, 0.14);
  background: rgba(240, 253, 250, 0.78);
  box-shadow: none;
}

.book-rating-panel-head,
.book-rating-vote-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.book-rating-panel h2 {
  margin: 0;
  color: #172033;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.book-rating-panel .overline {
  color: #7c2d12;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.book-rating-panel.compact h2 {
  color: #f8fafc;
  font-size: 1.05rem;
}

.book-rating-panel.compact .overline {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.6);
}

.book-rating-panel.inline h2 {
  font-size: 1rem;
}

.book-rating-score-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.book-rating-score-pair span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0fdfa;
  color: #115e59;
  font-size: 0.82rem;
  font-weight: 900;
}

.book-rating-score-pair span:first-child {
  background: #fff1f2;
  color: #9f1239;
}

.book-rating-ai-card,
.book-rating-people-card,
.book-rating-vote-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
}

.book-rating-panel.compact .book-rating-ai-card,
.book-rating-panel.compact .book-rating-people-card,
.book-rating-panel.compact .book-rating-vote-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.62);
}

.book-rating-panel.inline .book-rating-ai-card,
.book-rating-panel.inline .book-rating-people-card,
.book-rating-panel.inline .book-rating-vote-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.book-rating-ai-card p,
.book-rating-people-card p,
.book-rating-empty,
.book-rating-vote-card p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

.book-rating-panel.compact .book-rating-ai-card p,
.book-rating-panel.compact .book-rating-people-card p,
.book-rating-panel.compact .book-rating-empty,
.book-rating-panel.compact .book-rating-vote-card p {
  color: rgba(248, 250, 252, 0.86);
}

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

.book-rating-section-head strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.book-rating-section-head span {
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
}

.book-rating-section-head .book-rating-section-score.ai {
  color: #9f1239;
}

.book-rating-section-head .book-rating-section-score.readers {
  color: #0f766e;
}

.book-rating-panel.compact .book-rating-section-head strong,
.book-rating-panel.compact .book-rating-section-head span {
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.55);
}

.book-rating-panel.compact .book-rating-section-head .book-rating-section-score.ai {
  color: #fecdd3;
}

.book-rating-panel.compact .book-rating-section-head .book-rating-section-score.readers {
  color: #99f6e4;
}

.book-rating-criteria-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.book-rating-criterion {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.book-rating-panel.compact .book-rating-criterion {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.72);
}

.book-rating-criterion strong,
.book-rating-criterion span {
  display: block;
  color: #0f172a;
  font-size: 0.82rem;
}

.book-rating-panel.compact .book-rating-criterion strong,
.book-rating-panel.compact .book-rating-criterion span {
  color: #ffffff;
}

.book-rating-criterion span {
  margin-top: 4px;
  color: #9f1239;
  font-weight: 950;
}

.book-rating-criteria-grid.reader-scores .book-rating-criterion span {
  color: #0f766e;
}

.book-rating-vote-head strong,
.book-rating-vote-head span {
  color: #172033;
}

.book-rating-panel.compact .book-rating-vote-head strong,
.book-rating-panel.compact .book-rating-vote-head span {
  color: #f8fafc;
}

.book-rating-slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) 44px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.book-rating-slider strong,
.book-rating-slider em {
  display: block;
}

.book-rating-slider strong {
  color: #172033;
  font-size: 0.9rem;
}

.book-rating-slider em {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.book-rating-panel.compact .book-rating-slider strong {
  color: #f8fafc;
}

.book-rating-panel.compact .book-rating-slider em {
  color: #cbd5e1;
}

.book-rating-slider input {
  width: 100%;
  accent-color: #9f1239;
}

.book-rating-slider b {
  color: #9f1239;
  text-align: right;
}

.book-rating-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #9f1239;
  color: #ffffff;
  font-weight: 950;
  cursor: pointer;
}

.book-rating-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.book-rating-message {
  margin-top: 8px !important;
  font-size: 0.86rem;
  font-weight: 850;
}

.book-rating-message.saved {
  color: #15803d !important;
}

.book-rating-message.error {
  color: #dc2626 !important;
}

.turnstile-vote-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ranking-page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.ranking-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.ranking-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #111827;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.ranking-hero p {
  max-width: 780px;
  margin: 0;
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.65;
}

.ranking-tabs,
.ranking-genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-tabs a,
.ranking-genre-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.88);
  color: #115e59;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.ranking-tabs a.active {
  border-color: rgba(159, 18, 57, 0.3);
  background: #9f1239;
  color: #ffffff;
}

.ranking-genre-links a.active {
  border-color: rgba(22, 78, 99, 0.38);
  background: #164e63;
  color: #ffffff;
}

.ranking-genre-section,
.ranking-list-section,
.ranking-criteria-section {
  margin-top: 24px;
}

.ranking-section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.ranking-section-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 1.65rem;
  letter-spacing: 0;
}

.ranking-section-heading p {
  max-width: 780px;
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

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

.ranking-book-card {
  display: grid;
  grid-template-columns: 56px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ranking-book-position {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 1rem;
  font-weight: 950;
}

.ranking-book-cover-link {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  text-decoration: none;
}

.ranking-book-cover-link:focus-visible {
  outline: 3px solid rgba(14, 116, 144, 0.72);
  outline-offset: 3px;
}

.ranking-book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
}

.ranking-book-cover.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 950;
}

.ranking-book-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ranking-book-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.ranking-book-title-row h2 {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.ranking-book-title-row a {
  color: inherit;
  text-decoration: none;
}

.ranking-book-title-row strong {
  flex: 0 0 auto;
  color: #9f1239;
  font-size: 1rem;
}

.ranking-book-title-row .ranking-book-score.readers {
  color: #0f766e;
}

.ranking-book-author,
.ranking-book-genre,
.ranking-book-place,
.ranking-book-ranks,
.ranking-empty {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.ranking-book-place {
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border-left: 3px solid #0f766e;
  border-radius: 6px;
  background: rgba(240, 253, 250, 0.92);
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 900;
}

.ranking-book-place span {
  color: #0f766e;
  font-weight: 950;
}

.ranking-book-genre a,
.ranking-book-genre span {
  color: #115e59;
  font-weight: 850;
  text-decoration: none;
}

.ranking-book-ranks {
  font-size: 0.86rem;
  font-weight: 850;
}

.ranking-book-score-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.ranking-book-score-breakdown span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 6px;
  background: #f8fafc;
}

.ranking-book-score-breakdown b {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 0.74rem;
  line-height: 1.2;
}

.ranking-book-score-breakdown strong {
  color: #9f1239;
  font-size: 0.86rem;
  line-height: 1;
}

.ranking-book-score-breakdown.readers-scores strong {
  color: #0f766e;
}

.ranking-book-vote {
  margin-top: 8px;
}

.ranking-book-vote-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(159, 18, 57, 0.18);
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 950;
  cursor: pointer;
}

.ranking-book-vote-toggle:hover,
.ranking-book-vote-toggle[aria-expanded="true"] {
  background: #9f1239;
  color: #ffffff;
}

.ranking-book-vote-panel {
  margin-top: 10px;
}

.ranking-criteria-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ranking-criterion-card {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.72);
}

.ranking-criterion-card strong {
  color: #115e59;
}

.ranking-criterion-card p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}

.book-place-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-place-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-place-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.book-place-links span {
  color: #0f766e;
}

.book-page-faq-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.book-page-faq-item {
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.book-page-faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.book-page-faq-item dt {
  margin: 0 0 6px;
  color: #172033;
  font-weight: 950;
  line-height: 1.32;
}

.book-page-faq-item dd {
  margin: 0;
  max-width: 820px;
  color: #475569;
  line-height: 1.64;
}

@media (max-width: 900px) {
  .book-page-shell {
    padding: 22px 20px 46px;
  }

  .book-page-hero {
    gap: 28px;
  }

  .book-page-main h1 {
    font-size: 2.8rem;
  }

  .book-place-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 760px) {
  .book-page-shell {
    padding: 18px 14px 40px;
  }

  .book-page-hero {
    grid-template-columns: 1fr;
  }

  .book-page-cover-wrap {
    max-width: 220px;
  }

  .book-page-main h1 {
    font-size: 2.25rem;
    line-height: 1.04;
  }

  .book-place-hero h1 {
    font-size: 2.25rem;
    line-height: 1.04;
  }

  .book-page-button,
  .book-page-actions {
    width: 100%;
  }

  .book-page-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .book-video-input-row {
    grid-template-columns: 1fr;
  }

  .book-video-submit {
    width: 100%;
  }

  .book-rating-panel-head,
  .book-rating-section-head,
  .book-rating-vote-head,
  .ranking-book-title-row {
    flex-direction: column;
  }

  .book-rating-section-head span {
    text-align: left;
  }

  .book-rating-criteria-grid,
  .ranking-criteria-list {
    grid-template-columns: 1fr;
  }

  .ranking-book-score-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-rating-slider {
    grid-template-columns: 1fr 48px;
  }

  .book-rating-slider input {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ranking-page-shell {
    padding: 18px 14px 40px;
  }

  .ranking-book-card {
    grid-template-columns: 46px 62px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .ranking-book-cover {
    width: 62px;
  }

  .book-page-section h2 {
    font-size: 1.35rem;
  }

  .book-page-map {
    height: 360px;
  }
}

/* Audiobooks.com partner demo skin */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --storytel-orange: #ff5c28;
  --storytel-orange-soft: #ff8a3d;
  --storytel-black: #050505;
  --storytel-ink: #14100e;
  --storytel-cream: #fff7f2;
  --app-bg: linear-gradient(180deg, #050505 0%, #14100e 54%, #070707 100%);
  --app-text: #fff7f2;
  --soft-text: #d8c5b9;
  --muted-text: #a99486;
  --panel-bg: linear-gradient(180deg, rgba(17, 14, 12, 0.98), rgba(8, 8, 8, 0.98));
  --panel-header-bg: rgba(12, 10, 9, 0.98);
  --panel-border: rgba(255, 92, 40, 0.3);
  --panel-shadow: 0 18px 44px rgba(0, 0, 0, 0.44);
  --map-panel-bg: rgba(8, 8, 8, 0.94);
  --map-panel-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  --chip-bg: rgba(255, 247, 242, 0.08);
  --chip-active-bg: linear-gradient(135deg, #ff5c28, #ff8a3d);
  --chip-small: #e4b7a0;
  --control-bg: rgba(255, 247, 242, 0.08);
  --control-border: rgba(255, 92, 40, 0.34);
  --link-color: #ff8a3d;
  --thumb-bg: rgba(255, 92, 40, 0.1);
  --code-bg: rgba(255, 247, 242, 0.08);
  --overlay-bg: rgba(0, 0, 0, 0.72);
  --primary-bg: linear-gradient(135deg, #ff5c28, #ff8a3d);
  --primary-color: #050505;
  --ghost-bg: rgba(255, 247, 242, 0.08);
  --ghost-color: #fff7f2;
  --like-bg: rgba(255, 92, 40, 0.12);
  --theme-toggle-bg: rgba(5, 5, 5, 0.88);
  --theme-toggle-border: rgba(255, 92, 40, 0.45);
  --theme-toggle-color: #fff7f2;
  --card-title: #fff7f2;
  --card-meta: #d8c5b9;
  --card-button-text: #fff7f2;
  --card-button-bg: rgba(255, 247, 242, 0.08);
  --card-button-border: rgba(255, 92, 40, 0.32);
  --card-like-bg: rgba(255, 92, 40, 0.14);
  --card-chip-text: #050505;
  --card-chip-bg: #ff5c28;
  --card-chip-border: rgba(255, 138, 61, 0.7);
}

html,
body,
html[data-theme="light"] body,
html[data-theme="dark"] body {
  background: var(--app-bg) !important;
  color: var(--app-text) !important;
}

.home-hero-stage,
.home-map-shell,
.home-search-panel,
.map-card,
.pin-modal,
.add-pin-modal,
.cookie-consent-panel,
.book-map-toolbar,
.featured-book-panel,
.book-page-shell,
.book-place-shell,
.ranking-page-shell {
  background: var(--panel-bg) !important;
  border-color: var(--panel-border) !important;
  color: var(--app-text) !important;
  box-shadow: var(--panel-shadow) !important;
}

.cookie-consent {
  background: transparent !important;
  box-shadow: none !important;
}

.home-hero-stage::before,
.home-hero-stage::after,
.map-stage::before,
.map-stage::after {
  display: none !important;
}

.home-hero-title,
.home-hero-copy,
.support,
.home-search-title,
.map-panel-title,
.pin-modal h2,
.add-pin-modal h2,
.cookie-consent h2,
.book-page-main h1,
.book-place-hero h1,
.ranking-page-hero h1 {
  color: var(--storytel-cream) !important;
}

.brand-logo-word,
.brand-logo-word-urlaubs,
.brand-logo-word-map {
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--storytel-cream) !important;
  color: var(--storytel-cream) !important;
}

.brand-logo-wordmark {
  letter-spacing: -0.035em !important;
}

.brand-logo-word-map {
  -webkit-text-fill-color: var(--storytel-orange) !important;
  color: var(--storytel-orange) !important;
}

.brand-logo-pin-o {
  color: var(--storytel-orange);
  filter: drop-shadow(0 0.08em 0.16em rgba(255, 92, 40, 0.32));
}

.brand-logo-link:hover .brand-logo-pin-o,
.brand-logo-link:focus-visible .brand-logo-pin-o {
  filter: drop-shadow(0 0.11em 0.2em rgba(255, 92, 40, 0.46));
}

.home-hero-kicker,
.home-hero-meta,
.home-search-copy,
.content-panel-copy,
.site-footer,
.site-footer p,
.pin-modal p,
.add-pin-modal p,
.cookie-consent p,
.book-page-main p,
.book-place-hero p,
.ranking-page-hero p,
.book-page-section p {
  color: var(--soft-text) !important;
}

.primary,
.primary-action,
.book-page-button.primary,
.add-pin-submit,
.featured-book-action,
.source-action.primary-partner,
.book-genre-chip.active,
.filter-chip.active,
.theme-toggle[aria-pressed="true"] {
  background: var(--primary-bg) !important;
  border-color: rgba(255, 138, 61, 0.76) !important;
  color: var(--storytel-black) !important;
}

.ghost,
.secondary,
.filter-chip,
.book-genre-chip,
.book-search-input,
.add-pin-modal input,
.add-pin-modal textarea,
.add-pin-modal select,
.home-search-input,
.map-control-button,
.theme-toggle {
  background: var(--ghost-bg) !important;
  border-color: var(--control-border) !important;
  color: var(--ghost-color) !important;
}

.book-genre-chip small,
.filter-chip small,
.map-panel-meta,
.pin-meta,
.book-page-meta,
.ranking-book-meta {
  color: var(--chip-small) !important;
}

.book-map-toolbar .book-search-status {
  background: #211711 !important;
  border: 1px solid rgba(255, 138, 61, 0.52) !important;
  color: var(--storytel-cream) !important;
  box-shadow: inset 0 1px 0 rgba(255, 247, 242, 0.08), 0 8px 18px rgba(0, 0, 0, 0.24) !important;
  font-size: 0.82rem;
  text-shadow: none;
}

.book-map-toolbar .book-search-status.empty {
  background: #2a1615 !important;
  border-color: rgba(255, 92, 40, 0.64) !important;
  color: #ffd7c9 !important;
}

.desktop-map-zoom-controls .map-zoom-button,
.mini-map-zoom-controls .map-zoom-button {
  background: rgba(5, 5, 5, 0.9) !important;
  border-color: rgba(255, 138, 61, 0.66) !important;
  color: var(--storytel-cream) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 247, 242, 0.1) !important;
}

.desktop-map-zoom-controls .map-zoom-button:hover,
.desktop-map-zoom-controls .map-zoom-button:focus-visible,
.mini-map-zoom-controls .map-zoom-button:hover,
.mini-map-zoom-controls .map-zoom-button:focus-visible {
  background: rgba(33, 23, 17, 0.96) !important;
  border-color: var(--storytel-orange-soft) !important;
  box-shadow: 0 16px 32px rgba(255, 92, 40, 0.18), inset 0 1px 0 rgba(255, 247, 242, 0.12) !important;
}

.book-genre-chip.active small,
.filter-chip.active small,
.filter-chip[aria-pressed="true"] small {
  background: rgba(5, 5, 5, 0.16) !important;
  color: #050505 !important;
  border: 1px solid rgba(5, 5, 5, 0.22) !important;
}

.book-genre-chip:hover,
.filter-chip:hover,
.ghost:hover,
.secondary:hover,
.source-action:hover,
.map-control-button:hover,
.book-page-button:hover {
  border-color: var(--storytel-orange-soft) !important;
  box-shadow: 0 10px 28px rgba(255, 92, 40, 0.22) !important;
}

.audiobooksnow-pin,
.audible-pin,
.leaflet-marker-icon.audiobooksnow-pin,
.leaflet-marker-icon.audible-pin,
.map-pin-cluster {
  border-color: var(--storytel-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 92, 40, 0.22), 0 14px 30px rgba(0, 0, 0, 0.36) !important;
}

.pin-icon.platform-books.book-pin.audiobook-pin,
.pin-icon.platform-books.book-pin.audiobooksnow-pin,
.pin-icon.platform-books.book-pin.audible-pin {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pin-icon.platform-books.book-pin.audiobook-pin::after,
.pin-icon.platform-books.book-pin.audiobooksnow-pin::after,
.pin-icon.platform-books.book-pin.audible-pin::after {
  content: none !important;
}

.audiobooksnow-top-action,
.audiobooksnow-partner-action,
.audible-top-action,
.audible-partner-action {
  background: var(--primary-bg) !important;
  border-color: rgba(255, 138, 61, 0.72) !important;
  color: var(--storytel-black) !important;
}

a,
.link-button,
.cookie-consent a,
.book-page-section a,
.book-place-links span {
  color: var(--link-color) !important;
}

/* Partner demo card action contrast */
.top-list .post-card,
html[data-theme="light"] .top-list .post-card,
html[data-theme="dark"] .top-list .post-card,
:root:not([data-theme]) .top-list .post-card {
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.99), rgba(255, 244, 237, 0.99)) !important;
  border-color: rgba(255, 92, 40, 0.22) !important;
  box-shadow: 0 12px 28px rgba(5, 5, 5, 0.12) !important;
}

.top-list .post-title,
html[data-theme="light"] .top-list .post-title,
html[data-theme="dark"] .top-list .post-title,
:root:not([data-theme]) .top-list .post-title {
  color: #11100f !important;
}

.top-list .book-author-line,
html[data-theme="light"] .top-list .book-author-line,
html[data-theme="dark"] .top-list .book-author-line,
:root:not([data-theme]) .top-list .book-author-line {
  color: #49362c !important;
}

.ranking-book-title-row h2,
.ranking-book-title-row a {
  color: #111827 !important;
}

.ranking-page-shell .ranking-hero .overline,
.ranking-page-shell .ranking-section-heading .overline {
  color: #ffb38f !important;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.ranking-page-shell .ranking-hero h1,
.ranking-page-shell .ranking-section-heading h2 {
  color: var(--storytel-cream) !important;
}

.ranking-page-shell .ranking-hero > p,
.ranking-page-shell .ranking-section-heading > p {
  color: var(--soft-text) !important;
}

.top-list .post-actions .ghost,
.top-list .post-actions .like-button {
  background: rgba(255, 252, 249, 0.96) !important;
  border-color: rgba(255, 92, 40, 0.42) !important;
  color: #2a140d !important;
  box-shadow: 0 6px 14px rgba(255, 92, 40, 0.12) !important;
}

.top-list .post-actions .ghost:hover,
.top-list .post-actions .like-button:hover {
  background: #ff5c28 !important;
  border-color: #ff8a3d !important;
  color: #050505 !important;
}

.top-list .post-actions .like-button.liked {
  background: rgba(255, 92, 40, 0.18) !important;
  border-color: rgba(255, 92, 40, 0.5) !important;
  color: #2a140d !important;
}

.list-panel.home-content-stage .top-list .empty {
  grid-column: 1 / -1;
  color: #5c3524 !important;
  font-weight: 850;
}

.list-panel.home-content-stage .content-panel-header .overline {
  color: #6b2a0d !important;
  letter-spacing: 0.16em;
}

.list-panel.home-content-stage h2 {
  color: #081018 !important;
}

.list-panel.home-content-stage .content-panel-copy {
  color: #49362c !important;
}

.book-community-note,
.book-ai-ranking-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 8px;
}

.book-community-note {
  border: 1px solid rgba(255, 92, 40, 0.28);
  background: linear-gradient(135deg, rgba(255, 250, 247, 0.98), rgba(255, 239, 228, 0.96));
}

.book-ai-ranking-note {
  border: 1px solid rgba(28, 13, 5, 0.16);
  background: linear-gradient(135deg, rgba(255, 249, 244, 0.98), rgba(255, 236, 226, 0.95));
}

.book-community-note strong,
.book-ai-ranking-note strong {
  display: block;
  margin-bottom: 4px;
  color: #11100f;
  font-size: 1rem;
  line-height: 1.25;
}

.book-ai-ranking-note strong {
  color: #742707;
}

.book-community-note p,
.book-ai-ranking-note p {
  max-width: 820px;
  margin: 0;
  color: #49362c !important;
  font-size: 0.95rem;
  line-height: 1.5;
}

.book-community-action {
  flex: 0 0 auto;
  min-height: 40px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.book-community-note .book-community-action,
.book-ai-ranking-note .book-community-action {
  background: rgba(255, 252, 249, 0.98) !important;
  border-color: rgba(255, 92, 40, 0.48) !important;
  color: #2a140d !important;
  box-shadow: 0 6px 14px rgba(255, 92, 40, 0.1) !important;
}

.book-community-note .book-community-action:hover,
.book-community-note .book-community-action:focus-visible,
.book-ai-ranking-note .book-community-action:hover,
.book-ai-ranking-note .book-community-action:focus-visible {
  background: #ff5c28 !important;
  border-color: #ff8a3d !important;
  color: #050505 !important;
  outline: none;
  box-shadow: 0 10px 22px rgba(255, 92, 40, 0.24) !important;
}

button.book-community-action:disabled,
button.book-community-action:disabled:hover {
  cursor: not-allowed;
  background: rgba(255, 247, 242, 0.96) !important;
  border-color: rgba(107, 42, 13, 0.34) !important;
  color: #684232 !important;
  opacity: 1;
  box-shadow: none !important;
}

.book-discovery-panel {
  margin-top: 14px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(255, 92, 40, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 253, 251, 0.98), rgba(255, 247, 241, 0.96));
}

.book-discovery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.book-discovery-head strong {
  color: #11100f;
  font-size: 1rem;
  line-height: 1.2;
}

.book-discovery-head span {
  color: #6b2a0d;
  font-size: 0.78rem;
  font-weight: 800;
}

.book-discovery-sections {
  display: grid;
  gap: 16px;
}

.book-discovery-section {
  min-width: 0;
}

.book-discovery-section h3 {
  margin: 0 0 8px;
  color: #6b2a0d;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
}

.book-discovery-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 1px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 92, 40, 0.36) transparent;
}

.book-discovery-link {
  flex: 0 0 clamp(168px, 19vw, 226px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 92, 40, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #15100d !important;
  text-align: left;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

button.book-discovery-link {
  cursor: pointer;
  font: inherit;
}

.book-discovery-link:hover,
.book-discovery-link:focus-visible {
  outline: none;
  border-color: rgba(255, 92, 40, 0.56);
  background: rgba(255, 245, 238, 0.98);
  transform: translateY(-1px);
}

.book-discovery-link-label {
  display: -webkit-box;
  min-height: 2.35em;
  overflow: hidden;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book-discovery-link-meta {
  min-width: 0;
  overflow: hidden;
  color: #684232 !important;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .book-community-note,
  .book-ai-ranking-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-discovery-link {
    flex-basis: clamp(174px, 29vw, 230px);
  }
}

@media (max-width: 720px) {
  .book-community-note,
  .book-ai-ranking-note {
    padding: 14px;
  }

  .book-community-action {
    width: 100%;
    justify-content: center;
  }

  .book-discovery-panel {
    padding: 14px;
  }

  .book-discovery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-discovery-sections {
    gap: 14px;
  }

  .book-discovery-link {
    flex-basis: min(76vw, 286px);
    min-height: 62px;
  }
}

/* Partner demo book popup and detail-page contrast */
.modal-card.book-modal {
  background: linear-gradient(180deg, rgba(17, 14, 12, 0.99), rgba(5, 5, 5, 0.99)), #050505 !important;
  background-color: #050505 !important;
  border-color: rgba(255, 92, 40, 0.34) !important;
  color: #fff7f2 !important;
}

.modal-card.book-modal .modal-header {
  min-height: 44px;
  margin-bottom: -60px;
  background: transparent !important;
  pointer-events: none;
}

.modal-card.book-modal .modal-header > div {
  display: none;
}

.modal-card.book-modal .modal-close-inline {
  pointer-events: auto;
  background: rgba(17, 14, 12, 0.9) !important;
  border-color: rgba(255, 92, 40, 0.56) !important;
  color: #fff7f2 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32) !important;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.modal-card.book-modal h3 {
  color: #fff7f2 !important;
}

.modal-card.book-modal .book-detail-meta p {
  background: transparent !important;
}

.modal-card.book-modal .book-detail-meta-value,
.modal-card.book-modal .book-detail-meta-value.with-icon {
  color: #fff7f2 !important;
}

.modal-card.book-modal .book-page-action,
.modal-card.book-modal .modal-footer.actions .ghost,
.modal-card.book-modal .modal-footer.actions .like-button {
  background: rgba(255, 252, 249, 0.98) !important;
  border-color: rgba(255, 92, 40, 0.5) !important;
  color: #2a140d !important;
  box-shadow: 0 8px 18px rgba(255, 92, 40, 0.12) !important;
}

.modal-card.book-modal .book-page-action:hover,
.modal-card.book-modal .book-page-action:focus-visible,
.modal-card.book-modal .modal-footer.actions .ghost:hover,
.modal-card.book-modal .modal-footer.actions .ghost:focus-visible,
.modal-card.book-modal .modal-footer.actions .like-button:hover,
.modal-card.book-modal .modal-footer.actions .like-button:focus-visible {
  background: #ff5c28 !important;
  border-color: #ff8a3d !important;
  color: #050505 !important;
}

.book-page-breadcrumbs {
  color: #d8c5b9 !important;
}

.book-page-main .book-page-kicker,
.book-place-hero .book-page-kicker {
  background: #fff7f2 !important;
  border-color: rgba(255, 138, 61, 0.76) !important;
  color: #2a140d !important;
  -webkit-text-fill-color: #2a140d !important;
  box-shadow: 0 10px 24px rgba(255, 92, 40, 0.14) !important;
}

.book-page-location strong {
  color: #ffb38f !important;
}

.book-page-button,
.book-page-button:visited,
.book-page-button.primary,
.book-page-button.audiobooksnow,
.book-page-button.external,
.book-page-button.audible,
.book-page-button.amazon,
.book-page-button.legimi {
  background: var(--primary-bg) !important;
  background-color: #ff5c28 !important;
  border-color: rgba(255, 138, 61, 0.76) !important;
  color: #050505 !important;
}

.book-page-button.primary,
.book-page-button.primary:visited {
  background: linear-gradient(135deg, #0f766e, #0e7490) !important;
  background-color: #0f766e !important;
  border-color: rgba(94, 234, 212, 0.62) !important;
  color: #fff7f2 !important;
  box-shadow: 0 12px 26px rgba(14, 116, 144, 0.28) !important;
}

.book-page-button.report-location,
.book-page-button.report-location:visited {
  background: #fff1f2 !important;
  background-color: #fff1f2 !important;
  border-color: rgba(251, 113, 133, 0.72) !important;
  color: #881337 !important;
  box-shadow: 0 12px 24px rgba(190, 18, 60, 0.18) !important;
}

.book-page-button.report-location:hover,
.book-page-button.report-location:focus-visible {
  background: #be123c !important;
  background-color: #be123c !important;
  border-color: #fb7185 !important;
  color: #fff7f2 !important;
}

.book-page-button.report-location.submitted {
  background: #f0fdf4 !important;
  background-color: #f0fdf4 !important;
  border-color: rgba(34, 197, 94, 0.64) !important;
  color: #14532d !important;
}

.book-context-map .book-context-map-popup-link,
.book-context-map .book-context-map-popup-link:visited,
.book-context-map .book-context-map-popup-link:hover,
.book-context-map .book-context-map-popup-link:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.book-page-section h2,
.book-page-faq-item dt {
  color: #fff7f2 !important;
}

.book-page-section-copy,
.book-page-faq-item dd {
  color: #d8c5b9 !important;
}

.book-video-card,
.book-video-form {
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.99), rgba(255, 244, 237, 0.99)) !important;
  background-color: #fff7f2 !important;
  border-color: rgba(255, 92, 40, 0.24) !important;
  color: #1b120d !important;
}

.book-video-card strong,
.book-video-form label {
  color: #11100f !important;
}

.book-video-empty {
  color: #d8c5b9 !important;
}

.book-video-input-row input {
  border-color: rgba(255, 92, 40, 0.34) !important;
  background: #ffffff !important;
  color: #11100f !important;
}

.book-video-submit {
  background: #ff5c28 !important;
  background-color: #ff5c28 !important;
  border-color: rgba(255, 138, 61, 0.76) !important;
  color: #050505 !important;
}

.book-related-card {
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.99), rgba(255, 244, 237, 0.99)) !important;
  background-color: #fff7f2 !important;
  border-color: rgba(255, 92, 40, 0.24) !important;
  color: #1b120d !important;
}

.book-related-copy strong {
  color: #11100f !important;
}

.book-related-copy small {
  color: #49362c !important;
}

.book-related-copy em {
  color: #6b2a0d !important;
}

.book-related-cover.square-artwork,
.book-context-map-popup-cover.square-artwork {
  aspect-ratio: 1 / 1;
}

/* Country-market pages */
.market-shell {
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  color: #f8fbff;
}

.market-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.market-topbar .brand-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.market-topbar nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.market-topbar nav a,
.market-global-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 214, 86, 0.42);
  border-radius: 8px;
  background: rgba(5, 20, 32, 0.72);
  color: #f9fbff !important;
  font-size: 0.9rem;
  font-weight: 820;
  text-decoration: none;
}

.market-topbar nav a:hover,
.market-topbar nav a:focus-visible,
.market-global-link:hover,
.market-global-link:focus-visible {
  border-color: #ffd84d;
  outline: none;
  box-shadow: 0 10px 24px rgba(255, 216, 77, 0.18);
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 26px;
  align-items: end;
  padding: 28px 0 14px;
}

.market-kicker {
  margin: 0 0 11px;
  color: #ffd84d !important;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.market-hero h1 {
  max-width: 790px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.market-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #dfeefb !important;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.5;
}

.market-hero-facts {
  display: grid;
  gap: 10px;
}

.market-hero-facts span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 216, 77, 0.32);
  border-radius: 8px;
  background: rgba(1, 11, 20, 0.58);
  color: #fff8d8;
  font-weight: 850;
}

.market-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.market-map-card,
.market-list-panel {
  position: relative;
  border: 1px solid rgba(101, 173, 222, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 15, 24, 0.98), rgba(4, 10, 17, 0.98));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.market-map-card {
  min-height: 560px;
}

.market-map-header {
  position: absolute;
  z-index: 420;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.market-map-header > div:first-child {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 216, 77, 0.34);
  border-radius: 8px;
  background: rgba(2, 14, 24, 0.86);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.market-map-header span,
.market-list-head span,
.market-active-book span,
.market-roadmap article span {
  display: block;
  color: #ffd84d;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.market-map-header strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.market-map-controls {
  display: grid;
  gap: 8px;
  pointer-events: auto;
}

.market-map-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 216, 77, 0.46);
  border-radius: 8px;
  background: rgba(2, 14, 24, 0.9);
  color: #fff8d8;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.market-map-controls button:hover,
.market-map-controls button:focus-visible {
  border-color: #ffd84d;
  outline: none;
  background: rgba(0, 72, 130, 0.92);
}

.market-map-canvas {
  height: 100%;
  min-height: 560px;
  background: #0a1118;
}

.market-map-canvas .leaflet-container,
.market-map-canvas.leaflet-container {
  width: 100%;
  height: 100%;
  background: #0a1118;
}

.market-map-canvas .leaflet-control-attribution {
  border-radius: 6px 0 0 0;
  background: rgba(255, 255, 255, 0.84);
  color: #1f2937;
  font-size: 10px;
}

.market-book-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  border: 2px solid #ffd84d;
  border-radius: 50%;
  background: #004b8d;
  box-shadow: 0 0 0 4px rgba(0, 75, 141, 0.24), 0 12px 26px rgba(0, 0, 0, 0.34);
}

.market-book-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 950;
}

.market-book-marker.active {
  background: #ff5c28;
  border-color: #fff8d8;
  box-shadow: 0 0 0 5px rgba(255, 216, 77, 0.24), 0 16px 34px rgba(0, 0, 0, 0.4);
}

.market-map-status,
.market-map-empty {
  position: absolute;
  z-index: 430;
  left: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  border: 1px solid rgba(255, 216, 77, 0.38);
  border-radius: 8px;
  background: rgba(2, 14, 24, 0.9);
  color: #f9fbff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.market-map-status {
  padding: 11px 13px;
  font-weight: 820;
}

.market-map-status.warning {
  border-color: rgba(255, 124, 104, 0.58);
  color: #ffd9d2;
}

.market-map-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 11px;
  padding: 14px 15px;
}

.market-map-empty svg {
  grid-row: span 2;
  color: #ffd84d;
}

.market-map-empty strong {
  color: #ffffff;
  line-height: 1.25;
}

.market-map-empty p {
  margin: 0;
  color: #d9ebfb !important;
  line-height: 1.45;
}

.market-list-panel {
  padding: 18px;
}

.market-list-head h2 {
  margin: 5px 0 14px;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.08;
}

.market-list-empty p {
  margin: 0 0 14px;
  color: #d9ebfb !important;
  line-height: 1.5;
}

.market-city-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-city-strip span {
  padding: 7px 9px;
  border: 1px solid rgba(101, 173, 222, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fbff;
  font-weight: 780;
}

.market-book-list {
  display: grid;
  gap: 9px;
  max-height: 388px;
  overflow: auto;
  padding-right: 4px;
}

.storytel-community-page {
  min-height: 100vh;
  background: #f7f5ef;
  color: #151515;
}

.storytel-community-hero {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 18px;
}

.storytel-community-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #050505;
  font-size: 1.42rem;
  font-weight: 950;
  letter-spacing: 0;
}

.storytel-mark {
  display: inline-block;
  width: 36px;
  height: 28px;
  border-radius: 58% 42% 62% 38%;
  background: #ff4b1f;
  transform: rotate(-28deg);
}

.storytel-community-title-block {
  min-width: 0;
  border-left: 1px solid rgba(21, 21, 21, 0.2);
  padding-left: 26px;
}

.storytel-community-title-block h1 {
  margin: 0;
  color: #070707;
  font-size: 3.45rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.storytel-community-title-block h1 span {
  color: #ff4b1f;
}

.storytel-community-title-block p {
  margin: 10px 0 0;
  max-width: 780px;
  color: #56524f;
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.35;
}

.storytel-community-note {
  justify-self: end;
  max-width: 220px;
  margin: 0;
  color: #f05224;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 850;
  line-height: 1.08;
}

.storytel-community-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
  gap: 18px;
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  align-items: stretch;
}

.storytel-map-shell {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.11);
  border-radius: 8px;
  background: #e6e3dc;
}

.storytel-map-canvas,
.storytel-map-canvas.leaflet-container,
.storytel-map-canvas .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 640px;
  background: #e6e3dc;
}

.storytel-map-canvas .leaflet-control-zoom a {
  color: #1d1d1d;
}

.storytel-map-canvas .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.84);
  color: #4a4a4a;
  font-size: 10px;
}

.storytel-map-loading {
  position: absolute;
  z-index: 450;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #252525;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.storytel-country-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 42px;
  transform: translateY(-2px);
}

.storytel-country-marker-dot {
  position: absolute;
  inset: 0;
  display: block;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.storytel-country-marker-dot::before {
  position: absolute;
  top: 0;
  left: 4px;
  width: 26px;
  height: 26px;
  border: 3px solid #fff7ee;
  border-radius: 50% 50% 50% 0;
  background: #ff4b1f;
  content: "";
  transform: rotate(-45deg);
}

.storytel-country-marker[data-count="empty"] .storytel-country-marker-dot::before {
  background: #ff7b50;
}

.storytel-country-marker.active .storytel-country-marker-dot::before {
  background: #0c9488;
  box-shadow: 0 0 0 5px rgba(12, 148, 136, 0.2);
}

.storytel-country-marker strong {
  position: relative;
  z-index: 1;
  min-width: 18px;
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.storytel-country-tooltip-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.storytel-country-tooltip-shell::before {
  display: none;
}

.storytel-country-tooltip {
  display: grid;
  gap: 4px;
  max-width: 240px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 75, 31, 0.28);
  border-radius: 8px;
  background: #fffaf6;
  color: #1a1a1a;
  box-shadow: 0 14px 32px rgba(25, 25, 25, 0.18);
}

.storytel-country-tooltip strong {
  color: #111111;
  font-size: 0.92rem;
}

.storytel-country-tooltip em,
.storytel-country-tooltip span {
  color: #625b56;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.25;
}

.storytel-country-popup-shell .leaflet-popup-content-wrapper {
  overflow: hidden;
  border-radius: 8px;
  background: #fffaf6;
  box-shadow: 0 18px 42px rgba(25, 25, 25, 0.22);
}

.storytel-country-popup-shell .leaflet-popup-content {
  width: 280px;
  margin: 0;
}

.storytel-country-popup {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: #171717;
}

.storytel-country-popup > strong {
  color: #111111;
  font-size: 1rem;
  line-height: 1.1;
}

.storytel-country-popup p {
  margin: 0;
  color: #6b625d;
  font-size: 0.82rem;
  font-weight: 780;
}

.storytel-popup-preview {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #171717;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.storytel-popup-preview:hover,
.storytel-popup-preview:focus-visible {
  border-color: rgba(255, 75, 31, 0.38);
  outline: 0;
}

.storytel-popup-preview img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  background: #f3eee7;
}

.storytel-popup-preview span {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 6px 8px 6px 0;
}

.storytel-popup-preview em {
  color: #f05224;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.storytel-popup-preview strong {
  display: -webkit-box;
  overflow: hidden;
  color: #171717;
  font-size: 0.8rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storytel-community-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 640px;
}

.storytel-panel-head,
.storytel-submit-form,
.storytel-country-list {
  border: 1px solid rgba(21, 21, 21, 0.11);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 31, 31, 0.06);
}

.storytel-panel-head {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.storytel-panel-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #716a64;
  font-size: 0.78rem;
  font-weight: 880;
  text-transform: uppercase;
}

.storytel-panel-head strong {
  color: #161616;
  font-size: 1.55rem;
  line-height: 1.06;
}

.storytel-submit-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.storytel-submit-form label {
  display: grid;
  gap: 6px;
  color: #46423f;
  font-size: 0.82rem;
  font-weight: 850;
}

.storytel-submit-form input,
.storytel-submit-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 8px;
  background: #fffdfa;
  color: #171717;
  font: inherit;
  font-size: 0.92rem;
  padding: 10px 11px;
}

.storytel-submit-form input:focus,
.storytel-submit-form select:focus {
  border-color: #ff4b1f;
  outline: 3px solid rgba(255, 75, 31, 0.16);
}

.storytel-submit-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #ff4b1f;
  color: #ffffff;
  cursor: pointer;
  font-weight: 950;
}

.storytel-submit-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.storytel-form-error,
.storytel-form-success {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.35;
}

.storytel-form-error {
  background: #fff0ec;
  color: #a12a10;
}

.storytel-form-success {
  background: #eaf8f5;
  color: #087569;
}

.storytel-form-note {
  margin: 0;
  color: #6f6760;
  font-size: 0.86rem;
  font-weight: 780;
}

.storytel-country-list {
  min-height: 0;
  padding: 14px;
}

.storytel-country-list > span {
  display: block;
  margin-bottom: 10px;
  color: #716a64;
  font-size: 0.78rem;
  font-weight: 880;
  text-transform: uppercase;
}

.storytel-country-list p {
  margin: 0;
  color: #6f6760;
  font-weight: 760;
}

.storytel-country-list div {
  display: grid;
  gap: 7px;
  max-height: 250px;
  overflow: auto;
  padding-right: 2px;
}

.storytel-country-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background: #fffaf6;
  color: #202020;
  cursor: pointer;
  padding: 8px 9px;
  text-align: left;
}

.storytel-country-list button[data-active="true"] {
  border-color: rgba(12, 148, 136, 0.46);
  background: #eaf8f5;
}

.storytel-country-list button span {
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storytel-country-list button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 24px;
  border-radius: 999px;
  background: #151515;
  color: #ffffff;
  font-size: 0.78rem;
}

.storytel-materials-section {
  width: min(1480px, calc(100% - 40px));
  margin: 18px auto 0;
  padding-bottom: 36px;
}

.storytel-materials-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-top: 4px solid #ff4b1f;
  padding-top: 16px;
}

.storytel-materials-head span {
  color: #716a64;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.storytel-materials-head h2 {
  margin: 4px 0 0;
  color: #111111;
  font-size: 2rem;
  line-height: 1.02;
}

.storytel-materials-head > strong {
  color: #0c766d;
  font-size: 1rem;
}

.storytel-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 15px;
}

.storytel-material-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 31, 31, 0.06);
}

.storytel-material-preview {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
  background: #171717;
}

.storytel-material-preview.landscape {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.storytel-material-preview.square {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.storytel-material-preview.portrait {
  display: grid;
  place-items: center;
  min-height: 0;
  height: clamp(540px, 42vw, 640px);
  background: #101010;
}

.storytel-material-preview iframe,
.storytel-material-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.storytel-material-preview img {
  object-fit: cover;
}

.storytel-material-preview.platform-instagram,
.storytel-material-preview.platform-tiktok {
  display: grid;
  place-items: center;
  min-height: 0;
  height: clamp(540px, 42vw, 640px);
  aspect-ratio: auto;
  background: #101010;
}

.storytel-material-preview.platform-instagram iframe,
.storytel-material-preview.platform-instagram img,
.storytel-material-preview.platform-tiktok iframe,
.storytel-material-preview.platform-tiktok img {
  width: min(100%, 360px);
  height: 100%;
  margin: 0 auto;
  background: #000000;
  object-fit: cover;
}

.storytel-material-preview.platform-instagram iframe {
  background: #ffffff;
}

.storytel-material-preview.fallback {
  color: #ffffff;
  text-decoration: none;
}

.storytel-material-preview-button {
  width: 100%;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.storytel-material-preview-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.46));
  content: "";
  pointer-events: none;
}

.storytel-material-preview-button em {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  min-width: 122px;
  border-radius: 999px;
  background: rgba(255, 75, 31, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  padding: 10px 13px;
  text-align: center;
}

.storytel-material-preview-button:hover em,
.storytel-material-preview-button:focus-visible em {
  background: #ff4b1f;
}

.storytel-material-preview-button:focus-visible {
  outline: 3px solid rgba(255, 75, 31, 0.34);
  outline-offset: -3px;
}

.storytel-material-preview.fallback span,
.storytel-material-preview-button span,
.storytel-story-modal-preview.fallback span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #ff4b1f;
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: 950;
}

.storytel-story-modal-overlay {
  z-index: 2400;
  align-items: center;
  background: rgba(10, 10, 10, 0.78);
}

.storytel-story-modal {
  width: min(520px, 100%);
  max-height: calc(100dvh - 28px);
  border: 1px solid rgba(255, 75, 31, 0.18);
  border-radius: 8px;
  background: #fffaf6;
  color: #171717;
  gap: 12px;
  overflow: auto;
  padding: 14px;
}

.storytel-story-modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: start;
  background: #fffaf6;
}

.storytel-story-modal-head span {
  color: #f05224;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.storytel-story-modal-head h2 {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: #111111;
  font-size: 1.08rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.storytel-story-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #171717;
  cursor: pointer;
}

.storytel-story-modal-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #101010;
}

.storytel-story-modal-preview.portrait,
.storytel-story-modal-preview.platform-instagram,
.storytel-story-modal-preview.platform-tiktok {
  height: min(70dvh, 660px);
}

.storytel-story-modal-preview.landscape {
  aspect-ratio: 16 / 9;
}

.storytel-story-modal-preview.square {
  aspect-ratio: 1 / 1;
}

.storytel-story-modal-preview iframe,
.storytel-story-modal-preview img {
  display: block;
  width: min(100%, 390px);
  height: 100%;
  border: 0;
  background: #000000;
  object-fit: cover;
}

.storytel-story-modal-preview.platform-instagram iframe {
  background: #ffffff;
}

.storytel-story-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.storytel-story-modal-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 8px;
  background: #151515;
  color: #ffffff;
  font-weight: 900;
  padding: 8px 11px;
  text-decoration: none;
}

.storytel-material-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
}

.storytel-material-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
}

.storytel-material-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.storytel-material-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border-radius: 999px;
  background: #f3eee7;
  color: #49443f;
  font-size: 0.74rem;
  font-weight: 850;
  padding: 4px 8px;
}

.storytel-material-body h3 {
  margin: 0;
  color: #111111;
  font-size: 1.06rem;
  line-height: 1.2;
}

.storytel-material-body p {
  margin: 0;
  color: #6b625d;
  font-size: 0.9rem;
  line-height: 1.35;
}

.storytel-material-body a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  min-height: 34px;
  border-radius: 8px;
  background: #151515;
  color: #ffffff;
  font-weight: 900;
  padding: 8px 10px;
  text-decoration: none;
}

.storytel-materials-status,
.storytel-empty-materials {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  border: 1px solid rgba(21, 21, 21, 0.11);
  border-radius: 8px;
  background: #ffffff;
  color: #302d2a;
  font-weight: 850;
  padding: 18px;
}

.storytel-materials-status.warning {
  color: #a12a10;
}

.storytel-empty-materials {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.storytel-empty-materials svg {
  grid-row: span 2;
  color: #ff4b1f;
}

.storytel-empty-materials strong {
  color: #171717;
}

.storytel-empty-materials p {
  margin: 0;
  color: #6b625d;
  line-height: 1.4;
}

.storytel-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.storytel-pagination button,
.storytel-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #1d1d1d;
  font-weight: 900;
}

.storytel-pagination button {
  cursor: pointer;
}

.storytel-pagination button[aria-current="page"] {
  border-color: #ff4b1f;
  background: #ff4b1f;
  color: #ffffff;
}

.storytel-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.storytel-spin {
  animation: storytel-spin 0.85s linear infinite;
}

@keyframes storytel-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .storytel-community-hero,
  .storytel-community-workspace,
  .storytel-materials-section {
    width: min(100% - 28px, 920px);
  }

  .storytel-community-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .storytel-community-title-block h1 {
    font-size: 3.2rem;
  }

  .storytel-community-title-block {
    border-left: 0;
    padding-left: 0;
  }

  .storytel-community-note {
    justify-self: start;
  }

  .storytel-community-workspace {
    grid-template-columns: 1fr;
  }

  .storytel-community-panel {
    min-height: 0;
  }

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

@media (max-width: 680px) {
  .storytel-community-hero {
    padding-top: 18px;
  }

  .storytel-community-title-block h1 {
    font-size: 2.35rem;
  }

  .storytel-community-title-block p {
    font-size: 0.98rem;
  }

  .storytel-map-shell,
  .storytel-map-canvas,
  .storytel-map-canvas.leaflet-container,
  .storytel-map-canvas .leaflet-container {
    min-height: 520px;
  }

  .storytel-material-grid {
    grid-template-columns: 1fr;
  }

  .storytel-materials-head {
    align-items: start;
    flex-direction: column;
  }

  .storytel-material-card {
    min-height: 0;
  }

  .storytel-material-preview.portrait,
  .storytel-material-preview.platform-instagram,
  .storytel-material-preview.platform-tiktok {
    height: 520px;
  }
}

.market-book-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(101, 173, 222, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fbff;
  text-align: left;
  cursor: pointer;
}

.market-book-row:hover,
.market-book-row:focus-visible,
.market-book-row.active {
  border-color: #ffd84d;
  outline: none;
  background: rgba(0, 75, 141, 0.34);
}

.market-book-row img,
.market-book-fallback {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 216, 77, 0.16);
}

.market-book-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd84d;
}

.market-book-row strong,
.market-active-book strong,
.market-roadmap article strong {
  display: block;
  color: #ffffff;
  line-height: 1.25;
}

.market-book-row em {
  display: block;
  margin-top: 4px;
  color: #bfdaf0;
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.35;
}

.market-active-book {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(255, 216, 77, 0.28);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.08);
}

.market-active-book p {
  margin: 7px 0 0;
  color: #d9ebfb !important;
}

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

.market-active-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 216, 77, 0.38);
  border-radius: 8px;
  background: rgba(2, 14, 24, 0.72);
  color: #fff8d8 !important;
  font-weight: 820;
  text-decoration: none;
}

.market-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}

.market-roadmap article,
.market-global-link {
  border-radius: 8px;
}

.market-roadmap article {
  padding: 16px;
  border: 1px solid rgba(101, 173, 222, 0.26);
  background: rgba(5, 20, 32, 0.76);
}

.market-roadmap article p {
  margin: 8px 0 0;
  color: #d9ebfb !important;
  line-height: 1.45;
}

.market-global-link {
  align-self: stretch;
  gap: 8px;
  min-width: 180px;
}

.market-shell .site-footer {
  margin-top: 28px;
}

@media (max-width: 940px) {
  .market-hero,
  .market-map-layout,
  .market-roadmap {
    grid-template-columns: 1fr;
  }

  .market-map-card,
  .market-map-canvas {
    min-height: 480px;
  }

  .market-global-link {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .market-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .market-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-hero {
    padding: 18px 0 8px;
  }

  .market-map-card,
  .market-map-canvas {
    min-height: 430px;
  }

  .market-map-header {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .market-map-empty {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}

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

.ai-assistant-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff8f3 0%, #f4fbf8 48%, #f6f8fc 100%);
  color: #182235;
}

.ai-assistant-layout {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  padding: 28px 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 26px;
  align-items: center;
}

.ai-assistant-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-assistant-brandline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  font-size: 0.86rem;
  font-weight: 850;
  color: #27445c;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ai-assistant-brandmark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #f05a2a;
  box-shadow: 0 12px 26px rgba(240, 90, 42, 0.24);
  flex: 0 0 auto;
}

.ai-assistant-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: 4.35rem;
  line-height: 0.94;
  letter-spacing: 0;
  color: #121b2b;
}

.ai-assistant-lede {
  margin: 0;
  max-width: 650px;
  color: #0f766e;
  font-size: 1.48rem;
  line-height: 1.28;
  font-weight: 850;
}

.ai-assistant-body {
  margin: 0;
  max-width: 670px;
  color: #41566a;
  font-size: 1.03rem;
  line-height: 1.7;
}

.ai-assistant-prompt-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
}

.ai-assistant-prompt-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #26384b;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(25, 51, 76, 0.06);
}

.ai-assistant-prompt-strip svg {
  color: #f05a2a;
  flex: 0 0 auto;
}

.ai-assistant-mascot-stage {
  position: relative;
  width: min(100%, 520px);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
}

.ai-assistant-mascot-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 16%;
  bottom: 8px;
  height: 30px;
  border-radius: 50%;
  background: rgba(28, 42, 62, 0.16);
  filter: blur(16px);
}

.ai-assistant-mascot {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(24, 34, 53, 0.17));
}

.ai-assistant-chat-shell {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(33, 51, 74, 0.14);
  background: #ffffff;
  box-shadow: 0 26px 72px rgba(24, 34, 53, 0.16);
}

.ai-assistant-chat-header {
  min-height: 74px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background: #172033;
}

.ai-assistant-chat-header > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
}

.ai-assistant-chat-header strong {
  min-width: 0;
  font-size: 1.04rem;
  line-height: 1.2;
}

.ai-assistant-chat-header small {
  grid-column: 2;
  color: #c9d7e8;
  font-size: 0.82rem;
  font-weight: 700;
}

.ai-assistant-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #41e39d;
  box-shadow: 0 0 0 5px rgba(65, 227, 157, 0.16);
}

.ai-assistant-header-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
  font-weight: 850;
  font-size: 0.84rem;
}

.ai-assistant-chat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  min-height: 510px;
  max-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f9fbfe 0%, #ffffff 68%);
}

.ai-assistant-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
}

.ai-assistant-message-assistant {
  grid-template-columns: 46px minmax(0, 1fr);
}

.ai-assistant-message-user {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.ai-assistant-message-user .ai-assistant-avatar {
  grid-column: 2;
  grid-row: 1;
  background: #243454;
  color: #fff;
}

.ai-assistant-message-user .ai-assistant-bubble {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  background: #243454;
  color: #fff;
  border-color: #243454;
}

.ai-assistant-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #f05a2a;
  box-shadow: 0 8px 18px rgba(240, 90, 42, 0.18);
}

.ai-assistant-avatar-assistant {
  width: 46px;
  height: 46px;
  overflow: hidden;
  padding: 2px;
  border: 1px solid rgba(240, 90, 42, 0.2);
  background: #fff7ef;
  box-shadow: 0 12px 24px rgba(240, 90, 42, 0.16);
}

.ai-assistant-avatar-figure {
  width: 42px;
  height: 42px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.14) translateY(1px);
  filter: drop-shadow(0 4px 5px rgba(24, 34, 53, 0.18));
}

.ai-assistant-bubble {
  width: min(100%, 610px);
  border: 1px solid rgba(33, 51, 74, 0.12);
  border-radius: 8px;
  padding: 13px 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(24, 34, 53, 0.06);
}

.ai-assistant-bubble p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
}

.ai-assistant-recommendations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ai-assistant-rec-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: #f5fbf8;
}

.ai-assistant-rec-card span,
.ai-assistant-route-step span {
  color: #f05a2a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ai-assistant-rec-card strong {
  color: #172033;
  font-size: 0.93rem;
  line-height: 1.18;
}

.ai-assistant-rec-card small {
  color: #54687b;
  line-height: 1.38;
}

.ai-assistant-composer {
  padding: 15px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(33, 51, 74, 0.1);
  background: #fff;
}

.ai-assistant-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-assistant-chip-row button {
  min-height: 34px;
  border: 1px solid rgba(33, 51, 74, 0.13);
  border-radius: 8px;
  padding: 7px 10px;
  background: #f6f8fb;
  color: #29394d;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.ai-assistant-chip-row button:hover,
.ai-assistant-chip-row button:focus-visible {
  outline: none;
  border-color: rgba(240, 90, 42, 0.48);
  background: #fff4ed;
}

.ai-assistant-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
}

.ai-assistant-input-wrap textarea {
  width: 100%;
  min-height: 76px;
  resize: none;
  border: 1px solid rgba(33, 51, 74, 0.16);
  border-radius: 8px;
  padding: 12px;
  color: #182235;
  background: #fbfcfe;
  font: inherit;
  line-height: 1.45;
}

.ai-assistant-input-wrap textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: rgba(15, 118, 110, 0.6);
}

.ai-assistant-input-wrap button {
  width: 52px;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #f05a2a;
  box-shadow: 0 12px 24px rgba(240, 90, 42, 0.22);
  cursor: pointer;
}

.ai-assistant-input-wrap button:hover,
.ai-assistant-input-wrap button:focus-visible {
  outline: none;
  background: #d94b20;
}

.ai-assistant-client-band,
.ai-assistant-showcase {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  border-top: 1px solid rgba(33, 51, 74, 0.09);
}

.ai-assistant-client-band {
  padding: 18px 0 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ai-assistant-metric {
  min-width: 0;
  min-height: 116px;
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid rgba(33, 51, 74, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.ai-assistant-metric span {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.ai-assistant-metric strong {
  color: #172033;
  font-size: 1rem;
}

.ai-assistant-metric small {
  color: #4a6074;
  line-height: 1.45;
}

.ai-assistant-showcase {
  padding: 22px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: start;
}

.ai-assistant-showcase small {
  color: #f05a2a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ai-assistant-showcase h2 {
  margin: 6px 0 0;
  color: #172033;
  font-size: 1.8rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.ai-assistant-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-assistant-route-step {
  min-height: 104px;
  display: grid;
  gap: 6px;
  align-content: start;
  border-radius: 8px;
  padding: 14px;
  background: #172033;
  color: #fff;
}

.ai-assistant-route-step strong {
  font-size: 1rem;
  line-height: 1.2;
}

.ai-assistant-route-step small {
  color: #cbd7e8;
}

@media (max-width: 1120px) {
  .ai-assistant-layout {
    grid-template-columns: 1fr;
  }

  .ai-assistant-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr);
    align-items: end;
  }

  .ai-assistant-brandline,
  .ai-assistant-copy h1,
  .ai-assistant-lede,
  .ai-assistant-body,
  .ai-assistant-prompt-strip {
    grid-column: 1;
  }

  .ai-assistant-mascot-stage {
    grid-column: 2;
    grid-row: 1 / 6;
    min-height: 260px;
    padding: 0;
  }

  .ai-assistant-mascot {
    width: min(100%, 320px);
  }

  .ai-assistant-copy h1 {
    font-size: 3.65rem;
  }
}

@media (max-width: 860px) {
  .ai-assistant-copy {
    display: flex;
  }

  .ai-assistant-copy h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  .ai-assistant-lede {
    font-size: 1.25rem;
  }

  .ai-assistant-mascot-stage {
    min-height: 210px;
  }

  .ai-assistant-mascot {
    width: min(88%, 270px);
  }

  .ai-assistant-chat-body {
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .ai-assistant-recommendations,
  .ai-assistant-client-band,
  .ai-assistant-showcase,
  .ai-assistant-route {
    grid-template-columns: 1fr;
  }

  .ai-assistant-showcase {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .ai-assistant-layout,
  .ai-assistant-client-band,
  .ai-assistant-showcase {
    width: min(100% - 20px, 1240px);
  }

  .ai-assistant-layout {
    padding-top: 14px;
    gap: 16px;
  }

  .ai-assistant-copy h1 {
    font-size: 2.28rem;
  }

  .ai-assistant-body {
    font-size: 0.98rem;
  }

  .ai-assistant-prompt-strip span {
    width: 100%;
    white-space: normal;
  }

  .ai-assistant-chat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-assistant-header-badge {
    width: 100%;
    justify-content: center;
  }

  .ai-assistant-chat-body,
  .ai-assistant-composer {
    padding: 14px;
  }

  .ai-assistant-message,
  .ai-assistant-message-user {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ai-assistant-message-assistant {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ai-assistant-message-user .ai-assistant-avatar {
    grid-column: 1;
  }

  .ai-assistant-message-user .ai-assistant-bubble {
    grid-column: 2;
    justify-self: stretch;
  }

  .ai-assistant-avatar {
    width: 30px;
    height: 30px;
  }

  .ai-assistant-avatar-assistant {
    width: 38px;
    height: 38px;
  }

  .ai-assistant-avatar-figure {
    width: 34px;
    height: 34px;
  }

  .ai-assistant-input-wrap {
    grid-template-columns: 1fr;
  }

  .ai-assistant-input-wrap button {
    width: 100%;
    min-height: 48px;
  }
}

