@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #121513;
  --panel: #191d1a;
  --raised: #212622;
  --line: #303630;
  --text: #e5e8df;
  --muted: #9ca497;
  --accent: #d2ddad;
  --faible: #a8cda6;
  --moyen: #d5c487;
  --eleve: #e1a46d;
  --critique: #da7f70;
  --extreme: #c9a1d3;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.5 var(--sans);
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
}
button:hover {
  color: #fff;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: var(--accent);
  color: var(--bg);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.app-header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 244px;
}
.brand-mark {
  font-size: 25px;
  line-height: 36px;
  letter-spacing: -5px;
  transform: skew(-8deg);
  font-weight: 900;
  border-left: 3px solid var(--accent);
  padding-left: 8px;
  color: #edf0e7;
}
.brand-mark > span {
  color: var(--accent);
}
.brand-name {
  font-size: 16px;
  letter-spacing: 0.03em;
  font-weight: 800;
  line-height: 1.15;
}
.brand-name b {
  font-weight: 400;
  color: var(--accent);
  margin-left: 4px;
}
.brand-name small {
  display: block;
  font: 8px/1 var(--mono);
  letter-spacing: 0.17em;
  color: var(--muted);
  margin-top: 7px;
}
.main-nav {
  align-self: stretch;
  display: flex;
  gap: 24px;
}
.main-nav button {
  position: relative;
  font-weight: 550;
  padding: 0 2px;
  color: var(--muted);
}
.main-nav button.active {
  color: var(--text);
}
.main-nav button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.main-nav button span {
  margin-left: 5px;
  font: 10px var(--mono);
  color: var(--muted);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.data-stamp {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font: 10px var(--mono);
}
.data-stamp i,
.map-mode i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.source-button {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 0;
}
.source-button > span {
  margin-left: 8px;
  color: var(--accent);
}
.mobile-search,
.mobile-close {
  display: none !important;
}
.app-layout {
  height: calc(100dvh - 70px);
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
  z-index: 20;
}
.sidebar-head {
  padding: 25px 22px 20px;
}
.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-title h1 {
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  font-weight: 850;
}
.sidebar-title h1 > span {
  font-size: 20px;
  font-weight: 400;
  color: #737d70;
  margin-left: 14px;
  letter-spacing: 0;
}
.sidebar-head > p {
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 12px 0 23px;
  display: flex;
  justify-content: space-between;
}
.sidebar-head > p span {
  color: #737d70;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid #3b4339;
  border-radius: 5px;
  padding: 0 11px;
  height: 43px;
}
.search-field:focus-within {
  border-color: var(--accent);
}
#searchIcon {
  color: var(--accent);
  line-height: 1;
}
.search-field input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: none !important;
  color: var(--text);
  font-size: 12px;
}
.search-field input::placeholder {
  color: #929b8b;
}
.search-field kbd {
  color: #98a18e;
  font: 11px var(--mono);
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 2px;
}
.sidebar-filters {
  padding: 0 22px 16px;
  border-bottom: 1px solid var(--line);
}
.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  font: 9px var(--mono);
  letter-spacing: 0.09em;
  color: var(--muted);
}
.filter-heading button {
  color: #aeb7a0;
  font-size: 10px;
  letter-spacing: 0;
  padding: 0;
}
.layer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.layer-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #343b32;
  border-radius: 3px;
  padding: 7px 8px;
  color: #a8b09e;
  font-size: 10px;
  text-align: left;
  min-height: 33px;
}
.layer-button .icon {
  width: 14px;
  height: 14px;
}
.layer-button > span {
  margin-left: auto;
  font: 9px var(--mono);
  opacity: 0.75;
}
.layer-button.active {
  color: var(--accent);
  background: #2d3327;
  border-color: #566345;
}
.layer-button:hover {
  border-color: #778366;
}
.threat-filter {
  margin-top: 15px;
}
.threat-filter summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 5px 0;
}
.threat-filter summary::-webkit-details-marker {
  display: none;
}
.threat-filter summary > span {
  color: var(--muted);
  font-size: 10px;
}
.threat-filter summary > span:after {
  content: "⌄";
  margin-left: 12px;
}
.threat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 9px;
}
.threat-options button {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}
.threat-options button.active {
  background: var(--raised);
  border-color: #879474;
}
.filter-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.confidence-filter {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.confidence-filter input {
  accent-color: #c4d197;
  margin: 2px 0 0;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 22px 10px;
  flex: none;
}
.result-heading h2 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.result-heading > span {
  font: 10px var(--mono);
  color: var(--muted);
}
.result-list {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #45503f transparent;
  padding: 0 10px 12px;
}
.result-row {
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #293027;
  min-height: 65px;
}
.result-row.selected {
  background: #2a3125;
  border-radius: 3px;
  border-color: transparent;
}
.result-select {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex: 1;
  min-width: 0;
  padding: 11px 10px;
}
.result-number {
  width: 27px;
  height: 30px;
  display: grid;
  place-items: center;
  font: 11px var(--mono);
  color: #adb79f;
  flex: none;
}
.result-number .icon {
  width: 16px;
  height: 16px;
}
.result-copy {
  min-width: 0;
  flex: 1;
}
.result-name {
  font-size: 11px;
  font-weight: 600;
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.result-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.result-meta .dot {
  width: 5px;
  height: 5px;
}
.result-save {
  width: 29px;
  height: 40px;
  color: #65705c;
  flex: none;
  padding: 0;
  margin-right: 2px;
}
.result-save .icon {
  width: 13px;
  height: 13px;
}
.result-save.saved {
  color: var(--accent);
}
.result-save.saved .icon {
  fill: #aebb7f33;
}
.result-row:hover {
  background: #22291f;
}
.sidebar-bottom {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  flex: none;
}
.add-marker {
  border: 1px solid #586546;
  background: #303925;
  color: var(--accent);
  border-radius: 3px;
  width: 100%;
  padding: 9px;
  font-size: 11px;
  font-weight: 550;
}
.add-marker:hover {
  background: #3b472b;
}
.sidebar-bottom > div {
  display: flex;
  gap: 16px;
  font: 9px var(--mono);
  margin-top: 10px;
  align-items: center;
  color: var(--muted);
}
.sidebar-bottom > div > span {
  margin-left: auto;
  color: #7d8974;
}
.sidebar-bottom > div > button {
  padding: 0;
  font: inherit;
}
.import-label {
  cursor: pointer;
}
.import-label:hover {
  color: var(--text);
}
.map-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0b0e0d;
}
.map-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  outline-offset: -3px !important;
}
.map-stage.dragging {
  cursor: grabbing;
}
.map-stage.placing {
  cursor: crosshair;
}
.map-world {
  position: absolute;
  transform-origin: top left;
  user-select: none;
  isolation: isolate;
}
.map-world > img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 1;
}
.map-tiles,
.tile-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tile {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
}
.map-mode #mapQuality {
  padding: 4px 7px;
  border: 1px solid #687958;
  border-radius: 3px;
  background: #151c15e8;
  letter-spacing: 0;
}
.tile-status {
  position: absolute;
  left: 24px;
  bottom: 57px;
  font: 9px var(--mono);
  color: #cad3bb;
  padding: 5px 8px;
  border-radius: 3px;
  background: #111810db;
  pointer-events: none;
}
.tile-status.tile-error {
  color: #ffc0a2;
}
#nativeView {
  font: 11px var(--mono);
}
.map-tools button:disabled {
  opacity: 0.4;
  cursor: default;
}
.poi-pin .pin-symbol .icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  .tile-status {
    left: 12px;
    bottom: 90px;
    max-width: 70%;
  }
  .map-mode #mapQuality {
    font-size: 8px;
  }
}
.map-topline {
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.map-mode {
  font: 9px var(--mono);
  letter-spacing: 0.15em;
  color: #bec7b4;
  display: flex;
  gap: 8px;
  align-items: center;
}
.coordinate-note {
  font: 14px var(--mono);
  color: var(--accent);
}
.coordinate-note > span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-left: 24px;
}
.map-tools {
  position: absolute;
  right: 24px;
  top: 63px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #404b38;
  background: #171d17f0;
  border-radius: 5px;
  box-shadow: 0 4px 20px #0003;
  padding: 4px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  font-size: 23px;
  color: #c5cfb7;
  line-height: 1;
  flex: none;
}
.icon-button:hover {
  background: #333e2b;
  color: var(--accent);
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.map-tools > output {
  font: 9px var(--mono);
  color: var(--muted);
  padding: 2px 0;
}
.tool-divider {
  width: 22px;
  height: 1px;
  background: var(--line);
  margin: 5px 0;
}
.map-bottomline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 24px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(transparent, #0b0e0dec);
  pointer-events: none;
  gap: 14px;
}
.threat-legend {
  display: flex;
  gap: 14px;
}
.threat-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #b8c0ad;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #75816c;
  border-radius: 50%;
  flex: none;
}
.faible {
  background: var(--faible);
}
.moyen {
  background: var(--moyen);
}
.eleve {
  background: var(--eleve);
}
.critique {
  background: var(--critique);
}
.extreme {
  background: var(--extreme);
}
.map-credit {
  font-size: 9px;
  color: #929b89;
  pointer-events: auto;
}
.map-credit a {
  text-decoration: none;
  color: #b7c1a7;
}
.mobile-results {
  display: none;
}
.map-notice {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: #20291b;
  border: 1px solid #5f6c4f;
  border-radius: 4px;
  color: var(--accent);
  font-size: 12px;
  box-shadow: 0 3px 20px #0008;
  max-width: 90%;
  z-index: 8;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--text);
  padding: 0;
  z-index: 2;
  filter: drop-shadow(0 2px 3px #0009);
}
.pin-symbol {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1b221a;
  box-shadow: 0 0 0 2px #121810aa;
  border: 1px solid var(--pin-color, #a5b88a);
  font: 10px var(--mono);
  color: var(--pin-color, #cad9b1);
}
.pin-symbol .icon {
  width: 13px;
  height: 13px;
}
.pin-label {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
  text-align: left;
  width: max-content;
  max-width: 130px;
  text-shadow:
    0 1px 4px #000,
    1px 0 3px #000,
    -1px 0 3px #000;
}
.pin-label small {
  display: block;
  font: 8px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pin-color);
  margin-top: 4px;
}
.map-pin.detail-pin .pin-symbol {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border-color: #778768;
  background: #1d291d;
}
.map-pin.detail-pin .pin-label {
  display: none;
}
.map-pin:hover,
.map-pin.selected {
  z-index: 10;
}
.map-pin:hover .pin-symbol,
.map-pin.selected .pin-symbol {
  border-color: var(--accent);
  background: #3a492c;
  box-shadow: 0 0 0 4px #b6cd8130;
}
.map-pin.detail-pin:hover .pin-label,
.map-pin.selected .pin-label {
  display: block;
  background: #182014ef;
  padding: 7px 10px;
  border: 1px solid #455237;
  border-radius: 3px;
  left: 32px;
}
.map-pin.reported .pin-symbol {
  border-style: dashed;
}
.map-pin.zone-anchor .pin-symbol {
  width: 42px;
  height: 42px;
  border: 1px dashed var(--accent);
  background: #d2ddad12;
}
.map-pin.zone-anchor .pin-label {
  max-width: 190px;
}
.selection-card {
  position: absolute;
  top: 65px;
  right: 80px;
  width: 292px;
  background: #1a2019f7;
  border: 1px solid #49533e;
  border-radius: 6px;
  box-shadow: 0 15px 55px #0008;
  z-index: 12;
  max-height: calc(100% - 140px);
  overflow: auto;
  scrollbar-width: thin;
}
.selection-head {
  padding: 22px 22px 15px;
  border-bottom: 1px solid var(--line);
}
.selection-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.eyebrow {
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  color: var(--accent);
}
.selection-tools > div {
  display: flex;
}
.selection-tools button {
  width: 26px;
  height: 26px;
  font-size: 22px;
}
.selection-tools .icon {
  width: 15px;
  height: 15px;
}
.selection-head h2 {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 650;
  margin: 0 0 10px;
}
.selection-head p {
  color: #aab39f;
  font-size: 11px;
  margin: 0;
  line-height: 1.7;
}
.detail-body {
  padding: 18px 22px 22px;
}
.detail-facts {
  display: flex;
  gap: 16px;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.detail-facts > div {
  flex: 1;
}
.detail-facts dt {
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.detail-facts dd {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--text);
  display: flex;
  gap: 6px;
  align-items: center;
}
.detail-body h3 {
  font: 9px var(--mono);
  letter-spacing: 0.07em;
  font-weight: 400;
  color: var(--muted);
  margin: 18px 0 10px;
}
.zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2c3528;
  padding: 7px 0;
  gap: 10px;
  font-size: 10px;
}
.zone-row > span:last-child {
  color: #bcc5af;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-note {
  font-size: 10px;
  line-height: 1.7;
  color: #b1bba6;
  background: #262e21;
  border-left: 2px solid #7d8d60;
  padding: 9px 11px;
}
.detail-source {
  display: block;
  margin-top: 12px;
  color: #b9c79f;
  text-decoration: none;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.detail-source:hover {
  text-decoration: underline;
}
.detail-date {
  font: 9px var(--mono);
  color: var(--muted);
  margin: 8px 0 0;
}
.detail-action {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.detail-action button {
  background: #303b26;
  border: 1px solid #556342;
  color: var(--accent);
  border-radius: 3px;
  padding: 9px 12px;
  font-size: 11px;
  flex: 1;
}
.detail-action .delete-pin {
  background: none;
  border-color: #614039;
  color: #dba497;
}
.related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-size: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: #c2ccb5;
}
.empty-state,
.loading-state {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.empty-state b {
  color: var(--text);
  font-weight: 550;
  display: block;
  margin-bottom: 5px;
}
.empty-state button {
  display: block;
  margin: 12px auto 0;
  border: 1px solid #526041;
  color: var(--accent);
  border-radius: 3px;
  padding: 7px 12px;
}
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.spinner {
  width: 13px;
  height: 13px;
  border: 1px solid #58624d;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid #525f46;
  border-radius: 8px;
  box-shadow: 0 20px 100px #0008;
  max-height: 85dvh;
  padding: 26px;
  width: min(620px, calc(100vw - 32px));
  scrollbar-width: thin;
}
dialog::backdrop {
  background: #060906b8;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 7px 0 0;
  font-weight: 600;
}
.dialog-heading > .icon-button {
  margin-top: -5px;
  margin-right: -8px;
}
.sources-dialog > p {
  font: 10px var(--mono);
  color: var(--muted);
}
.source-entry {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.source-entry > b {
  font-weight: 550;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.source-entry > b > span {
  color: var(--accent);
}
.source-entry > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}
.source-entry:hover > b {
  color: var(--accent);
}
.source-notes {
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.source-notes b {
  color: var(--text);
  font-weight: 550;
}
.pin-dialog {
  max-width: 390px;
}
.pin-dialog label {
  display: block;
  font-size: 12px;
  color: #c8d1bc;
  margin: 16px 0 7px;
}
.pin-dialog input,
.pin-dialog textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid #45513c;
  border-radius: 4px;
  padding: 11px;
  color: var(--text);
  resize: vertical;
}
.primary-button {
  background: var(--accent);
  color: #20251b !important;
  width: 100%;
  padding: 11px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 10px;
}
.placement-bar {
  position: absolute;
  top: 60px;
  left: 22px;
  right: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #2c3722;
  border: 1px solid #7e905b;
  border-radius: 4px;
  padding: 12px 15px;
  font-size: 12px;
  z-index: 15;
}
.placement-bar button {
  color: var(--accent);
  text-decoration: underline;
}
.map-focus .app-layout {
  grid-template-columns: minmax(0, 1fr);
}
.map-focus .sidebar {
  display: none;
}
.map-focus #expandMap {
  background: #3f4d2e;
}
@media (min-width: 1800px) {
  .app-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }
  .result-name {
    font-size: 12px;
  }
  .sidebar-head,
  .sidebar-filters,
  .sidebar-bottom {
    padding-left: 25px;
    padding-right: 25px;
  }
}
@media (max-height: 800px) and (min-width: 761px) {
  .sidebar-head {
    padding-top: 18px;
    padding-bottom: 13px;
  }
  .sidebar-head > p {
    margin: 10px 0 15px;
  }
  .sidebar-filters {
    padding-bottom: 10px;
  }
  .layer-button {
    min-height: 29px;
    padding: 5px 8px;
  }
  .threat-filter {
    margin-top: 9px;
  }
  .sidebar-bottom {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .app-header {
    padding: 0 20px;
    gap: 20px;
  }
  .brand {
    min-width: 240px;
  }
  .main-nav {
    gap: 18px;
  }
  .data-stamp {
    display: none;
  }
  .pin-label {
    font-size: 9px;
    max-width: 105px;
  }
  .pin-label small {
    display: none;
  }
  .selection-card {
    right: 75px;
    width: 270px;
  }
  .threat-legend {
    gap: 8px;
  }
  .threat-legend > span {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: 58px;
    padding: 0 14px;
    gap: 14px;
  }
  .brand {
    min-width: 0;
    gap: 8px;
  }
  .brand-name {
    font-size: 12px;
  }
  .brand-mark {
    font-size: 20px;
    padding-left: 5px;
    line-height: 28px;
  }
  .brand-name small {
    font-size: 6px;
    margin-top: 5px;
  }
  .main-nav {
    margin-left: auto;
    gap: 14px;
  }
  .main-nav button {
    font-size: 11px;
    white-space: nowrap;
  }
  .main-nav button span {
    display: none;
  }
  .main-nav button[data-view="saved"] {
    font-size: 0;
  }
  .main-nav button[data-view="saved"]:before {
    content: "Repères";
    font-size: 11px;
  }
  .header-actions {
    margin-left: 0;
    gap: 6px;
  }
  .source-button {
    font-size: 0;
    width: 26px;
  }
  .source-button > span {
    font-size: 18px;
    margin: 0;
  }
  .mobile-search {
    display: inline-grid !important;
    width: 26px;
    height: 32px;
  }
  .mobile-close {
    display: inline-grid !important;
  }
  .app-layout {
    height: calc(100dvh - 58px);
    display: block;
  }
  .map-area {
    height: 100%;
    width: 100%;
  }
  .sidebar {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    height: min(76dvh, 680px);
    z-index: 40;
    transform: translateY(105%);
    transition: transform 0.2s ease;
    border: 1px solid #4d5b40;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 60px #0006;
  }
  .sidebar-open .sidebar {
    transform: translateY(0);
  }
  .sidebar-head {
    padding: 18px 20px 12px;
  }
  .sidebar-title h1 {
    font-size: 24px;
  }
  .sidebar-title h1 > span {
    font-size: 16px;
  }
  .sidebar-head > p {
    display: none;
  }
  .search-field {
    margin-top: 14px;
    height: 40px;
  }
  .sidebar-filters {
    padding: 0 20px 10px;
  }
  .layer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .layer-button {
    font-size: 9px;
    padding: 6px;
    min-height: 30px;
    gap: 5px;
  }
  .layer-button .icon {
    width: 12px;
    height: 12px;
  }
  .layer-button > span {
    font-size: 8px;
  }
  .confidence-filter {
    margin-top: 8px;
  }
  .threat-filter {
    margin-top: 8px;
  }
  .sidebar-bottom {
    padding: 10px 20px max(12px, env(safe-area-inset-bottom));
  }
  .result-heading {
    padding: 12px 20px 6px;
  }
  .result-row {
    min-height: 57px;
  }
  .map-topline {
    top: 19px;
    left: 18px;
    right: 18px;
  }
  .map-mode {
    font-size: 8px;
  }
  .coordinate-note {
    font-size: 12px;
  }
  .coordinate-note > span {
    display: none;
  }
  .map-tools {
    right: 14px;
    top: 50px;
  }
  .map-bottomline {
    bottom: 62px;
    left: 0;
    right: 0;
    padding: 15px 16px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .threat-legend {
    gap: 12px;
    flex-wrap: wrap;
  }
  .threat-legend > span {
    font-size: 8px;
  }
  .map-credit {
    font-size: 8px;
  }
  .mobile-results {
    position: absolute;
    bottom: 16px;
    left: 14px;
    right: 14px;
    border: 1px solid #5a6949;
    background: #212b1cf5;
    border-radius: 5px;
    padding: 13px 16px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    box-shadow: 0 5px 15px #0006;
  }
  .pin-symbol {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }
  .pin-label {
    font-size: 8px;
    left: 29px;
    max-width: 90px;
  }
  .pin-label small {
    display: none;
  }
  .selection-card {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 64dvh;
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
    z-index: 35;
  }
  .selection-head {
    padding: 19px 20px 13px;
  }
  .selection-tools {
    margin-bottom: 11px;
  }
  .selection-head h2 {
    font-size: 24px;
  }
  .detail-body {
    padding: 15px 20px max(20px, env(safe-area-inset-bottom));
  }
  .detail-facts {
    gap: 24px;
  }
  .placement-bar {
    top: 50px;
    left: 14px;
    right: 65px;
    font-size: 11px;
    padding: 10px;
  }
  .map-focus .sidebar {
    display: flex;
  }
  .map-notice {
    bottom: 100px;
  }
  .sources-dialog {
    padding: 22px;
  }
  .map-focus .app-layout {
    display: block;
  }
}
.result-name {
  font-size: 12px;
}
.result-meta {
  font-size: 10px;
}
.pin-label {
  font-size: 11px;
}
.threat-legend > span {
  font-size: 10px;
}
.map-pin.poi-pin {
  z-index: 4;
}
.map-pin.selected,
.map-pin:hover {
  z-index: 10;
}
.map-cluster {
  z-index: 3;
}
.map-cluster .pin-symbol {
  width: 31px;
  height: 31px;
  border: 1px solid #9eae88;
  box-shadow: 0 0 0 3px #16210fe6;
  background: #27371f;
  color: #e1eacb;
  font-size: 12px;
}
@media (max-width: 760px) {
  .map-pin .pin-label {
    display: none;
  }
  .map-pin.selected .pin-label,
  .map-pin:focus-visible .pin-label {
    display: block;
  }
  .threat-legend > span {
    font-size: 9px;
  }
  .map-pin .pin-symbol {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .spinner {
    animation: none;
  }
}
