@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  font-family:
    "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Montserrat", "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --font-accent: "ZT Mota", "Montserrat", "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --font-logo: "Zennor", "Montserrat", "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --vir-hauptgruen: #2c9435;
  --vir-dunkelgruen: #2e5d33;
  --vir-graphit: #444444;
  --vir-rubinrot: #8b3a3a;
  --vir-aschgrau: #8b3a3a;
  --vir-pergament: #f1e4c6;
  --vir-honig: #ded6c1;
  --vir-warmgrau: #d9d9d9;
  --white: #ffffff;
  --black: #000000;
  --panel: var(--vir-pergament);
  --panel-soft: var(--vir-honig);
  --line: var(--vir-warmgrau);
  --text: var(--vir-graphit);
  --muted: var(--vir-dunkelgruen);
  --accent: var(--vir-hauptgruen);
  --accent-strong: var(--vir-dunkelgruen);
  --danger: var(--vir-rubinrot);
  --glass: rgb(68 68 68 / 72%);
  --glass-soft: rgb(68 68 68 / 54%);
  --glass-strong: rgb(68 68 68 / 88%);
  --glass-line: rgb(217 217 217 / 42%);
  --shadow: rgb(68 68 68 / 28%);
  --shadow-strong: rgb(68 68 68 / 42%);
  --on-glass: var(--vir-pergament);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--vir-graphit);
  color: var(--text);
  font-family: var(--font-body);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.panel-section h2,
.panel-header h1,
.scene-title strong,
.web-map-link,
.layer-controls__title,
.scene-quick-nav__toggle strong,
.line-meta strong {
  font-family: var(--font-heading);
}

.scene-title span,
.scene-quick-nav__toggle span,
.scene-quick-nav__item span,
.info-card__eyebrow,
.panorama-map-marker {
  font-family: var(--font-accent);
}

input,
select,
textarea {
  max-width: 100%;
}

button,
select,
input[type="text"],
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
}

button {
  min-height: 38px;
  padding: 0 14px;
  background: var(--vir-graphit);
  color: var(--vir-pergament);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:hover:not(:disabled) {
  background: var(--vir-dunkelgruen);
  color: var(--vir-pergament);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(480px, 32vw, 560px);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.viewer-region {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--vir-graphit);
}

.viewer {
  position: absolute;
  inset: 0;
}

.brand-logo {
  position: absolute;
  z-index: 58;
  top: 18px;
  left: 18px;
  display: grid;
  width: 180px;
  min-height: 0;
  padding: 0;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.brand-logo img {
  display: block;
  width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.project-brand {
  position: absolute;
  z-index: 60;
  top: 18px;
  left: 24px;
  display: flex;
  min-height: 48px;
  padding: 0;
  align-items: center;
  gap: 10px;
  color: var(--vir-pergament);
  text-decoration: none;
  text-shadow: 0 2px 5px rgb(0 0 0 / 45%);
  pointer-events: none;
}

.project-brand.is-link {
  cursor: pointer;
  pointer-events: auto;
}

.project-brand.is-link:hover,
.project-brand.is-link:focus-visible {
  opacity: 0.84;
}

.project-brand[hidden] {
  display: none;
}

.project-brand img {
  display: block;
  width: 42px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 22%));
}

.project-brand strong {
  max-width: 180px;
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
}

.has-project-brand .brand-logo {
  z-index: 60;
  top: auto;
  right: 64px;
  bottom: 25px;
  left: auto;
  width: 108px;
  transition: right 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.has-project-brand .brand-logo img {
  max-height: 24px;
}

.has-project-brand.mini-map-open .brand-logo {
  right: calc(min(380px, calc(100% - 104px)) + 80px);
}

.carousel-toggle {
  position: absolute;
  z-index: 58;
  top: 70px;
  left: 18px;
  display: grid;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 5px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vir-pergament);
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.carousel-toggle img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 28%));
}

.carousel-toggle span {
  position: absolute;
  top: 50%;
  left: calc(100% + 7px);
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgb(68 68 68 / 86%);
  box-shadow: 0 10px 24px rgb(68 68 68 / 18%);
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.carousel-toggle[data-control-position^="right"] span {
  right: calc(100% + 7px);
  left: auto;
  transform: translate(4px, -50%);
}

.carousel-toggle:hover:not(:disabled),
.carousel-toggle:focus-visible,
.carousel-toggle.is-active {
  outline: 1px solid rgb(241 228 198 / 17%);
  background: rgb(68 68 68 / 9%);
  box-shadow:
    0 10px 24px rgb(68 68 68 / 10%),
    inset 0 1px 0 rgb(241 228 198 / 8%);
  backdrop-filter: blur(8px);
  transform: translateY(-1px);
}

.carousel-toggle:hover span,
.carousel-toggle:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}

.viewer-controls {
  position: absolute;
  z-index: 60;
  top: auto;
  bottom: 18px;
  right: 18px;
  display: grid;
  gap: 8px;
  pointer-events: auto;
}

.viewer-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgb(68 68 68 / 48%);
  color: var(--vir-pergament);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 30px rgb(68 68 68 / 18%);
  backdrop-filter: blur(8px);
  touch-action: manipulation;
}

.viewer-controls button:hover {
  background: rgb(44 148 53 / 22%);
}

.viewer-controls .intro-control {
  background: rgb(68 68 68 / 44%);
}

.viewer-controls .intro-control img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 20%));
}

.route-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-overlay.is-drawing {
  z-index: 2;
  cursor: crosshair;
  pointer-events: auto;
}

.route-overlay.is-placing-arrow {
  cursor: copy;
}

.route-overlay.is-placing-info {
  cursor: help;
}

.topbar {
  position: absolute;
  z-index: 58;
  top: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, max-content) 44px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.icon-button,
.scene-title {
  pointer-events: auto;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(68 68 68 / 48%);
  color: var(--vir-pergament);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgb(68 68 68 / 18%);
  touch-action: manipulation;
}

.icon-button::before {
  width: 24px;
  height: 24px;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

#prevScene::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m14.5 5-7 7 7 7' fill='none' stroke='%23f1e4c6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#nextScene::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 5 7 7-7 7' fill='none' stroke='%23f1e4c6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.scene-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: min(620px, 70vw);
  padding: 10px 16px;
  border: 1px solid rgb(217 217 217 / 10%);
  border-radius: 6px;
  background: rgb(68 68 68 / 56%);
  color: rgb(241 228 198);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgb(68 68 68 / 16%);
}

.scene-title span {
  color: rgb(241 228 198);
  font-size: 13px;
  white-space: nowrap;
}

.scene-title strong {
  overflow: hidden;
  color: rgb(241 228 198);
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hide-info-points .tour-info,
.hide-navigation-arrows .tour-arrow {
  display: none;
}

.hide-route-lines .route-overlay__path:not(.route-overlay__path--draft) {
  display: none;
}

.web-map-link[hidden],
.carousel-toggle[hidden],
.map-fab[hidden],
.viewer-controls .intro-control[hidden],
.layer-controls[hidden] {
  display: none !important;
}

.web-map-link {
  position: absolute;
  z-index: 58;
  --menu-shift: 0px;
  top: 62px;
  right: 18px;
  width: 60px;
  height: 60px;
  min-height: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease,
    transform 520ms cubic-bezier(0.2, 1.45, 0.34, 1);
  transform: translateY(var(--menu-shift));
}

.web-map-link img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.web-map-link span,
.map-fab span {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  max-width: 160px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgb(68 68 68 / 78%);
  box-shadow: 0 10px 24px rgb(68 68 68 / 18%);
  color: var(--vir-pergament);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  z-index: 260;
  transform: translateY(-3px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.web-map-link[data-control-position^="left"] span,
.map-fab[data-control-position^="left"] span {
  right: auto;
  left: calc(100% + 7px);
}

.web-map-link:hover,
.web-map-link:focus-visible,
.map-fab:hover:not(:disabled),
.map-fab:focus-visible {
  z-index: 240;
  outline: 1px solid rgb(241 228 198 / 17%);
  background: rgb(68 68 68 / 9%);
  box-shadow:
    0 10px 24px rgb(68 68 68 / 10%),
    inset 0 1px 0 rgb(241 228 198 / 8%);
  backdrop-filter: blur(8px);
  transform: translateY(calc(var(--menu-shift) - 1px));
}

.web-map-link:hover span,
.web-map-link:focus-visible span,
.map-fab:hover:not(:disabled) span,
.map-fab:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.draw-hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid rgb(217 217 217 / 14%);
  border-radius: 6px;
  background: rgb(68 68 68 / 82%);
  color: var(--accent);
  font-weight: 700;
}

.camera-link-toast {
  position: absolute;
  z-index: 230;
  left: 50%;
  bottom: 28px;
  max-width: min(520px, calc(100vw - 40px));
  padding: 10px 14px;
  border: 1px solid rgb(217 217 217 / 18%);
  border-radius: 6px;
  background: rgb(68 68 68 / 86%);
  box-shadow: 0 16px 42px rgb(68 68 68 / 30%);
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
  transform: translateX(-50%);
}

.scene-caption {
  position: absolute;
  z-index: 760;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(82px, calc(82px + env(safe-area-inset-bottom)));
  left: max(22px, env(safe-area-inset-left));
  display: block;
  max-width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 16px 56px 16px 18px;
  border: 1px solid rgb(241 228 198 / 30%);
  border-radius: 8px;
  background: rgb(25 33 29 / 38%);
  color: var(--vir-pergament);
  opacity: 0;
  box-shadow: 0 18px 55px rgb(0 0 0 / 28%);
  backdrop-filter: blur(8px);
  transform: translateY(10px);
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    background-color 520ms ease;
}

.scene-caption[hidden] {
  display: none !important;
}

.scene-caption.is-visible {
  background: rgb(25 33 29 / 72%);
  opacity: 1;
  transform: translateY(0);
}

.scene-caption p {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 650;
  line-height: 1.42;
}

.scene-caption__close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: rgb(241 228 198 / 28%);
  background: rgb(68 68 68 / 44%);
  color: var(--vir-pergament);
  font-size: 24px;
  line-height: 1;
}

.scene-quick-nav {
  position: absolute;
  z-index: 84;
  left: 18px;
  right: 72px;
  bottom: 18px;
  width: auto;
  pointer-events: auto;
}

.scene-quick-nav.is-open {
  z-index: 1800;
}

.layer-controls {
  position: absolute;
  z-index: 82;
  top: 18px;
  right: 18px;
  width: min(226px, calc(100vw - 36px));
  max-height: 210px;
  overflow: hidden;
  border: 1px solid rgb(217 217 217 / 14%);
  border-radius: 6px;
  background: rgb(68 68 68 / 76%);
  box-shadow: 0 16px 42px rgb(68 68 68 / 28%);
  color: var(--vir-pergament);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transition: width 180ms ease, max-height 160ms ease, background 160ms ease;
}

.layer-controls.is-collapsed {
  width: 82px;
  max-height: 36px;
}

.layer-controls:not(.is-collapsed) {
  z-index: 220;
}

.layer-controls.has-media-library:not(.is-collapsed) {
  width: min(282px, calc(100vw - 36px));
  max-height: min(760px, calc(100svh - 36px));
}

.layer-controls.has-media-library:not(.is-collapsed):has(.media-library__category--subgroup[open]) {
  width: min(332px, calc(100vw - 36px));
}

.layer-controls.has-media-library:not(.is-collapsed):has(.media-library__category--legacy[open]) {
  width: min(332px, calc(100vw - 36px));
}

.layer-controls__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  touch-action: manipulation;
}

.layer-controls__title {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-controls__state {
  color: var(--vir-pergament);
  transform: rotate(180deg);
  transition: transform 160ms ease, color 160ms ease;
}

.layer-controls.is-collapsed .layer-controls__state {
  transform: rotate(0deg);
}

.layer-controls__panel {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
  pointer-events: auto;
}

.layer-controls.has-media-library .layer-controls__panel {
  max-height: calc(min(760px, 100svh - 36px) - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.layer-controls__panel[hidden] {
  display: none !important;
}

.layer-controls__panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 700;
}

.layer-controls__panel label[hidden] {
  display: none !important;
}

.layer-controls__panel input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.layer-controls__visibility {
  display: grid;
  gap: 8px;
}

.layer-controls__eyebrow,
.media-library__title {
  margin: 2px 0 0;
  color: rgb(241 228 198 / 68%);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-library {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
}

.media-library[hidden] {
  display: none !important;
}

.media-library__title {
  margin-bottom: 2px;
}

.media-library__category {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.media-library__category--root {
  margin: 0;
}

.media-library__category--subgroup {
  margin: 0 6px 4px;
}

.media-library__group {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.media-library__category > summary,
.media-library__group > summary {
  display: grid;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.media-library__category > summary::-webkit-details-marker,
.media-library__group > summary::-webkit-details-marker {
  display: none;
}

.media-library__category > summary {
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  min-height: 38px;
  gap: 8px;
  padding: 7px 9px;
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 820;
}

.media-library__info-toggle {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.layer-controls__panel .media-library__info-toggle {
  display: grid;
  gap: 0;
  place-items: center;
}

.media-library__info-toggle input {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: none;
  border: 1px solid rgb(241 228 198 / 46%);
  border-radius: 4px;
  background: rgb(0 0 0 / 16%);
  cursor: pointer;
}

.media-library__info-toggle span {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  transform: translateY(-1px) rotate(-45deg);
  pointer-events: none;
}

.media-library__info-toggle input:checked {
  border-color: rgb(83 176 98 / 92%);
  background: rgb(44 154 58 / 72%);
}

.media-library__info-toggle input:checked + span {
  border-color: var(--vir-pergament);
}

.media-library__info-toggle input:focus-visible {
  outline: 2px solid var(--vir-pergament);
  outline-offset: 2px;
}

.media-library__category > summary::after,
.media-library__group > summary::after {
  content: "›";
  grid-column: 3;
  grid-row: 1;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  justify-self: end;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transform-origin: center;
  transform: rotate(0deg);
  transition: transform 140ms ease;
}

.media-library__category[open] > summary::after,
.media-library__group[open] > summary::after {
  transform: rotate(90deg);
}

.media-library__group > summary::after {
  grid-column: 2;
}

.media-library__group--video > summary::after {
  grid-column: 3;
}

.media-library__category > summary small,
.media-library__group > summary small {
  margin-right: 19px;
  color: rgb(241 228 198 / 62%);
  font-size: 11px;
  font-weight: 750;
}

.media-library__icon,
.media-library__item-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgb(241 228 198 / 38%);
  border-radius: 50%;
  color: var(--vir-pergament);
  font-size: 14px;
  font-weight: 900;
}

.media-library__icon--video,
.media-library__item--video .media-library__item-icon {
  border-color: rgb(83 176 98 / 80%);
  background: rgb(44 154 58 / 36%);
}

.media-library__group--video > summary {
  grid-template-columns: 22px minmax(0, 1fr) 20px;
}

.media-library__group--video > summary .media-library__icon {
  font-size: 0;
  transition: background 160ms ease;
}

.media-library__group--video > summary .media-library__icon::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 160ms ease;
}

.media-library__icon.has-thumbnail {
  overflow: hidden;
  border-color: rgb(241 228 198 / 32%);
  background: rgb(0 0 0 / 18%);
}

.media-library__icon.has-thumbnail::after {
  display: none;
}

.media-library__icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-library__group--video[open] > summary .media-library__icon {
  background: rgb(44 154 58 / 58%);
}

.media-library__group--video[open] > summary .media-library__icon::after {
  transform: rotate(90deg);
}

.media-library__group--video[open] > summary .media-library__icon.has-thumbnail {
  background: rgb(0 0 0 / 26%);
}

.media-library__group {
  margin: 0 6px 4px;
}

.media-library__group > summary {
  grid-template-columns: minmax(0, 1fr) 20px;
  min-height: 33px;
  gap: 8px;
  padding: 6px 8px;
  color: rgb(241 228 198 / 92%);
  font-size: 12px;
  font-weight: 750;
}

.media-library__group.media-library__group--video > summary {
  grid-template-columns: 22px minmax(0, 1fr) 20px;
}

.media-library__group.media-library__group--links > summary {
  grid-template-columns: 22px minmax(0, 1fr) 20px;
}

.media-library__group.media-library__group--video > summary::after {
  grid-column: 3;
}

.media-library__group.media-library__group--links > summary::after {
  grid-column: 3;
}

.media-library__list {
  display: grid;
  gap: 1px;
  padding: 0 4px 5px 12px;
  border: 0;
  background: transparent;
}

.media-library__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 3px;
  padding: 3px;
  border-radius: 0;
  background: transparent;
  color: var(--vir-pergament);
  text-align: left;
}

.media-library__item-open {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 38px;
  gap: 8px;
  padding: 5px 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.media-library__item-open:hover,
.media-library__item-open:focus-visible {
  background: rgb(241 228 198 / 14%);
}

.media-library__item-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  cursor: pointer;
}

.media-library__item-copy strong {
  overflow: visible;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.22;
  text-overflow: clip;
  white-space: normal;
}

.media-library__item--video .media-library__item-copy strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.2;
}

.media-library__item-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgb(241 228 198 / 62%);
  font-size: 10px;
  font-weight: 650;
}

.media-library__locate {
  display: grid;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(241 228 198 / 26%);
  border-radius: 50%;
  background: rgb(0 0 0 / 12%);
  color: var(--accent);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.media-library__locate:hover,
.media-library__locate:focus-visible {
  border-color: rgb(241 228 198 / 72%);
  background: rgb(44 148 53 / 36%);
  transform: scale(1.08);
}

.scene-quick-nav__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 16px;
  align-items: center;
  width: min(380px, 100%);
  max-width: 100%;
  min-height: 46px;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 12px;
  touch-action: manipulation;
}

.scene-quick-nav__toggle:hover {
  background: rgb(68 68 68 / 68%);
}

.scene-quick-nav__toggle span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.scene-quick-nav__toggle strong {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-quick-nav__toggle-icon {
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--vir-pergament);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.scene-quick-nav.is-open .scene-quick-nav__toggle-icon {
  transform: translateY(2px) rotate(225deg);
}

.scene-quick-nav__panel {
  position: absolute;
  z-index: 1801;
  left: 0;
  bottom: calc(100% + 10px);
  width: 100%;
  overflow: hidden;
  padding: 10px 46px;
  border: 0;
  border-radius: 14px;
  background: rgb(48 48 46 / 15%);
  box-shadow: 0 22px 70px rgb(68 68 68 / 36%);
  backdrop-filter: blur(14px);
  overscroll-behavior: contain;
  pointer-events: auto;
  touch-action: pan-x;
}

.scene-quick-nav__list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgb(241 228 198 / 48%) transparent;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.scene-quick-nav__item {
  position: relative;
  display: block;
  flex: 0 0 144px;
  width: 144px;
  min-height: 100px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(241 228 198 / 18%);
  border-radius: 9px;
  text-align: left;
  background: rgb(68 68 68 / 36%);
  box-shadow: 0 7px 18px rgb(0 0 0 / 22%);
  scroll-snap-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.scene-quick-nav__item:hover,
.scene-quick-nav__item.is-active {
  border-color: rgb(76 178 83 / 92%);
  background: rgb(44 148 53 / 18%);
  box-shadow: 0 0 0 2px rgb(44 148 53 / 28%), 0 9px 22px rgb(0 0 0 / 30%);
  transform: translateY(-2px);
}

.scene-quick-nav__item.is-active {
  border-width: 3px;
  border-color: rgb(100 205 105 / 100%);
  box-shadow: 0 0 0 3px rgb(44 148 53 / 42%), 0 10px 24px rgb(0 0 0 / 36%);
}

.scene-quick-nav__thumb {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: rgb(68 68 68);
}

.scene-quick-nav__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 1px;
  padding: 16px 8px 7px;
  background: linear-gradient(to bottom, transparent, rgb(27 30 26 / 92%) 62%);
}

.scene-quick-nav__caption span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.scene-quick-nav__caption strong {
  overflow: hidden;
  color: var(--vir-pergament);
  font-size: 12px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-quick-nav__scroll-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 32px;
  height: 54px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: rgb(31 34 30 / 54%);
  box-shadow: 0 7px 18px rgb(0 0 0 / 26%);
  color: var(--vir-pergament);
  opacity: 0.68;
  transform: translateY(-50%);
  transition: opacity 150ms ease, background 150ms ease;
}

.scene-quick-nav__scroll-arrow:hover:not(:disabled) {
  background: rgb(31 34 30 / 82%);
  opacity: 1;
}

.scene-quick-nav__scroll-arrow:disabled {
  cursor: default;
  opacity: 0.2;
}

.scene-quick-nav__scroll-arrow::before {
  width: 13px;
  height: 13px;
  content: "";
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.scene-quick-nav__scroll-arrow--prev {
  left: 8px;
}

.scene-quick-nav__scroll-arrow--prev::before {
  transform: rotate(-135deg);
}

.scene-quick-nav__scroll-arrow--next {
  right: 8px;
}

.scene-quick-nav__scroll-arrow--next::before {
  transform: rotate(45deg);
}

.editor-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 480px;
  height: 100vh;
  min-height: 0;
  max-height: 100vh;
  padding: 22px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.panel-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.panel-link--back {
  color: var(--text);
}

.panel-link:hover,
.panel-link:focus-visible {
  border-color: rgb(44 148 53 / 48%);
  background: rgb(44 148 53 / 10%);
}

.editor-sections {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.editor-section-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.editor-section-group--content {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgb(46 93 51 / 28%);
}

.editor-section-group__label {
  margin: 0 2px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-section {
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgb(68 68 68 / 16%);
  border-radius: 8px;
  background: rgb(222 214 193 / 34%);
  transition:
    border-color 240ms ease,
    background-color 240ms ease,
    box-shadow 240ms ease;
}

.editor-section[open] {
  display: block;
  flex: 0 0 auto;
  min-height: auto;
  border-color: rgb(44 148 53 / 58%);
  background: rgb(255 255 255 / 42%);
  box-shadow:
    inset 4px 0 0 var(--accent),
    0 8px 22px rgb(68 68 68 / 16%);
}

.editor-sections:has(.editor-section[open]) .editor-section:not([open]),
.editor-sections.has-open-section .editor-section:not([open]) {
  display: none;
}

.editor-section summary {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--vir-graphit);
  cursor: pointer;
  list-style: none;
  transition:
    color 220ms ease,
    background-color 220ms ease;
}

.editor-section summary:hover,
.editor-section summary:focus-visible {
  background: rgb(44 148 53 / 9%);
}

.editor-section summary:focus-visible {
  outline: 2px solid rgb(44 148 53 / 55%);
  outline-offset: -2px;
}

.editor-section[open] summary {
  background: rgb(44 148 53 / 13%);
  color: var(--accent-strong);
}

.editor-section summary::-webkit-details-marker {
  display: none;
}

.editor-section summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  align-self: center;
  align-items: center;
  justify-content: center;
  border: 2px solid rgb(46 93 51 / 48%);
  border-radius: 50%;
  background: rgb(255 255 255 / 42%);
  color: var(--accent-strong);
  grid-column: 1;
  grid-row: 1 / span 2;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m14.5 5-7 7 7 7' fill='none' stroke='%232e5d33' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  transform: none;
  transition:
    transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    color 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.editor-section[open] summary::after {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--vir-pergament);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 5 7 7-7 7' fill='none' stroke='%23f1e4c6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: none;
}

.editor-section summary span {
  grid-column: 2;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
}

.editor-section summary small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.editor-section__body {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 0 14px 14px;
  overflow: visible;
}

.editor-section__close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: none;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(46 93 51 / 44%);
  border-radius: 50%;
  background: rgb(255 255 255 / 74%);
  color: var(--accent-strong);
  transition: background-color 160ms ease, transform 160ms ease;
}

.editor-section__close::before {
  width: 20px;
  height: 20px;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 5 7 7-7 7' fill='none' stroke='%232e5d33' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.editor-section__close:hover,
.editor-section__close:focus-visible {
  background: var(--accent-strong);
  color: var(--vir-pergament);
  transform: translateX(2px);
}

.editor-section__close:hover::before,
.editor-section__close:focus-visible::before {
  filter: brightness(0) invert(1);
}

.editor-subsection {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgb(46 93 51 / 22%);
  border-radius: 7px;
  background: rgb(255 255 255 / 26%);
}

.editor-subsection__heading h2 {
  margin: 0;
  font-size: 15px;
}

.editor-subsection__heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@supports selector(details::details-content) {
  .editor-section::details-content {
    display: block;
    block-size: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      block-size 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 220ms ease,
      content-visibility 320ms allow-discrete;
  }

  .editor-section[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editor-section,
  .editor-section summary,
  .editor-section summary::after,
  .editor-section::details-content {
    transition-duration: 0.01ms;
  }
}

code {
  color: var(--accent);
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.panel-section h2 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

select,
input[type="number"],
input[type="text"],
textarea {
  min-height: 38px;
  width: 100%;
  padding: 0 10px;
  background: var(--vir-pergament);
  color: var(--text);
}

textarea {
  min-height: 110px;
  padding: 10px;
  line-height: 1.45;
  resize: vertical;
}

input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--vir-pergament);
}

input[type="range"] {
  display: block;
  height: 38px;
  width: 100%;
  min-width: 0;
  margin: 0;
  accent-color: var(--accent);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.toolbar--stack {
  grid-template-columns: 1fr;
}

.field-hint {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-button {
  border-color: var(--vir-dunkelgruen);
  background: var(--accent);
  color: var(--vir-pergament);
  font-weight: 800;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
  color: var(--vir-pergament);
}

.danger-button {
  width: 100%;
  border-color: var(--danger);
  background: var(--danger);
  color: var(--vir-pergament);
}

.danger-button:hover:not(:disabled) {
  background: var(--vir-graphit);
  color: var(--vir-pergament);
}

.panel-section {
  display: grid;
  gap: 12px;
}

.panel-section h2 {
  margin: 0;
}

.backend-tools h3,
.backend-card h3 {
  margin: 0;
  color: var(--vir-graphit);
  font-size: 15px;
}

.backend-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(222 214 193 / 54%);
}

.backend-card input[type="file"] {
  width: 100%;
  font-size: 12px;
}

.control-slot-grid {
  display: grid;
  gap: 10px;
}

.control-slot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(222 214 193 / 54%);
}

.control-slot-card__body {
  min-width: 0;
}

.control-slot-card > .editor-subsection {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.control-slot-card.is-collapsed > .control-slot-card__body > p,
.control-slot-card.is-collapsed > .control-slot-card__body > .editor-modal__field,
.control-slot-card.is-collapsed > .editor-subsection {
  display: none;
}

.control-slot-card.is-dragging {
  opacity: 0.56;
}

.control-slot-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(44 148 53 / 24%);
  background: rgb(235 217 162 / 58%);
}

.control-slot-card.is-hidden {
  border-style: dashed;
  background: rgb(241 228 198 / 30%);
}

.control-slot-card__handle {
  float: left;
  width: 30px;
  min-height: 30px;
  margin: 0 8px 6px 0;
  padding: 0;
  border-color: rgb(68 68 68 / 18%);
  background: rgb(68 68 68 / 9%);
  color: var(--vir-graphit);
  cursor: grab;
  font-size: 17px;
}

.control-slot-card__handle:active {
  cursor: grabbing;
}

.control-slot-card h3 {
  margin: 0 0 4px;
  color: var(--vir-graphit);
  font-size: 15px;
}

.control-slot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.control-slot-card__status {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 3px 8px;
  border: 1px solid rgb(44 148 53 / 32%);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.control-slot-card.is-hidden .control-slot-card__status {
  border-color: rgb(139 58 58 / 28%);
  color: var(--danger);
}

.control-slot-card__actions {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 92px;
}

.control-slot-card__actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.control-slot-card__actions .control-slot-card__collapse {
  position: relative;
  min-height: 28px;
  padding: 0;
  border-color: rgb(46 93 51 / 36%);
  background: rgb(255 255 255 / 38%);
  color: var(--accent-strong);
}

.control-slot-card__collapse::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  content: "";
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translate(-50%, -34%) rotate(45deg);
  transition: transform 180ms ease;
}

.control-slot-card.is-collapsed .control-slot-card__collapse::before {
  transform: translate(-50%, -66%) rotate(225deg);
}

.control-slot-card .editor-modal__field {
  margin-top: 10px;
}

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

.line-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.line-item.is-active {
  border-color: var(--accent);
  background: var(--vir-honig);
}

.line-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.arrow-swatch {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.arrow-swatch svg {
  width: 20px;
  height: 20px;
}

.arrow-swatch img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.info-swatch {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.info-swatch svg {
  width: 20px;
  height: 20px;
}

.line-meta {
  overflow: hidden;
}

.line-meta strong,
.line-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-meta small {
  color: var(--muted);
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.editor-context-menu {
  position: fixed;
  z-index: 5000;
  display: grid;
  width: 178px;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgb(217 217 217 / 20%);
  border-radius: 8px;
  background: rgb(68 68 68 / 94%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 34%);
  color: var(--vir-pergament);
  backdrop-filter: blur(12px);
}

.editor-context-menu[hidden] {
  display: none !important;
}

.editor-context-menu strong {
  overflow: hidden;
  padding: 4px 6px 6px;
  color: var(--vir-pergament);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-context-menu button {
  width: 100%;
  min-height: 34px;
  border-color: rgb(217 217 217 / 14%);
  background: transparent;
  text-align: left;
}

.editor-context-menu button:hover {
  background: rgb(44 148 53 / 22%);
}

.editor-context-menu button.danger:hover {
  background: rgb(139 58 58 / 42%);
}

.editor-modal {
  position: fixed;
  z-index: 4900;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(0 0 0 / 46%);
}

.editor-modal[hidden] {
  display: none !important;
}

.editor-modal__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgb(68 68 68 / 18%);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgb(0 0 0 / 36%);
}

.editor-modal__header,
.editor-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.editor-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.editor-modal__header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
}

.editor-modal__close {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.editor-modal__body {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 14px;
  overflow: auto;
}

.editor-modal__field {
  display: grid;
  gap: 7px;
}

.editor-modal__field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-modal__section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgb(68 68 68 / 14%);
  border-radius: 8px;
  background: rgb(241 228 198 / 24%);
}

.editor-modal__section h3 {
  margin: 0;
  color: var(--vir-graphit);
  font-family: var(--font-heading);
  font-size: 15px;
}

.editor-modal__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.editor-modal__scene-list,
.editor-modal__coordinate-list,
.editor-modal__panorama-list,
.editor-modal__upload-list {
  display: grid;
  gap: 8px;
}

.editor-modal__scene-row,
.editor-modal__coordinate-row,
.editor-modal__panorama-row,
.editor-modal__upload-row {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgb(68 68 68 / 14%);
  border-radius: 6px;
  background: rgb(222 214 193 / 42%);
}

.editor-modal__scene-row {
  grid-template-columns: 38px auto minmax(130px, 0.7fr) minmax(260px, 1.15fr) minmax(150px, 0.75fr);
}

.editor-modal__panorama-row {
  align-items: stretch;
  grid-template-columns: minmax(74px, 0.35fr) minmax(260px, 0.95fr) minmax(430px, 1.45fr) minmax(180px, 0.65fr);
  grid-template-areas:
    "order title coords actions"
    "meta meta meta actions";
}

.editor-modal__panorama-row > .editor-modal__field:nth-child(1) {
  grid-area: order;
}

.editor-modal__panorama-row > .editor-modal__field:nth-child(2) {
  grid-area: title;
}

.editor-modal__coordinate-fields {
  grid-area: coords;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}

.start-panorama-panel,
.north-calibration-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgb(68 68 68 / 14%);
  border-radius: 6px;
  background: rgb(222 214 193 / 34%);
}

.start-panorama-panel > strong,
.north-calibration-panel > strong {
  color: var(--vir-graphit);
  font-family: var(--font-heading);
  font-size: 15px;
}

.north-calibration-panel__actions {
  grid-template-columns: 1fr 1fr;
}

.bodenlogo-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgb(68 68 68 / 14%);
  border-radius: 6px;
  background: rgb(222 214 193 / 34%);
}

.bodenlogo-panel > strong {
  color: var(--vir-graphit);
  font-family: var(--font-heading);
  font-size: 15px;
}

.editor-modal__bodenlogo-controls {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, 0.6fr) minmax(220px, 1fr) max-content minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
}

.editor-modal__upload-row {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr);
}

.editor-modal__size-meta {
  display: grid;
  grid-area: meta;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.editor-modal__panorama-actions {
  display: grid;
  grid-area: actions;
  align-content: start;
  gap: 8px;
}

.editor-modal__panorama-actions button {
  width: 100%;
}

.editor-modal__upload-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.editor-modal__upload-meta strong,
.editor-modal__panorama-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--vir-graphit);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-modal__upload-meta span,
.editor-modal__panorama-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.editor-modal__scene-row.is-dragging {
  opacity: 0.5;
}

.editor-modal__drag-handle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-color: rgb(68 68 68 / 16%);
  background: rgb(68 68 68 / 10%);
  color: var(--vir-graphit);
  cursor: grab;
  font-size: 18px;
  line-height: 1;
}

.editor-modal__drag-handle:active {
  cursor: grabbing;
}

.editor-modal__thumb-dropzone {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px;
  border: 1px dashed rgb(68 68 68 / 28%);
  border-radius: 6px;
  background: rgb(241 228 198 / 48%);
  color: var(--vir-graphit);
  cursor: pointer;
}

.editor-modal__tile-fields {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.editor-modal__thumb-dropzone.is-over,
.editor-modal__thumb-dropzone.is-uploading {
  border-color: var(--accent);
  background: rgb(44 148 53 / 12%);
}

.editor-modal__thumb-dropzone img {
  width: 54px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: rgb(68 68 68 / 12%);
}

.editor-modal__thumb-dropzone span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-modal__row-status {
  grid-column: 3 / -1;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.editor-modal__upload-row .editor-modal__row-status {
  grid-column: 1 / -1;
}

.editor-modal__coordinate-row {
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto;
}

.editor-modal__scene-row strong,
.editor-modal__coordinate-row strong {
  overflow: hidden;
  color: var(--vir-graphit);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-modal__coordinate-row button.is-active {
  border-color: var(--accent);
  background: var(--accent);
}

.editor-modal__map {
  height: 320px;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgb(68 68 68 / 18%);
  border-radius: 8px;
}

.editor-modal__map.is-marker-dragging-enabled .leaflet-marker-icon {
  cursor: grab;
}

.editor-modal__map.is-marker-dragging-enabled .leaflet-marker-icon:active {
  cursor: grabbing;
}

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

.style-grid .field {
  min-width: 0;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.panel-footer {
  display: grid;
  grid-template-areas:
    "save publish"
    "save-status publish-status"
    "back back";
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
  margin: 0 -22px -22px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.panel-footer button {
  min-height: 34px;
}

#saveRoutes {
  grid-area: save;
}

#publishOnlineButton {
  grid-area: publish;
}

.panel-footer .panel-link--back {
  grid-area: back;
  justify-content: center;
}

#saveStatus,
#publishOnlineStatus {
  min-height: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

#saveStatus {
  grid-area: save-status;
}

#publishOnlineStatus {
  grid-area: publish-status;
}

.tour-hotspot-anchor {
  width: 0;
  height: 0;
}

.pnlm-hotspot.tour-hotspot-anchor {
  z-index: 20;
}

.spherical-carousel {
  position: absolute;
  inset: 0;
  z-index: 14;
  overflow: hidden;
  pointer-events: none;
  perspective: 760px;
  perspective-origin: 50% 50%;
}

.spherical-carousel__card {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  align-content: start;
  width: 220px;
  height: 132px;
  min-height: 132px;
  padding: 11px 13px;
  border: 1px solid rgb(241 228 198 / 22%);
  border-radius: 15px / 24px;
  background-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 10%),
    inset 0 22px 32px rgb(255 255 255 / 7%),
    inset 0 -30px 48px rgb(0 0 0 / 30%);
  color: var(--white);
  overflow: hidden;
  pointer-events: auto;
  text-align: left;
  text-shadow: 0 2px 7px rgb(0 0 0 / 78%);
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  contain: layout paint style;
  will-change: transform, opacity;
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.spherical-carousel__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  transform: scale(1);
  transform-origin: center;
  transition:
    filter 220ms ease,
    transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.spherical-carousel__card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 68%), rgb(0 0 0 / 10%) 46%, rgb(0 0 0 / 22%)),
    radial-gradient(ellipse at 50% -22%, rgb(255 255 255 / 24%), transparent 46%),
    linear-gradient(90deg, rgb(0 0 0 / 30%), transparent 18%, transparent 82%, rgb(0 0 0 / 30%)),
    linear-gradient(180deg, rgb(0 0 0 / 12%), transparent 34%, rgb(0 0 0 / 20%));
  content: "";
  pointer-events: none;
}

.spherical-carousel__card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 18px rgb(0 0 0 / 28%),
    inset 0 0 38px rgb(68 68 68 / 18%),
    inset 0 0 0 0 rgb(241 228 198 / 0%);
  content: "";
  pointer-events: none;
  transition: box-shadow 220ms ease;
}

.spherical-carousel__card strong {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: clamp(12px, 0.95vw, 16px);
  font-weight: 800;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spherical-carousel__card:hover:not(:disabled),
.spherical-carousel__card:focus-visible {
  border-color: rgb(241 228 198 / 76%);
  background-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 14%),
    inset 0 18px 34px rgb(255 255 255 / 10%),
    inset 0 -28px 46px rgb(0 0 0 / 30%),
    0 0 0 5px rgb(241 228 198 / 10%),
    0 0 26px rgb(241 228 198 / 20%);
  color: var(--white);
  filter: saturate(1.08) brightness(1.06);
}

.spherical-carousel__card:hover:not(:disabled) .spherical-carousel__media,
.spherical-carousel__card:focus-visible .spherical-carousel__media {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.055);
}

.spherical-carousel__card:hover:not(:disabled)::after,
.spherical-carousel__card:focus-visible::after {
  box-shadow:
    inset 0 0 18px rgb(0 0 0 / 18%),
    inset 0 0 36px rgb(241 228 198 / 18%),
    inset 0 0 0 1px rgb(241 228 198 / 24%);
}

.spherical-carousel__card.is-current {
  border-color: rgb(44 148 53 / 82%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 14%),
    inset 0 18px 34px rgb(255 255 255 / 8%),
    inset 0 -28px 46px rgb(0 0 0 / 30%),
    0 0 0 3px rgb(44 148 53 / 18%);
}

.video-gallery {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
}

.video-gallery[hidden] {
  display: none;
}

.video-gallery__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(360px, calc(100% - 36px));
  max-height: min(580px, calc(100% - 36px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(241 228 198 / 28%);
  border-radius: 8px;
  background: rgb(50 51 49 / 78%);
  box-shadow: 0 22px 56px rgb(0 0 0 / 34%);
  color: var(--vir-pergament);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(8px) scale(0.98);
  transition: opacity 180ms ease, transform 220ms ease;
  backdrop-filter: blur(12px);
}

.video-gallery.is-open .video-gallery__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.video-gallery__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px 14px;
  border-bottom: 1px solid rgb(241 228 198 / 16%);
}

.video-gallery__header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.15;
}

.video-gallery__close {
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(241 228 198 / 35%);
  border-radius: 50%;
  background: rgb(0 0 0 / 16%);
  color: var(--vir-pergament);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.video-gallery__list {
  display: grid;
  min-height: 0;
  gap: 6px;
  padding: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.video-gallery__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: stretch;
  min-height: 62px;
  gap: 9px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgb(255 255 255 / 5%);
  color: var(--vir-pergament);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.video-gallery__item:hover,
.video-gallery__item:focus-visible {
  border-color: rgb(241 228 198 / 56%);
  background: rgb(241 228 198 / 14%);
  transform: translateY(-1px);
}

.video-gallery__item:focus-visible {
  outline: 2px solid rgb(241 228 198 / 78%);
  outline-offset: 2px;
}

.video-gallery__thumb {
  min-height: 52px;
  border-radius: 3px;
  background-color: rgb(0 0 0 / 22%);
  background-position: center;
  background-size: cover;
}

.video-gallery__copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.video-gallery__copy strong {
  overflow: visible;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: pretty;
}

.tour-arrow {
  position: relative;
  display: grid;
  width: var(--arrow-size, 54px);
  height: var(--arrow-size, 54px);
  min-height: var(--arrow-size, 54px);
  padding: 0;
  place-items: center;
  border: 1px solid rgb(217 217 217 / 16%);
  border-radius: 50%;
  background: rgb(68 68 68 / 10%);
  box-shadow: 0 10px 24px rgb(68 68 68 / 18%);
  backdrop-filter: blur(8px);
  transform: translate(calc(var(--arrow-size, 54px) / -2), calc(var(--arrow-size, 54px) / -2));
  transition:
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
  overflow: visible;
}

.tour-arrow::before,
.tour-arrow::after {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.76);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.tour-arrow::before {
  border: 1px solid rgb(241 228 198 / 58%);
  background:
    radial-gradient(circle at 32% 24%, rgb(241 228 198 / 42%), transparent 34%),
    radial-gradient(circle, rgb(241 228 198 / 18%), transparent 68%);
  box-shadow: 0 0 0 8px rgb(241 228 198 / 8%);
}

.tour-arrow::after {
  inset: 0;
  background: rgb(241 228 198 / 18%);
  mix-blend-mode: screen;
}

.tour-arrow:hover,
.tour-arrow:focus-visible {
  background: rgb(44 148 53 / 24%);
  box-shadow:
    0 12px 26px rgb(68 68 68 / 30%),
    0 0 0 7px rgb(241 228 198 / 12%);
  filter: saturate(1.12) brightness(1.08);
  transform: translate(calc(var(--arrow-size, 54px) / -2), calc(var(--arrow-size, 54px) / -2)) scale(1.14);
}

.tour-arrow:hover::before,
.tour-arrow:focus-visible::before {
  opacity: 1;
  transform: scale(1.08);
}

.tour-arrow:hover::after,
.tour-arrow:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.tour-arrow.is-editor-selected {
  z-index: 20;
  border-color: rgb(241 228 198 / 92%);
  background: rgb(44 148 53 / 38%);
  box-shadow:
    0 0 0 4px rgb(44 148 53 / 52%),
    0 0 0 9px rgb(241 228 198 / 26%),
    0 14px 32px rgb(0 0 0 / 34%);
  filter: saturate(1.18) brightness(1.1);
}

.is-editing-hotspot,
.is-editing-hotspot * {
  cursor: grabbing !important;
}

.tour-arrow svg {
  position: relative;
  z-index: 1;
  width: calc(var(--arrow-size, 54px) * 0.7);
  height: calc(var(--arrow-size, 54px) * 0.7);
}

.tour-arrow__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(var(--arrow-size, 54px) * 0.7);
  height: calc(var(--arrow-size, 54px) * 0.7);
  object-fit: contain;
  pointer-events: none;
}

.tour-arrow__shadow {
  fill: rgb(68 68 68 / 45%);
  transform: translateY(3px);
}

.tour-arrow__fill {
  fill: var(--accent);
}

.tour-arrow__stroke {
  fill: none;
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.tour-arrow:hover .tour-arrow__fill {
  fill: var(--vir-pergament);
}

.tour-arrow__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid rgb(217 217 217 / 18%);
  border-radius: 6px;
  background: rgb(68 68 68 / 88%);
  box-shadow: 0 12px 34px rgb(68 68 68 / 34%);
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.tour-arrow:hover .tour-arrow__label,
.tour-arrow:focus-visible .tour-arrow__label,
.tour-arrow.is-editor-selected .tour-arrow__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tour-info {
  position: relative;
  display: grid;
  width: var(--info-button-size, 36px);
  height: var(--info-button-size, 36px);
  min-height: var(--info-button-size, 36px);
  padding: 0;
  place-items: center;
  border: 1px solid rgb(217 217 217 / 22%);
  border-radius: 50%;
  background: rgb(68 68 68 / 10%);
  box-shadow: 0 8px 18px rgb(68 68 68 / 24%);
  backdrop-filter: blur(8px);
  transform: translate(var(--info-button-offset, -18px), var(--info-button-offset, -18px)) scale(1);
  transition:
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
  overflow: visible;
}

.tour-info::before,
.tour-info::after {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.76);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.tour-info::before {
  border: 1px solid rgb(241 228 198 / 58%);
  background:
    radial-gradient(circle at 32% 24%, rgb(241 228 198 / 42%), transparent 34%),
    radial-gradient(circle, rgb(241 228 198 / 18%), transparent 68%);
  box-shadow: 0 0 0 8px rgb(241 228 198 / 8%);
}

.tour-info::after {
  inset: 0;
  background: rgb(241 228 198 / 18%);
  mix-blend-mode: screen;
}

.tour-info:hover,
.tour-info:focus-visible {
  z-index: 40;
  background: rgb(44 148 53 / 26%);
  box-shadow:
    0 12px 26px rgb(68 68 68 / 30%),
    0 0 0 7px rgb(241 228 198 / 12%);
  filter: saturate(1.12) brightness(1.08);
  transform: translate(var(--info-button-offset, -18px), var(--info-button-offset, -18px)) scale(1.14);
}

.tour-hotspot-anchor:has(.tour-info:hover),
.tour-hotspot-anchor:has(.tour-info:focus-visible) {
  z-index: 40 !important;
}

.tour-info.is-editor-selected {
  z-index: 20;
  border-color: rgb(241 228 198 / 92%);
  background: rgb(44 148 53 / 38%);
  box-shadow:
    0 0 0 4px rgb(44 148 53 / 52%),
    0 0 0 9px rgb(241 228 198 / 26%),
    0 14px 32px rgb(0 0 0 / 34%);
  filter: saturate(1.18) brightness(1.1);
  transform: translate(var(--info-button-offset, -18px), var(--info-button-offset, -18px)) scale(1.12);
}

.tour-info:hover::before,
.tour-info:focus-visible::before {
  opacity: 1;
  transform: scale(1.08);
}

.tour-info:hover::after,
.tour-info:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.tour-info:active {
  background: rgb(44 148 53 / 42%);
  filter: saturate(1.24) brightness(1.16);
  transform: translate(var(--info-button-offset, -18px), var(--info-button-offset, -18px)) scale(1.06);
}

.tour-info--kuladig-group {
  border-color: rgb(153 191 103 / 78%);
  box-shadow:
    0 10px 24px rgb(25 62 33 / 34%),
    0 0 0 5px rgb(153 191 103 / 12%);
}

.tour-info--kuladig-group.is-kuladig-group-open {
  border-color: rgb(241 228 198 / 88%);
  box-shadow:
    0 12px 28px rgb(25 62 33 / 40%),
    0 0 0 7px rgb(153 191 103 / 20%);
  filter: saturate(1.15) brightness(1.1);
}

.tour-info--kuladig-object.is-kuladig-reveal {
  animation: kuladig-object-reveal 420ms cubic-bezier(0.16, 0.84, 0.26, 1) both;
  animation-delay: var(--kuladig-reveal-delay, 0ms);
  pointer-events: none;
}

@keyframes kuladig-object-reveal {
  from {
    opacity: 0;
    filter: blur(2px) saturate(0.8);
    transform: translate(
      calc(var(--info-button-offset, -18px) + var(--kuladig-reveal-x, 0px)),
      calc(var(--info-button-offset, -18px) + var(--kuladig-reveal-y, 0px))
    ) scale(0.2);
  }

  to {
    opacity: 1;
    filter: none;
    transform: translate(var(--info-button-offset, -18px), var(--info-button-offset, -18px)) scale(1);
  }
}

.tour-video {
  border-color: rgb(104 186 189 / 62%);
  background: rgb(20 68 77 / 38%) !important;
}

.tour-video:hover,
.tour-video:focus-visible {
  background: rgb(30 113 122 / 54%) !important;
  box-shadow:
    0 12px 26px rgb(12 45 50 / 36%),
    0 0 0 7px rgb(104 186 189 / 16%);
}

.tour-info svg {
  position: relative;
  z-index: 1;
  width: var(--info-icon-size, 28px);
  height: var(--info-icon-size, 28px);
  transition: transform 180ms ease;
}

.tour-info__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--info-icon-size, 22px);
  height: var(--info-icon-size, 22px);
  object-fit: contain;
  transition: transform 180ms ease;
}

.tour-info:hover svg,
.tour-info:focus-visible svg,
.tour-info:hover .tour-info__icon,
.tour-info:focus-visible .tour-info__icon {
  transform: scale(1.06);
}

.tour-info__fill {
  fill: var(--accent);
}

.tour-info__stroke {
  fill: none;
  stroke: var(--vir-graphit);
  stroke-width: 3px;
}

.tour-info__dot {
  fill: var(--vir-graphit);
}

.tour-info:hover .tour-info__fill {
  fill: var(--vir-pergament);
}

.tour-info__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 4;
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid rgb(217 217 217 / 18%);
  border-radius: 6px;
  background: rgb(68 68 68 / 88%);
  box-shadow: 0 12px 34px rgb(68 68 68 / 34%);
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.tour-info:hover .tour-info__label,
.tour-info:focus-visible .tour-info__label,
.tour-info.is-editor-selected .tour-info__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

body:not([data-mode="presentation"]) .web-map-link.is-editor-selected,
body:not([data-mode="presentation"]) .map-fab.is-editor-selected,
body:not([data-mode="presentation"]) .carousel-toggle.is-editor-selected {
  z-index: 245;
  outline: 2px solid rgb(241 228 198 / 92%);
  background: rgb(44 148 53 / 32%);
  box-shadow:
    0 0 0 4px rgb(44 148 53 / 46%),
    0 12px 30px rgb(0 0 0 / 28%);
  backdrop-filter: blur(8px);
}

.map-fab {
  position: absolute;
  right: 18px;
  --menu-shift: 0px;
  top: 132px;
  bottom: auto;
  z-index: 62;
  display: grid;
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 6px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--vir-pergament);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: none;
  touch-action: manipulation;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease,
    transform 520ms cubic-bezier(0.2, 1.45, 0.34, 1);
  transform: translateY(var(--menu-shift));
}

.web-map-link:active,
.map-fab:active {
  background: rgb(68 68 68 / 13%);
  transform: translateY(var(--menu-shift));
}

body.has-open-layer-menu .web-map-link[data-control-position="rightTop"],
body.has-open-layer-menu .map-fab[data-control-position="rightTop"] {
  --menu-shift: var(--layer-controls-open-shift, 0px);
}

.map-fab img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.map-mode-menu {
  position: absolute;
  z-index: 265;
  top: 132px;
  right: 88px;
  display: grid;
  width: 210px;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgb(241 228 198 / 22%);
  border-radius: 7px;
  background: rgb(44 44 42 / 92%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 28%);
  backdrop-filter: blur(10px);
  transform: translateY(var(--map-menu-shift, 0));
}

.map-mode-menu[hidden] {
  display: none;
}

.map-mode-menu button {
  display: grid;
  min-height: 40px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
}

.map-mode-menu button:hover,
.map-mode-menu button:focus-visible {
  background: rgb(44 148 53 / 26%);
}

.map-mode-menu button > span {
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

body.has-open-layer-menu .map-mode-menu {
  --map-menu-shift: var(--layer-controls-open-shift, 0px);
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgb(68 68 68 / 58%);
  backdrop-filter: blur(4px);
}

.presentation-mode .map-modal {
  height: 100vh;
  height: 100dvh;
}

.map-modal[hidden] {
  display: none;
}

.map-modal__panel {
  position: relative;
  z-index: 301;
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr);
  width: min(980px, calc(100vw - 44px));
  height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgb(217 217 217 / 16%);
  border-radius: 8px;
  background: rgb(68 68 68 / 94%);
  box-shadow: 0 26px 80px rgb(68 68 68 / 48%);
  color: var(--vir-pergament);
}

.map-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.map-modal__header {
  border-bottom: 1px solid rgb(217 217 217 / 12%);
}

.map-modal__header p,
.map-modal__header h2 {
  margin: 0;
}

.map-modal__header p {
  color: var(--vir-pergament);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-modal__header h2 {
  color: var(--white);
  font-size: 18px;
}

.map-modal__header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.map-modal__header button {
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(217 217 217 / 9%);
  font-size: 24px;
  line-height: 1;
}

.map-modal__header button[hidden] {
  display: none;
}

.tour-map {
  min-height: 300px;
  background: var(--vir-pergament);
}

.map-modal.is-mini {
  position: absolute;
  z-index: 59;
  display: block;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.presentation-mode .map-modal.is-mini {
  height: auto;
}

.map-modal.is-mini .map-modal__panel {
  position: absolute;
  right: 68px;
  bottom: 18px;
  z-index: 59;
  width: min(380px, calc(100% - 104px));
  height: min(290px, calc(100% - 36px));
  grid-template-rows: auto minmax(0, 1fr);
  border-color: rgb(241 228 198 / 28%);
  border-radius: 7px;
  box-shadow: 0 18px 52px rgb(0 0 0 / 32%);
  pointer-events: auto;
}

.map-modal.is-mini .map-modal__header {
  min-height: 46px;
  padding: 7px 8px 7px 12px;
}

.map-modal.is-mini .map-modal__header p {
  display: none;
}

.map-modal.is-mini .map-modal__header h2 {
  max-width: 230px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-modal.is-mini .leaflet-tooltip {
  display: none !important;
}

.map-modal.is-mini .map-modal__header button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  font-size: 18px;
}

.map-modal.is-mini .tour-map {
  min-height: 0;
}

.map-modal.is-mini .map-status-overlay {
  right: 8px;
  bottom: 8px;
  left: 8px;
  max-width: none;
  font-size: 11px;
}

.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  place-items: center;
  background: rgb(25 33 29 / 38%);
  backdrop-filter: blur(7px);
}

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

.intro-modal__panel {
  position: relative;
  z-index: 321;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, calc(100vw - 36px));
  height: min(94dvh, calc(100vh - 28px));
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  border: 1px solid rgb(241 228 198 / 22%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(68 68 68 / 96%), rgb(33 39 35 / 96%)),
    rgb(68 68 68 / 96%);
  box-shadow: 0 30px 96px rgb(0 0 0 / 42%);
  color: var(--vir-pergament);
}

.intro-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(241 228 198 / 14%);
}

.intro-modal__header p,
.intro-modal__header h2 {
  margin: 0;
}

.intro-modal__header p {
  color: var(--vir-pergament);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-modal__header h2 {
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 30px);
}

.intro-modal__header button {
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(217 217 217 / 9%);
  font-size: 24px;
  line-height: 1;
}

.intro-modal__body {
  display: grid;
  align-content: start;
  gap: 26px;
  overflow-y: auto;
  padding: clamp(20px, 3.2vw, 40px);
  scrollbar-color: rgb(241 228 198 / 48%) rgb(241 228 198 / 12%);
}

.intro-modal__text {
  max-width: 900px;
  margin: 0 auto;
  color: rgb(255 255 255 / 88%);
  font-size: 16px;
  line-height: 1.58;
}

.intro-modal__text h3 {
  margin: 0 0 18px;
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.2;
}

.intro-modal__text p {
  margin: 0 0 0.95em;
}

.intro-modal__text p:first-child {
  margin-bottom: 1.05em;
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.25;
}

.intro-modal__text b,
.intro-modal__text strong {
  color: var(--vir-pergament);
  font-weight: 800;
}

.intro-modal__text i,
.intro-modal__text em {
  color: rgb(255 255 255 / 92%);
  font-style: italic;
}

.intro-warning {
  margin: 18px 0 6px;
  border: 1px solid rgb(241 228 198 / 18%);
  border-radius: 8px;
  background: rgb(241 228 198 / 7%);
}

.intro-warning__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 12px;
  color: var(--vir-pergament);
  cursor: pointer;
  list-style: none;
}

.intro-warning__summary::-webkit-details-marker {
  display: none;
}

.intro-warning__icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid rgb(241 228 198 / 86%);
  border-radius: 50%;
  background: rgb(68 68 68 / 72%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 20%);
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.intro-warning__label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
}

.intro-warning__body {
  padding: 0 14px 14px 56px;
  color: rgb(255 255 255 / 84%);
  font-size: 15px;
  line-height: 1.55;
}

.intro-warning__body p {
  margin: 0;
}

.intro-modal__video-section {
  width: min(900px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgb(241 228 198 / 16%);
}

.intro-modal__video-section h3 {
  margin: 0 0 12px;
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 20px;
}

.intro-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 46dvh;
  border: 1px solid rgb(241 228 198 / 18%);
  border-radius: 8px;
  background: var(--black);
}

.adaptive-video-player {
  overflow: hidden;
  border: 1px solid rgb(241 228 198 / 24%);
  border-radius: 8px;
  background: rgb(24 31 27 / 92%);
  box-shadow: 0 14px 34px rgb(0 0 0 / 24%);
}

.adaptive-video-player .intro-modal__video {
  border: 0;
  border-radius: 0;
}

.adaptive-video-player__toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px 7px 14px;
  color: var(--vir-pergament);
  background: rgb(43 52 46 / 92%);
  backdrop-filter: blur(14px) saturate(120%);
}

.video-modal__description {
  margin: 0;
  padding: 4px 14px 14px;
  color: rgb(241 228 198 / 82%);
  font-size: 14px;
  line-height: 1.45;
  background: rgb(43 52 46 / 92%);
  backdrop-filter: blur(14px) saturate(120%);
}

.adaptive-video-player__status {
  overflow: hidden;
  color: rgb(241 228 198 / 78%);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adaptive-video-player__quality {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(241 228 198 / 72%);
  font-size: 12px;
  font-weight: 700;
}

.adaptive-video-player__quality select {
  min-width: 86px;
  height: 30px;
  margin: 0;
  padding: 0 26px 0 9px;
  border: 1px solid rgb(241 228 198 / 28%);
  border-radius: 5px;
  color: var(--vir-pergament);
  background-color: rgb(68 68 68 / 94%);
  font: inherit;
}

.adaptive-video-player__quality select:disabled {
  opacity: 0.55;
}

.video-modal .intro-modal__panel {
  width: min(1240px, calc(100vw - 36px));
  height: min(82dvh, calc(100vh - 28px));
}

.video-modal__body {
  display: grid;
  align-items: center;
  padding: clamp(16px, 2.6vw, 30px);
}

.video-modal .adaptive-video-player {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.video-modal .intro-modal__video {
  max-height: min(68dvh, 760px);
}

.iframe-modal .intro-modal__panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1320px, calc(100vw - 36px));
  height: min(90dvh, calc(100vh - 28px));
}

.iframe-modal__header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  justify-content: initial;
}

.iframe-modal__external {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(241 228 198 / 28%);
  border-radius: 50%;
  color: var(--vir-pergament);
  background: rgb(241 228 198 / 9%);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.iframe-modal__external:hover,
.iframe-modal__external:focus-visible {
  border-color: rgb(241 228 198 / 62%);
  background: rgb(46 93 51 / 86%);
  transform: translateY(-1px);
}

.iframe-modal__body {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgb(255 255 255 / 94%);
}

.iframe-modal__body iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.iframe-modal__action-bar {
  display: flex;
  justify-content: center;
  padding: 12px clamp(14px, 2vw, 24px);
  border-top: 1px solid rgb(241 228 198 / 16%);
  background: rgb(36 45 39 / 96%);
}

.iframe-modal__action-bar[hidden] {
  display: none;
}

.iframe-modal__action {
  display: grid;
  grid-template-columns: 30px auto 22px;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  margin: 0 auto;
  padding: 8px 14px;
  border: 1px solid rgb(153 191 103 / 68%);
  border-radius: 6px;
  background: rgb(46 93 51 / 92%);
  box-shadow: 0 9px 20px rgb(0 0 0 / 20%);
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.iframe-modal__action > span:not(.iframe-modal__action-arrow) {
  min-width: 0;
}

.iframe-modal__action img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.iframe-modal__action-arrow {
  font-size: 20px;
  line-height: 1;
  text-align: right;
}

.iframe-modal__action:hover,
.iframe-modal__action:focus-visible {
  border-color: rgb(241 228 198 / 78%);
  background: rgb(58 117 62 / 96%);
  transform: translateY(-1px);
}

.map-status-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1000;
  max-width: min(360px, calc(100% - 24px));
  padding: 7px 10px;
  border-radius: 5px;
  background: rgb(68 68 68 / 86%);
  color: var(--vir-pergament);
  font-size: 13px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
  pointer-events: none;
}

.map-status-overlay:empty {
  display: none;
}

.map-location-control {
  margin-top: 8px !important;
}

.tour-map .leaflet-control-zoom,
.tour-map .map-location-control,
.tour-map .map-focus-control {
  overflow: hidden;
  border: 1px solid rgb(68 68 68 / 24%) !important;
  border-radius: 6px;
  box-shadow: 0 5px 16px rgb(68 68 68 / 20%);
}

.tour-map .leaflet-control-zoom a,
.map-location-control button,
.map-focus-control button {
  display: grid;
  width: 34px !important;
  height: 34px !important;
  padding: 0;
  place-items: center;
  border: 0;
  background: rgb(255 255 255 / 96%);
  color: var(--vir-graphit);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 34px !important;
  transition: background 140ms ease, color 140ms ease;
}

.map-focus-control {
  margin-bottom: 10px !important;
}

.map-focus-control button {
  border-radius: 5px;
}

.map-overlay-control {
  display: grid;
  min-width: 164px;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgb(68 68 68 / 24%);
  border-radius: 6px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 5px 16px rgb(68 68 68 / 20%);
  color: var(--vir-graphit);
  font-family: var(--font-heading);
  backdrop-filter: blur(10px);
}

.map-overlay-control__title {
  color: var(--vir-dunkelgruen);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-overlay-control__item {
  display: grid;
  grid-template-columns: 15px 18px minmax(0, 1fr);
  align-items: center;
  min-height: 24px;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.map-overlay-control__item input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--vir-dunkelgruen);
  cursor: pointer;
}

.map-overlay-control__swatch {
  display: block;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--map-overlay-color);
  box-shadow: 0 1px 3px rgb(68 68 68 / 22%);
}

.map-overlay-control__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-modal.is-mini .map-overlay-control {
  display: none;
}

.map-focus-control__icon {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--vir-graphit);
  font-family: system-ui, sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 20px;
  transition: color 140ms ease, transform 140ms ease;
}

.tour-map .leaflet-control-zoom a:first-child {
  border-radius: 5px 5px 0 0;
}

.tour-map .leaflet-control-zoom a:last-child {
  border-radius: 0 0 5px 5px;
}

.tour-map .leaflet-control-zoom a + a {
  border-top: 1px solid rgb(68 68 68 / 14%);
}

.map-location-control__icon {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
  opacity: 0.9;
  transition: filter 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.tour-map .leaflet-control-zoom a:hover,
.tour-map .leaflet-control-zoom a:focus-visible,
.map-location-control button:hover,
.map-location-control button:focus-visible,
.map-focus-control button:hover,
.map-focus-control button:focus-visible {
  background: rgb(228 241 226 / 98%);
  color: var(--vir-dunkelgruen);
}

.map-focus-control button:hover .map-focus-control__icon,
.map-focus-control button:focus-visible .map-focus-control__icon {
  color: var(--vir-dunkelgruen);
  transform: scale(1.06);
}

.map-location-control button:hover .map-location-control__icon,
.map-location-control button:focus-visible .map-location-control__icon {
  filter: invert(45%) sepia(22%) saturate(1724%) hue-rotate(78deg) brightness(91%) contrast(91%);
  opacity: 1;
  transform: scale(1.04);
}

.map-location-control button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.panorama-map-marker {
  display: grid;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  place-items: center;
  border: 2px solid rgb(68 68 68 / 78%);
  border-radius: 50%;
  background: rgb(44 148 53 / 92%);
  box-shadow: 0 8px 20px rgb(68 68 68 / 28%);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.panorama-map-marker > span {
  position: relative;
  z-index: 2;
}

.panorama-map-marker__direction {
  --camera-bearing: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(
    from -27deg at 50% 50%,
    rgb(24 113 54 / 82%) 0deg,
    rgb(44 148 53 / 72%) 27deg,
    rgb(24 113 54 / 82%) 54deg,
    transparent 54.25deg
  );
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 18%));
  mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 13px,
    #000 16px,
    #000 42%,
    rgb(0 0 0 / 72%) 61%,
    rgb(0 0 0 / 28%) 76%,
    transparent 94%
  );
  transform: translate(-50%, -50%) rotate(var(--camera-bearing));
  transform-origin: 50% 50%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 13px,
    #000 16px,
    #000 42%,
    rgb(0 0 0 / 72%) 61%,
    rgb(0 0 0 / 28%) 76%,
    transparent 94%
  );
}

.panorama-map-marker__direction::before {
  content: none;
}

.panorama-map-marker.is-active {
  border-color: var(--vir-pergament);
  background: var(--vir-pergament);
  color: var(--black);
}

.leaflet-tooltip {
  border: 1px solid rgb(217 217 217 / 16%);
  border-radius: 6px;
  background: rgb(68 68 68 / 90%);
  color: var(--vir-pergament);
  font-weight: 800;
  box-shadow: 0 10px 28px rgb(68 68 68 / 24%);
}

.info-card {
  position: absolute;
  isolation: isolate;
  right: 24px;
  bottom: 24px;
  z-index: 260;
  width: min(420px, calc(100vw - 48px));
  max-height: min(620px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgb(242 234 211 / 28%);
  border-radius: 8px;
  background: rgb(38 47 42 / 64%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 38%), inset 0 1px 0 rgb(255 255 255 / 18%);
  color: var(--vir-pergament);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.info-card::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 15%), transparent 36%, rgb(35 105 72 / 14%));
  content: "";
}

.info-card__image,
.info-card__panorama,
.info-card__body {
  position: relative;
  z-index: 1;
}

.info-card__content {
  position: relative;
  z-index: 1;
  max-height: inherit;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.info-card--media {
  width: min(760px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
}

.info-card--image-modal {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  display: flex;
  width: min(1120px, calc(100vw - 56px));
  max-height: min(860px, calc(100dvh - 56px));
  flex-direction: column;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.info-card--image-modal .info-card__content {
  display: flex;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  flex-direction: column;
}

.info-card--document {
  width: min(560px, calc(100vw - 48px));
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.info-card__close {
  position: absolute;
  z-index: 262;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
}

.info-card__image {
  height: var(--info-card-body-height, 190px);
  min-height: var(--info-card-body-height, 190px);
  background-color: rgb(21 31 27 / 34%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.info-card--image-cover .info-card__image {
  background-size: cover;
}

.info-card--image-natural .info-card__image {
  height: auto;
  min-height: 0;
  aspect-ratio: var(--info-image-aspect-ratio, 16 / 9);
  background-size: cover;
}

.info-card__link-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.info-card--image-modal .info-card__image {
  flex: 1 1 auto;
  height: min(70dvh, 660px);
  min-height: 360px;
  background-color: rgb(30 30 30 / 92%);
  background-repeat: no-repeat;
  background-size: contain;
}

.info-card__image[role="link"] {
  cursor: pointer;
}

.info-card__image[role="button"] {
  cursor: zoom-in;
}

.info-image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgb(16 18 17 / 92%);
}

.info-image-lightbox[hidden] {
  display: none;
}

.info-image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 56px);
  object-fit: contain;
  box-shadow: 0 24px 70px rgb(0 0 0 / 65%);
}

.info-image-lightbox__close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgb(245 242 234 / 94%);
  color: var(--vir-graphit);
  font-size: 28px;
  line-height: 1;
}

.info-image-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgb(23 32 30 / 86%);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.info-image-lightbox__nav--prev {
  left: 16px;
}

.info-image-lightbox__nav--next {
  right: 16px;
}

.info-image-lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(23 32 30 / 86%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

.info-card__gallery-button {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  background: rgb(68 68 68 / 72%);
  color: var(--vir-pergament);
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.info-card__gallery-button--prev {
  left: 10px;
}

.info-card__gallery-button--next {
  right: 10px;
}

.info-card__gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(68 68 68 / 76%);
  color: var(--vir-pergament);
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

.info-card__panorama {
  width: 100%;
  height: min(430px, 56vh);
  min-height: 300px;
  background: var(--vir-graphit);
}

.info-card__panorama .pnlm-container {
  background: var(--vir-graphit);
}

.nadir-logo-hotspot {
  width: 0;
  height: 0;
  pointer-events: none;
}

.nadir-logo-hotspot img {
  display: block;
  max-width: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 28px rgb(68 68 68 / 34%));
}

.nadir-logo-hotspot--preview img {
  outline: 2px dashed rgb(255 210 63 / 78%);
  outline-offset: 6px;
}

.info-card__body {
  padding: 18px;
}

.info-card--image-modal .info-card__body {
  flex: 0 0 auto;
  padding: 16px 20px 18px;
  border-top: 1px solid rgb(242 234 211 / 16%);
  background: rgb(38 47 42 / 64%);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.info-card__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card h2 {
  margin: 0 0 12px;
  color: var(--vir-pergament);
  font-size: 22px;
}

.info-card--image-modal h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.info-card__text {
  display: grid;
  gap: 10px;
  color: var(--vir-pergament);
  line-height: 1.55;
}

.info-card__text p {
  margin: 0;
}

.info-card__document-section {
  padding: 16px 0;
  border-top: 1px solid rgb(217 217 217 / 18%);
}

.info-card__document-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.info-card__document-section h3 {
  margin: 0 0 9px;
  color: var(--vir-pergament);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.info-card__document-section p {
  margin: 0 0 10px;
}

.info-card__document-figure {
  margin: 14px 0 0;
}

.info-card__document-figure button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e4dfd5;
  cursor: zoom-in;
}

.info-card__document-figure button::after {
  content: "⌕";
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgb(23 32 30 / 82%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}

.info-card__document-figure button:hover,
.info-card__document-figure button:focus-visible {
  background: #e4dfd5;
  color: inherit;
  filter: none;
}

.info-card__document-figure img {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.info-card__document-figure figcaption,
.info-card__document-source {
  margin-top: 7px;
  color: rgb(245 242 234 / 76%);
  font-size: 12px;
  line-height: 1.4;
}

.info-card__document-source {
  margin-bottom: 0;
}

.info-card__link {
  display: inline-flex;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--vir-pergament);
  font-weight: 800;
  text-decoration: none;
}

.info-card__link > span {
  min-width: 0;
  white-space: normal;
  text-align: center;
}

.info-card__link:hover,
.info-card__link:focus-visible {
  background: var(--accent-strong);
  color: var(--vir-pergament);
}

body[data-mode="presentation"] .app-shell,
.presentation-mode .app-shell {
  display: block;
}

body[data-mode="presentation"],
body.presentation-mode {
  overflow: hidden;
}

body[data-mode="presentation"] .viewer-region,
.presentation-mode .viewer-region {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

body[data-mode="presentation"] .editor-panel,
.presentation-mode .editor-panel {
  display: none;
}

.pnlm-container {
  background: var(--vir-graphit);
}

.pnlm-load-box {
  border-radius: 6px;
  background: rgb(68 68 68 / 82%);
}

.pnlm-panorama-info {
  display: none !important;
}

.pnlm-controls-container {
  display: none !important;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .viewer-region {
    height: 66dvh;
    min-height: 66dvh;
  }

  .presentation-mode .viewer-region {
    height: 100dvh;
    min-height: 100dvh;
  }

  .editor-panel {
    min-width: 0;
    height: 34dvh;
    min-height: 34dvh;
    max-height: 34dvh;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .editor-section[open] {
    display: block;
    flex: 0 0 auto;
    min-height: auto;
  }

  .editor-section__body {
    max-height: none;
  }

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

  .editor-modal__scene-row {
    grid-template-columns: 34px auto minmax(0, 1fr);
  }

  .editor-modal__panorama-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "order"
      "title"
      "coords"
      "meta"
      "actions";
  }

  .editor-modal__upload-row {
    grid-template-columns: 1fr;
  }

  .editor-modal__coordinate-fields {
    grid-template-columns: 1fr;
  }

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

  .editor-modal__thumb-dropzone,
  .editor-modal__tile-fields,
  .editor-modal__scene-row input[type="text"],
  .editor-modal__row-status {
    grid-column: 1 / -1;
  }

  .topbar {
    display: none;
  }

  .icon-button {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .icon-button::before {
    width: 18px;
    height: 18px;
  }

  .scene-title {
    max-width: 210px;
    min-width: 0;
    padding: 6px 9px;
    gap: 6px;
  }

  .scene-title span {
    font-size: 11px;
  }

  .scene-title strong {
    font-size: 13px;
  }

  .web-map-link {
    top: auto;
    right: 12px;
    bottom: calc(174px + env(safe-area-inset-bottom, 0px));
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 2px;
    font-size: 11px;
  }

  .web-map-link img {
    width: 32px;
    height: 32px;
  }

  .web-map-link span,
  .map-fab span {
    top: auto;
    bottom: calc(100% + 7px);
    right: 0;
  }

  .brand-logo {
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    width: 132px;
    min-height: 0;
    padding: 0;
  }

  .brand-logo img {
    max-height: 30px;
  }

  .project-brand {
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 10px;
    min-height: 38px;
    padding: 0;
    gap: 7px;
  }

  .project-brand img {
    width: 34px;
    height: 38px;
  }

  .project-brand strong {
    max-width: 128px;
    font-size: 14px;
  }

  .has-project-brand .brand-logo {
    top: auto;
    right: 56px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: auto;
    width: 86px;
  }

  .has-project-brand .brand-logo img {
    max-height: 20px;
  }

  .has-project-brand.mini-map-open .brand-logo {
    right: calc(min(290px, calc(100% - 66px)) + 66px);
  }

  .carousel-toggle {
    top: calc(48px + env(safe-area-inset-top, 0px));
    left: 12px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 2px;
    border-radius: 8px;
  }

  .carousel-toggle img {
    width: 32px;
    height: 32px;
  }

  .carousel-toggle span {
    top: 50%;
    left: calc(100% + 6px);
    max-width: 150px;
    font-size: 11px;
  }

  .spherical-carousel__card {
    width: 132px;
    height: 88px;
    min-height: 88px;
    padding: 8px 9px;
    border-radius: 10px / 16px;
  }

  .spherical-carousel__card strong {
    font-size: 11px;
  }

  .scene-quick-nav {
    position: fixed;
    left: 12px;
    right: 56px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .presentation-mode .scene-quick-nav {
    position: fixed;
  }

  .layer-controls {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    bottom: auto;
    width: min(178px, calc(100vw - 72px));
  }

  .layer-controls.is-collapsed {
    width: 82px;
  }

  .layer-controls.has-media-library:not(.is-collapsed) {
    width: min(270px, calc(100vw - 24px));
  }

  .layer-controls.has-media-library:not(.is-collapsed):has(.media-library__category--subgroup[open]) {
    width: min(320px, calc(100vw - 24px));
  }

  .layer-controls.has-media-library:not(.is-collapsed):has(.media-library__category--legacy[open]) {
    width: min(320px, calc(100vw - 24px));
  }

  .presentation-mode .layer-controls {
    position: fixed;
  }

  .scene-quick-nav__toggle {
    width: min(330px, 100%);
    max-width: 100%;
    min-height: 40px;
    padding: 7px 10px;
  }

  .scene-quick-nav__toggle span {
    font-size: 11px;
  }

  .scene-quick-nav__toggle strong {
    font-size: 13px;
  }

  .scene-quick-nav__panel {
    width: 100%;
    padding: 8px 38px;
  }

  .scene-quick-nav__item {
    flex-basis: 118px;
    width: 118px;
    min-height: 82px;
  }

  .scene-quick-nav__thumb {
    height: 82px;
  }

  .scene-quick-nav__caption {
    padding: 13px 6px 5px;
  }

  .scene-quick-nav__caption strong {
    font-size: 10px;
  }

  .scene-quick-nav__scroll-arrow {
    width: 25px;
    height: 45px;
  }

  .scene-quick-nav__scroll-arrow--prev {
    left: 5px;
  }

  .scene-quick-nav__scroll-arrow--next {
    right: 5px;
  }

  .viewer-controls {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    gap: 7px;
  }

  .viewer-controls button {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px;
    font-size: 19px;
  }

  .viewer-controls .intro-control img {
    width: 27px;
    height: 27px;
  }

  .map-fab {
    right: 12px;
    top: auto;
    bottom: calc(130px + env(safe-area-inset-bottom, 0px));
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 2px;
    font-size: 20px;
  }

  .map-fab img {
    width: 32px;
    height: 32px;
  }

  .map-mode-menu {
    top: auto;
    right: 56px;
    bottom: calc(130px + env(safe-area-inset-bottom, 0px));
    width: min(205px, calc(100vw - 74px));
  }

  .presentation-mode .map-fab {
    position: fixed;
  }

  .map-modal {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .intro-modal {
    padding: max(8px, env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .intro-modal__panel {
    width: calc(100vw - 20px);
    height: calc(100dvh - 18px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 18px - env(safe-area-inset-bottom, 0px));
  }

  .intro-modal__header {
    padding: 12px 14px;
  }

  .intro-modal__header h2 {
    font-size: 17px;
  }

  .intro-modal__body {
    padding: 18px 15px 22px;
  }

  .intro-modal__text {
    font-size: 16px;
  }

  .intro-modal__text h3 {
    font-size: 20px;
  }

  .intro-modal__text p:first-child {
    font-size: 18px;
  }

  .intro-modal__video {
    max-height: 38dvh;
  }

  .map-modal__panel {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tour-map {
    min-height: 0;
  }

  .map-modal.is-mini .map-modal__panel {
    right: 54px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(290px, calc(100% - 66px));
    height: min(230px, calc(100% - 24px));
  }

  .map-modal.is-mini .map-modal__header h2 {
    max-width: 160px;
  }

  .map-status-overlay {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .info-card,
  .info-card--media {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
  }

  .scene-caption {
    right: 12px;
    bottom: calc(138px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    max-width: none;
    padding: 13px;
  }

  .info-card--image-modal {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, -50%);
  }

  .info-card--image-modal .info-card__image {
    height: min(66dvh, 560px);
    min-height: 260px;
  }

  .info-card__panorama {
    height: min(52vh, 360px);
    min-height: 240px;
  }
}

/* Desktop editor rail: section details open sideways over the viewer. */
@media (min-width: 921px) {
  .info-card--image-natural {
    width: min(630px, calc(100vw - 48px));
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr) 184px;
  }

  .editor-panel {
    position: relative;
    z-index: 2000;
    isolation: isolate;
    min-width: 184px;
    width: 184px;
    padding: 12px 10px;
    gap: 10px;
    overflow: visible;
  }

  .panel-header h1 {
    margin-bottom: 0;
    font-size: 16px;
  }

  .panel-header p {
    display: none;
  }

  .panel-header__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 8px;
  }

  .panel-link {
    justify-content: center;
    min-height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  .editor-sections {
    position: relative;
    align-items: stretch;
    gap: 6px;
    overflow: visible;
  }

  .editor-section-group {
    gap: 6px;
  }

  .editor-section-group--content {
    margin-top: 6px;
    padding-top: 10px;
  }

  .editor-section-group__label {
    padding-left: 4px;
    font-size: 9px;
  }

  .editor-sections:has(.editor-section[open]) .editor-section:not([open]),
  .editor-sections.has-open-section .editor-section:not([open]) {
    display: block;
  }

  .editor-section {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: visible;
    border-radius: 6px;
    background: rgb(222 214 193 / 46%);
  }

  .editor-section[open] {
    border-color: rgb(44 148 53 / 72%);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .editor-section summary {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 7px;
    min-height: 46px;
    padding: 8px;
  }

  .editor-section summary span {
    align-self: center;
    font-size: 12px;
    line-height: 1.16;
  }

  .editor-section summary small {
    display: none;
  }

  .editor-section summary::after {
    width: 24px;
    height: 24px;
    border-width: 1px;
    transform: none;
  }

  .editor-section[open] summary::after {
    transform: none;
  }

  .editor-section__body {
    position: fixed;
    z-index: 6000;
    top: 12px;
    right: 194px;
    display: grid;
    width: min(500px, calc(100vw - 210px));
    min-width: 0;
    height: calc(100dvh - 24px);
    min-height: 0;
    max-height: none;
    gap: 10px;
    padding: 14px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 1px solid rgb(44 148 53 / 45%);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: -12px 16px 34px rgb(35 45 37 / 28%);
    pointer-events: auto;
  }

  .editor-section__close {
    position: fixed;
    z-index: 6001;
    top: 26px;
    right: 208px;
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-color: var(--accent-strong);
    background: rgb(241 228 198 / 94%);
  }

  .editor-section:not([open]) > .editor-section__close {
    display: none;
  }

  .editor-section__body > .field:first-child {
    max-width: calc(100% - 52px);
  }

  .editor-section__body > :first-child:not(.field) {
    margin-top: 48px;
  }

  .editor-section:not([open]) .editor-section__body {
    display: none;
  }

  .editor-section__body::before {
    display: none;
  }

  .editor-section__body--entity {
    min-height: 260px;
  }

  .editor-section__body > *,
  .editor-entity-index,
  .editor-entity-detail,
  .editor-section__body .field,
  .editor-section__body .toolbar,
  .editor-section__body .style-grid,
  .editor-section__body .backend-card {
    min-width: 0;
    max-width: 100%;
  }

  .editor-section__body input,
  .editor-section__body select,
  .editor-section__body textarea,
  .editor-section__body button {
    max-width: 100%;
  }

  .editor-section__body .style-grid {
    gap: 9px;
  }

  .editor-section__body .backend-card {
    padding: 10px;
  }

  .editor-entity-index,
  .editor-entity-detail {
    display: grid;
    align-content: start;
    gap: 10px;
  }

  .editor-entity-index[hidden],
  .editor-entity-detail[hidden] {
    display: none !important;
  }

  .editor-entity-detail__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -14px -14px 2px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: rgb(44 148 53 / 10%);
  }

  .editor-entity-detail__header small,
  .editor-entity-detail__header strong {
    display: block;
  }

  .editor-entity-detail__header small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .editor-entity-detail__header strong {
    overflow: hidden;
    max-width: 330px;
    color: var(--vir-graphit);
    font-family: var(--font-heading);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .editor-entity-detail__back {
    display: grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    place-items: center;
    border: 1px solid rgb(46 93 51 / 45%);
    border-radius: 5px;
    background: rgb(255 255 255 / 55%);
    color: var(--accent-strong);
    font-size: 22px;
    line-height: 1;
  }

  .line-list {
    gap: 6px;
  }

  .panel-footer {
    grid-template-areas:
      "save"
      "publish"
      "save-status"
      "publish-status"
      "back";
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 0 -10px -12px;
    padding: 9px 10px 10px;
  }

  .panel-footer button {
    min-height: 31px;
    padding: 0 6px;
    font-size: 12px;
  }

  #saveStatus,
  #publishOnlineStatus {
    font-size: 10px;
  }

  @supports selector(details::details-content) {
    .editor-section::details-content {
      display: block;
      block-size: auto;
      opacity: 1;
      overflow: visible;
      transition: none;
    }

    .editor-section:not([open])::details-content {
      display: none;
    }

    .editor-section[open]::details-content {
      display: block;
      block-size: auto;
      overflow: visible;
    }
  }

}
