@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-cyrillic-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-cyrillic-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-cyrillic-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-cyrillic-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: #f4f7fb;
  color: #0f172a;
  font-family: Inter, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html[data-theme='dark'] body {
  background: #1e293b;
  color: #f8fafc;
}

.root {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.maplibregl-ctrl-group {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(11, 21, 34, 0.22) !important;
}

.maplibregl-ctrl-group button {
  width: 44px !important;
  height: 44px !important;
}

html[data-theme='dark'] .maplibregl-ctrl-top-right .maplibregl-ctrl-group,
html[data-theme='dark'] .maplibregl-ctrl-top-left .maplibregl-ctrl-group {
  background: #334155 !important;
  border: 1px solid rgba(226, 232, 240, 0.28) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28) !important;
}

html[data-theme='dark'] .maplibregl-ctrl-top-right .maplibregl-ctrl-group button,
html[data-theme='dark'] .maplibregl-ctrl-top-left .maplibregl-ctrl-group button {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme='dark']
  .maplibregl-ctrl-top-right
  .maplibregl-ctrl-group
  button:not(:disabled):hover,
html[data-theme='dark']
  .maplibregl-ctrl-top-left
  .maplibregl-ctrl-group
  button:not(:disabled):hover {
  background-color: #3d4f66 !important;
}

html[data-theme='dark'] .maplibregl-ctrl-top-right .maplibregl-ctrl-group button + button,
html[data-theme='dark'] .maplibregl-ctrl-top-left .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(126, 231, 255, 0.25) !important;
}

html[data-theme='dark']
  .maplibregl-ctrl-top-right
  .maplibregl-ctrl-group
  button
  .maplibregl-ctrl-icon,
html[data-theme='dark']
  .maplibregl-ctrl-top-left
  .maplibregl-ctrl-group
  button
  .maplibregl-ctrl-icon {
  filter: none;
}

html[data-theme='light'] .maplibregl-ctrl-group,
html:not([data-theme='dark']) .maplibregl-ctrl-group {
  background: #ffffff !important;
  border: 1px solid rgba(14, 165, 233, 0.28) !important;
}

html[data-theme='light'] .maplibregl-ctrl-group button,
html:not([data-theme='dark']) .maplibregl-ctrl-group button {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme='light'] .maplibregl-ctrl-group button:not(:disabled):hover,
html:not([data-theme='dark']) .maplibregl-ctrl-group button:not(:disabled):hover {
  background-color: #e0f2fe !important;
}

html[data-theme='light'] .mapbox-gl-draw_ctrl-draw-btn.active,
html:not([data-theme='dark']) .mapbox-gl-draw_ctrl-draw-btn.active,
html[data-theme='light'] .mapbox-gl-draw_ctrl-draw-btn.active:hover,
html:not([data-theme='dark']) .mapbox-gl-draw_ctrl-draw-btn.active:hover {
  background-color: #e0f2fe !important;
  box-shadow: inset 0 0 0 2px #0ea5e9;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #km-journal,
  #km-journal * {
    visibility: visible !important;
  }
  #km-journal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    color: #0f172a;
  }
  .km-no-print {
    display: none !important;
  }
}

html[data-theme='dark'] .maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23E6F6FB'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E") !important;
}
html[data-theme='dark'] .maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23E6F6FB'%3E %3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E %3C/svg%3E") !important;
}
html[data-theme='dark'] .maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23E6F6FB'%3E %3Cpath d='m10.5 14 4-8 4 8z'/%3E %3Cpath fill='%237EE7FF' d='m10.5 16 4 8 4-8z'/%3E %3C/svg%3E") !important;
}
html[data-theme='dark'] .maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23E6F6FB'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E") !important;
}
html[data-theme='dark']
  .maplibregl-ctrl
  button.maplibregl-ctrl-geolocate:disabled
  .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23E6F6FB'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%3E %3C/svg%3E") !important;
}
html[data-theme='dark']
  .maplibregl-ctrl
  button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active
  .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E") !important;
}
html[data-theme='dark']
  .maplibregl-ctrl
  button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background
  .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E") !important;
}

.mapbox-gl-draw_ctrl-draw-btn {
  border-color: transparent !important;
  width: 44px !important;
  height: 44px !important;
}
html[data-theme='dark'] .mapbox-gl-draw_polygon {
  background-image: url('data:image/svg+xml;utf8,%3Csvg%20fill%3D%22%23F8FAFC%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22m15%2012.3v-4.6c.6-.3%201-1%201-1.7%200-1.1-.9-2-2-2-.7%200-1.4.4-1.7%201h-4.6c-.3-.6-1-1-1.7-1-1.1%200-2%20.9-2%202%200%20.7.4%201.4%201%201.7v4.6c-.6.3-1%201-1%201.7%200%201.1.9%202%202%202%20.7%200%201.4-.4%201.7-1h4.6c.3.6%201%201%201.7%201%201.1%200%202-.9%202-2%200-.7-.4-1.4-1-1.7zm-8-.3v-4l1-1h4l1%201v4l-1%201h-4z%22%2F%3E%3C%2Fsvg%3E') !important;
}
html[data-theme='light'] .mapbox-gl-draw_polygon,
html:not([data-theme='dark']) .mapbox-gl-draw_polygon {
  background-image: url('data:image/svg+xml;utf8,%3Csvg%20fill%3D%22%230F172A%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22m15%2012.3v-4.6c.6-.3%201-1%201-1.7%200-1.1-.9-2-2-2-.7%200-1.4.4-1.7%201h-4.6c-.3-.6-1-1-1.7-1-1.1%200-2%20.9-2%202%200%20.7.4%201.4%201%201.7v4.6c-.6.3-1%201-1%201.7%200%201.1.9%202%202%202%20.7%200%201.4-.4%201.7-1h4.6c.3.6%201%201%201.7%201%201.1%200%202-.9%202-2%200-.7-.4-1.4-1-1.7zm-8-.3v-4l1-1h4l1%201v4l-1%201h-4z%22%2F%3E%3C%2Fsvg%3E') !important;
}
html[data-theme='dark'] .mapbox-gl-draw_line {
  background-image: url('data:image/svg+xml;utf8,%3Csvg%20fill%3D%22%23F8FAFC%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22m13.5%203.5c-1.4%200-2.5%201.1-2.5%202.5%200%20.3%200%20.6.2.9l-3.8%203.8c-.3-.1-.6-.2-.9-.2-1.4%200-2.5%201.1-2.5%202.5s1.1%202.5%202.5%202.5%202.5-1.1%202.5-2.5c0-.3%200-.6-.2-.9l3.8-3.8c.3.1.6.2.9.2%201.4%200%202.5-1.1%202.5-2.5s-1.1-2.5-2.5-2.5z%22%2F%3E%3C%2Fsvg%3E') !important;
}
html[data-theme='light'] .mapbox-gl-draw_line,
html:not([data-theme='dark']) .mapbox-gl-draw_line {
  background-image: url('data:image/svg+xml;utf8,%3Csvg%20fill%3D%22%230F172A%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22m13.5%203.5c-1.4%200-2.5%201.1-2.5%202.5%200%20.3%200%20.6.2.9l-3.8%203.8c-.3-.1-.6-.2-.9-.2-1.4%200-2.5%201.1-2.5%202.5s1.1%202.5%202.5%202.5%202.5-1.1%202.5-2.5c0-.3%200-.6-.2-.9l3.8-3.8c.3.1.6.2.9.2%201.4%200%202.5-1.1%202.5-2.5s-1.1-2.5-2.5-2.5z%22%2F%3E%3C%2Fsvg%3E') !important;
}
html[data-theme='dark'] .mapbox-gl-draw_trash {
  background-image: url('data:image/svg+xml;utf8,%3Csvg%20fill%3D%22%23F8FAFC%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22M10%2C3.4%20c-0.8%2C0-1.5%2C0.5-1.8%2C1.2H5l-1%2C1v1h12v-1l-1-1h-3.2C11.5%2C3.9%2C10.8%2C3.4%2C10%2C3.4z%20M5%2C8v7c0%2C1%2C1%2C2%2C2%2C2h6c1%2C0%2C2-1%2C2-2V8h-2v5.5h-1.5V8h-3%20v5.5H7V8H5z%22%2F%3E%3C%2Fsvg%3E') !important;
}
html[data-theme='light'] .mapbox-gl-draw_trash,
html:not([data-theme='dark']) .mapbox-gl-draw_trash {
  background-image: url('data:image/svg+xml;utf8,%3Csvg%20fill%3D%22%230F172A%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22M10%2C3.4%20c-0.8%2C0-1.5%2C0.5-1.8%2C1.2H5l-1%2C1v1h12v-1l-1-1h-3.2C11.5%2C3.9%2C10.8%2C3.4%2C10%2C3.4z%20M5%2C8v7c0%2C1%2C1%2C2%2C2%2C2h6c1%2C0%2C2-1%2C2-2V8h-2v5.5h-1.5V8h-3%20v5.5H7V8H5z%22%2F%3E%3C%2Fsvg%3E') !important;
}
