:root {
  color-scheme: light;
  --ink: #1f2527;
  --muted: #667176;
  --line: #d8dedb;
  --surface: #f6f7f4;
  --panel: #ffffff;
  --field: #eef2ef;
  --accent: #b53d2d;
  --accent-strong: #7d2a21;
  --green: #2f6f5e;
  --blue: #315f84;
  --shadow: 0 18px 45px rgba(31, 37, 39, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--surface);
}

body {
  min-width: 320px;
}

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

button {
  cursor: pointer;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
}

.topnav a:hover {
  background: var(--field);
}

.app-shell {
  height: calc(100vh - 72px);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
}

.sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.search-panel {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading h1,
.admin-panel h1,
.admin-toolbar h1 {
  margin: 4px 0 20px;
  font-size: 28px;
  line-height: 1.08;
  max-width: 640px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  background: #fff;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.actions,
.panel-title,
.admin-toolbar,
.toolbar-actions,
.editor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.actions {
  margin-top: 16px;
}

.icon-button,
.primary-button,
.icon-only {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.icon-button,
.primary-button {
  padding: 0 13px;
}

.icon-only {
  width: 40px;
  padding: 0;
}

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

.icon-button:hover,
.icon-only:hover {
  border-color: var(--green);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.danger {
  color: var(--accent);
}

.icon-button svg,
.primary-button svg,
.icon-only svg {
  width: 18px;
  height: 18px;
}

#resultCount {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.results-panel {
  padding: 18px 18px 24px;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.panel-title {
  padding: 0 6px 12px;
}

.panel-title h2 {
  margin: 0;
  font-size: 18px;
}

.location-list {
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 0 6px 12px;
}

.location-card {
  text-align: left;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 8px;
  box-shadow: none;
}

.location-thumb {
  height: 112px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(47, 111, 94, 0.36), rgba(181, 61, 45, 0.18)),
    linear-gradient(160deg, #dce5df 0 42%, #f7d796 42% 55%, #315f84 55% 100%);
  background-position: center;
  background-size: cover;
}

.location-card:hover,
.location-card.active {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(47, 111, 94, 0.14);
}

.location-card h3 {
  margin: 0;
  font-size: 16px;
}

.location-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.news-feed {
  padding: 28px 24px 34px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.news-feed .section-heading {
  max-width: 1120px;
  margin: 0 auto 16px;
}

.news-feed .section-heading h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.news-feed > .empty-state,
.news-grid {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.news-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.news-card .meta-row {
  align-items: center;
  justify-content: space-between;
}

.news-card time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.news-card h3,
.news-card p {
  margin: 0;
}

.news-card h3 {
  font-size: 16px;
  line-height: 1.3;
}

.news-card a {
  color: var(--ink);
  text-decoration: none;
}

.news-card a:hover {
  color: var(--green);
}

.news-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.meta-row,
.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--field);
  font-size: 12px;
  font-weight: 800;
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #dce5df;
}

.map,
.map-fallback {
  position: absolute;
  inset: 0;
}

.map-fallback {
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31, 37, 39, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 37, 39, 0.08) 1px, transparent 1px),
    #dfe8e0;
  background-size: 48px 48px;
}

.leaflet-container {
  font: inherit;
}

.marker {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}

.marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  margin: 14px;
}

.leaflet-popup-tip {
  box-shadow: var(--shadow);
}

.place-label {
  border: 1px solid rgba(31, 37, 39, 0.16);
  border-radius: 6px;
  padding: 5px 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(31, 37, 39, 0.16);
  backdrop-filter: blur(8px);
}

.place-label::before {
  display: none;
}

.place-label strong,
.place-label span {
  display: block;
  white-space: nowrap;
}

.place-label strong {
  font-size: 12px;
}

.place-label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.kml-label {
  border: 1px solid rgba(49, 95, 132, 0.28);
  border-radius: 6px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(49, 95, 132, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.kml-label::before {
  display: none;
}

.popup h3 {
  margin: 0 0 6px;
}

.popup p {
  margin: 0 0 10px;
  color: var(--muted);
}

.popup button {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 10px;
  font-weight: 800;
}

.viewer-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.close-viewer {
  position: absolute;
  top: 12px;
  right: 12px;
}

.viewer-panel h2 {
  margin: 4px 44px 8px 0;
  font-size: 22px;
}

.viewer-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.viewer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.viewer-links a,
.viewer-links span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.viewer-links a {
  color: #fff;
  background: var(--green);
  text-decoration: none;
}

.viewer-links span {
  color: var(--blue);
  background: #eaf1f5;
}

.viewer-visual {
  height: 150px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 40%, rgba(181, 61, 45, 0.28), transparent 24%),
    radial-gradient(circle at 72% 52%, rgba(47, 111, 94, 0.34), transparent 20%),
    linear-gradient(135deg, #263238, #5d7066);
}

.viewer-visual span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f7d796;
  box-shadow: 40px 18px 0 #fff, 84px 46px 0 #9fc3b5, 170px 28px 0 #fff, 260px 80px 0 #f7d796;
}

.viewer-visual span:nth-child(1) { left: 34px; top: 28px; }
.viewer-visual span:nth-child(2) { left: 86px; top: 92px; }
.viewer-visual span:nth-child(3) { left: 158px; top: 54px; }
.viewer-visual span:nth-child(4) { left: 214px; top: 112px; }

.site-disclaimer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 24px;
}

.site-disclaimer p {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-body {
  background: var(--surface);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
}

.admin-panel,
.admin-workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.admin-panel {
  max-width: 460px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.form-message {
  min-height: 22px;
  color: var(--muted);
  font-weight: 700;
}

.toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.news-config-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(47, 111, 94, 0.12), transparent 42%),
    #fff;
}

.news-config-panel h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 4px 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  font-size: 13px;
  font-weight: 800;
}

.keyword-chip .icon-only {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: #fff;
}

.admin-searchbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0 0;
}

.admin-searchbar output {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.editor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.editor-summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
}

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

.editor-summary:hover {
  background: var(--surface);
}

.summary-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--green);
}

.summary-chevron svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.editor-card[open] .summary-chevron svg {
  transform: rotate(90deg);
}

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

.summary-main strong,
.summary-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-main small {
  color: var(--muted);
  font-weight: 700;
}

.summary-status {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-card-body {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.editor-card-header {
  align-items: flex-start;
  margin-bottom: 14px;
}

.editor-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.editor-card h2 {
  margin: 0;
  min-height: 34px;
  flex: 1;
  outline: none;
}

.editor-card h2:focus {
  background: var(--field);
}

.choice-field {
  align-content: start;
}

.choice-field input[hidden] {
  display: none !important;
}

.choice-field input:not([hidden]) {
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: #fff;
}

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

.wide {
  grid-column: span 2;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.tag-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.dossier-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(247, 215, 150, 0.22), transparent 44%),
    var(--surface);
}

.pointcloud-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(49, 95, 132, 0.14), transparent 46%),
    var(--surface);
}

.pointcloud-panel > div:first-child {
  grid-column: 1 / -1;
}

.pointcloud-dropzone {
  min-height: 124px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 2px dashed rgba(49, 95, 132, 0.38);
  border-radius: 8px;
  padding: 14px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  outline: none;
}

.pointcloud-dropzone svg {
  width: 26px;
  height: 26px;
}

.pointcloud-dropzone strong {
  color: var(--ink);
}

.pointcloud-dropzone span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.pointcloud-dropzone:hover,
.pointcloud-dropzone:focus,
.pointcloud-dropzone.drag-over {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 10px 24px rgba(47, 111, 94, 0.13);
}

.pointcloud-panel > .field {
  align-self: stretch;
}

.pointcloud-panel > .field input[type="file"] {
  min-width: 0;
  overflow: hidden;
}

.pointcloud-panel > .icon-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.pointcloud-current {
  display: grid;
  gap: 7px;
}

.pointcloud-current-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.pointcloud-current-row a,
.pointcloud-current-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pointcloud-current a,
.pointcloud-current span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.pointcloud-panel progress {
  width: 100%;
  grid-column: 1 / -1;
}

.progress-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-field[hidden] {
  display: none;
}

.progress-field progress {
  height: 12px;
  accent-color: var(--green);
}

.processing-status {
  color: var(--muted);
}

.pointcloud-current .processing-status {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.processing-status.done {
  color: var(--green);
}

.processing-status.needs_converter {
  color: var(--muted);
}

.processing-status.failed {
  color: var(--accent);
}

.pointcloud-panel .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

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

.dossier-item {
  display: grid;
  gap: 3px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.dossier-item span,
.dossier-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.location-picker {
  display: grid;
  gap: 10px;
}

.location-picker .panel-title {
  padding: 0;
}

.location-picker h3 {
  margin: 0;
  font-size: 15px;
}

.admin-map {
  height: 260px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #dce5df;
}

.object-page {
  min-height: calc(100vh - 72px);
  background: #fff;
}

.object-loading {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.object-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  border-bottom: 1px solid var(--line);
}

.object-photo {
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(47, 111, 94, 0.3), rgba(181, 61, 45, 0.18)),
    linear-gradient(160deg, #dce5df 0 43%, #f7d796 43% 56%, #315f84 56% 100%);
  background-position: center;
  background-size: cover;
}

.object-photo-empty::after {
  content: "Foto";
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(31, 37, 39, 0.64);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.object-intro {
  align-self: end;
  padding: 48px;
}

.object-intro h1 {
  margin: 8px 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
}

.object-intro p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.object-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.object-description h2,
.object-links h2 {
  margin: 6px 0 16px;
}

.object-description p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
}

.object-dossiers {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.object-dossier {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  background:
    linear-gradient(135deg, rgba(247, 215, 150, 0.2), transparent 48%),
    #fff;
}

.object-dossier strong,
.object-dossier span {
  display: block;
}

.object-dossier > div > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dossier-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dossier-downloads a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.dossier-downloads a svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.object-side {
  display: grid;
  gap: 18px;
}

.object-map {
  height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #dce5df;
}

.object-links {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.object-links a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.object-links a svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex: 0 0 auto;
}

.potree-body {
  overflow: hidden;
  background: #111819;
}

.potree-topbar {
  position: relative;
  z-index: 5;
}

.potree-page {
  position: relative;
  height: calc(100vh - 72px);
  min-height: 520px;
  background: #111819;
}

#potree_render_area {
  position: absolute;
  inset: 0;
}

#potree_sidebar_container {
  position: absolute;
  z-index: 3;
}

.potree-fallback {
  position: absolute;
  inset: 24px;
  z-index: 4;
  width: min(720px, calc(100% - 48px));
  height: max-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 24px;
  color: #fff;
  background: rgba(17, 24, 25, 0.88);
  box-shadow: var(--shadow);
}

.potree-fallback h1 {
  margin: 8px 0 12px;
  font-size: 30px;
}

.potree-fallback p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.potree-fallback code {
  color: #fff;
}

@media (min-width: 641px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-stage {
    height: 68vh;
    min-height: 520px;
  }

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

  .object-hero,
  .object-content {
    grid-template-columns: 1fr;
  }

  .object-photo,
  .object-hero {
    min-height: 380px;
  }

  .object-intro {
    padding: 32px 24px;
  }

  .object-content {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: auto;
    min-height: 68px;
    padding: 12px 14px;
  }

  .brand strong {
    white-space: normal;
  }

  .brand small {
    display: none;
  }

  .topnav a {
    padding: 9px 8px;
  }

  .search-panel {
    padding: 18px 14px;
  }

  .section-heading h1,
  .admin-panel h1,
  .admin-toolbar h1 {
    font-size: 23px;
  }

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

  .wide {
    grid-column: auto;
  }

  .tag-picker {
    grid-template-columns: 1fr;
  }

  .dossier-panel {
    grid-template-columns: 1fr;
  }

  .pointcloud-panel {
    grid-template-columns: 1fr;
  }

  .results-panel {
    padding-inline: 8px;
  }

  .map-stage {
    height: 74vh;
    min-height: 540px;
  }

  .viewer-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 58%;
  }

  .site-disclaimer {
    padding: 12px 14px;
  }

  .admin-shell {
    width: min(100% - 20px, 1180px);
    margin: 20px auto;
  }

  .admin-panel,
  .admin-workspace {
    padding: 16px;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .editor-card-actions {
    justify-content: flex-start;
  }

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

  .admin-searchbar output {
    min-height: 0;
    justify-content: flex-start;
  }

  .object-photo,
  .object-hero {
    min-height: 300px;
  }

  .object-intro {
    padding: 24px 16px 28px;
  }

  .object-intro h1 {
    font-size: 36px;
  }

  .object-intro p,
  .object-description p {
    font-size: 16px;
  }

  .object-content {
    width: min(100% - 24px, 1180px);
    padding: 28px 0 42px;
  }
}
