:root {
  color-scheme: dark;
  --bg: #111314;
  --panel: #191d1f;
  --panel-2: #202629;
  --text: #f2f5f2;
  --muted: #a9b3ad;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7fd1a5;
  --accent-strong: #47b77b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.brand {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: calc(100% - 120px);
  padding: 10px 12px;
  background: rgba(25, 29, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(127, 209, 165, 0.95), rgba(71, 183, 123, 0.74)),
    #24342d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0;
}

p,
label,
small,
.status {
  color: var(--muted);
}

button {
  height: 44px;
  padding: 0 14px;
  color: #07110b;
  cursor: pointer;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
}

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

.status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: min(340px, calc(100% - 36px));
  padding: 14px;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status:empty {
  display: none;
}

.map-wrap {
  position: relative;
  min-width: 0;
  min-height: 100vh;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.map-tools {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.map-tools button {
  width: 44px;
  padding: 0;
  color: var(--text);
  background: rgba(25, 29, 31, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.marker {
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border: 3px solid #101312;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(127, 209, 165, 0.25);
}

@media (max-width: 820px) {
  .map-wrap,
  #map {
    min-height: 100vh;
  }
}

@media (max-width: 520px) {
  .brand {
    left: 12px;
    top: 12px;
    max-width: calc(100% - 88px);
  }

  .map-tools {
    top: 12px;
    right: 12px;
  }

  .status {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
