:root {
  --bg: #07111b;
  --chrome: #0c1723;
  --chrome-2: #101d2a;
  --panel: rgba(15, 27, 41, 0.94);
  --panel-solid: #111e2b;
  --ink: #f4f7fb;
  --muted: #9aa9ba;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #8ee6a8;
  --accent-2: #38bdf8;
  --icon-blue: #127FAB;
  --icon-green: #17A110;
  --icon-rust: #BD3D0B;
  --danger: #e05252;
  --green: #49d17d;
  --contour: #df7b21;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  --reference-service-height: 250px;
}

body[data-theme="light"] {
  --bg: #eef3f8;
  --chrome: #ffffff;
  --chrome-2: #f5f8fb;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-solid: #ffffff;
  --ink: #102033;
  --muted: #5f7083;
  --line: rgba(27, 43, 63, 0.14);
  --accent: #47c978;
  --accent-2: #0ea5e9;
  --icon-blue: #127FAB;
  --icon-green: #17A110;
  --icon-rust: #BD3D0B;
  --danger: #c73535;
  --green: #118c55;
  --contour: #a8560d;
  --shadow: 0 18px 42px rgba(23, 42, 67, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 0.32s ease, color 0.32s ease;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: #f7fbff;
  background:
    radial-gradient(circle at center, rgba(18, 127, 171, 0.2), transparent 34%),
    linear-gradient(135deg, #07111b 0%, #0c1723 56%, #050b12 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.loader-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.loader-spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #07111b 0 46%, transparent 47%),
    conic-gradient(from 0deg, #127FAB 0 32%, #17A110 32% 64%, #BD3D0B 64% 86%, rgba(255, 255, 255, 0.18) 86% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 26px rgba(18, 127, 171, 0.26);
  animation: loader-spin 0.85s linear infinite;
}

.loader-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

button,
input,
select {
  font: inherit;
}

button,
.import-btn {
  border: 0;
  cursor: pointer;
  user-select: none;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: 200px 1fr 34px;
  padding: 8px;
  gap: 8px;
  background: var(--bg);
  transition: background-color 0.32s ease;
}

.ribbon {
  --ribbon-tab-min-w: 76px;
  --ribbon-tab-font: 10.5px;
  --ribbon-tab-pad-x: 8px;
  --ribbon-action-min-w: 58px;
  --ribbon-action-max-w: 92px;
  --ribbon-action-h: 76px;
  --ribbon-action-pad-x: 6px;
  --ribbon-action-label: 11px;
  --ribbon-action-icon: 25px;
  --ribbon-group-pad-x: 10px;
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  grid-template-rows: 46px 34px 120px;
  gap: 0 14px;
  align-items: stretch;
  padding: 0 18px;
  background: linear-gradient(180deg, var(--chrome), var(--chrome-2));
  border-bottom: 1px solid var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 5;
  overflow: hidden;
  transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.ribbon[data-nav-density="1"] {
  --ribbon-tab-min-w: 66px;
  --ribbon-tab-font: 10px;
  --ribbon-tab-pad-x: 6px;
}

.ribbon[data-nav-density="2"] {
  --ribbon-tab-min-w: 56px;
  --ribbon-tab-font: 9.25px;
  --ribbon-tab-pad-x: 4px;
}

.ribbon[data-nav-density="3"] {
  --ribbon-tab-min-w: 48px;
  --ribbon-tab-font: 8.5px;
  --ribbon-tab-pad-x: 3px;
}

.ribbon[data-nav-density="4"] {
  --ribbon-tab-min-w: 42px;
  --ribbon-tab-font: 7.75px;
  --ribbon-tab-pad-x: 2px;
}

.ribbon[data-tools-density="1"] {
  --ribbon-action-min-w: 52px;
  --ribbon-action-max-w: 78px;
  --ribbon-action-h: 72px;
  --ribbon-action-label: 10px;
  --ribbon-action-icon: 22px;
  --ribbon-group-pad-x: 8px;
}

.ribbon[data-tools-density="2"] {
  --ribbon-action-min-w: 46px;
  --ribbon-action-max-w: 68px;
  --ribbon-action-h: 66px;
  --ribbon-action-pad-x: 4px;
  --ribbon-action-label: 9.25px;
  --ribbon-action-icon: 20px;
  --ribbon-group-pad-x: 6px;
}

.ribbon[data-tools-density="3"] {
  --ribbon-action-min-w: 40px;
  --ribbon-action-max-w: 58px;
  --ribbon-action-h: 60px;
  --ribbon-action-pad-x: 3px;
  --ribbon-action-label: 8.5px;
  --ribbon-action-icon: 18px;
  --ribbon-group-pad-x: 4px;
}

.ribbon[data-tools-density="4"] {
  --ribbon-action-min-w: 36px;
  --ribbon-action-max-w: 50px;
  --ribbon-action-h: 54px;
  --ribbon-action-pad-x: 2px;
  --ribbon-action-label: 7.75px;
  --ribbon-action-icon: 16px;
  --ribbon-group-pad-x: 3px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #22a2ff);
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand p {
  display: none;
}

.ribbon-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  justify-content: flex-start;
  align-content: flex-start;
  flex-wrap: nowrap;
  padding: 0 2px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  scroll-snap-type: x proximity;
}

.ribbon-nav::-webkit-scrollbar,
.ribbon-tabs::-webkit-scrollbar {
  height: 6px;
}

.ribbon-nav::-webkit-scrollbar-thumb,
.ribbon-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
}

.ribbon-nav.is-scrollable,
.ribbon-tabs.is-tools-scrollable {
  box-shadow: inset 12px 0 10px -10px rgba(0, 0, 0, 0.12), inset -12px 0 10px -10px rgba(0, 0, 0, 0.12);
}

.ribbon-nav button {
  flex: 0 0 auto;
  min-width: var(--ribbon-tab-min-w);
  max-width: 132px;
  min-height: calc(100% - 6px);
  display: grid;
  place-items: center;
  padding: 0 var(--ribbon-tab-pad-x);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: 6px 6px 0 0;
  font-size: var(--ribbon-tab-font);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  scroll-snap-align: start;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, font-size 0.12s ease, min-width 0.12s ease;
}

.ribbon-nav button:last-child {
  border-right: 0;
}

.ribbon-nav button:hover {
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  color: var(--ink);
}

.ribbon-nav button.is-active {
  background: rgba(142, 230, 168, 0.16);
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.top-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.top-project-title {
  position: absolute;
  top: 27px;
  left: 50%;
  max-width: min(360px, 32vw);
  transform: translate(-50%, -50%);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.top-project-title:focus {
  outline: 2px solid rgba(109, 93, 252, 0.42);
  outline-offset: 2px;
}

.icon-btn,
.mini-close {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--line);
}

.theme-switch {
  position: relative;
  width: 62px;
  height: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 7px;
  color: var(--ink);
  background: rgba(148, 163, 184, 0.14);
  border: 0;
  border-radius: 999px;
  transition: background-color 0.32s ease, color 0.32s ease;
}

.theme-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.theme-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.32s ease, background-color 0.32s ease;
}

.view-settings-group .toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

.view-settings-group .toggle-action {
  min-width: 62px;
  max-width: 92px;
  min-height: 76px;
  grid-template-rows: 14px 32px auto;
  padding: 3px 6px;
}

.view-settings-group .check-mark {
  width: 14px;
  height: 14px;
  font-size: 11px;
}

.view-settings-group .action-icon {
  width: 32px;
  height: 32px;
  font-size: 25px;
  border-radius: 8px;
}

.view-settings-group .ribbon-action > span:last-child {
  font-size: 11px;
  line-height: 1.15;
}

body[data-theme="light"] .theme-knob {
  transform: translateX(30px);
}

.icon-btn.is-on {
  background: rgba(109, 93, 252, 0.22);
  border-color: rgba(109, 93, 252, 0.55);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}

.user-pill span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2e86ff, #6d5dfc);
}

.ribbon-tabs {
  grid-column: 1 / -1;
  grid-row: 3;
  display: block;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  height: 120px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.ribbon-content {
  display: none;
  align-items: stretch;
  gap: 0;
  min-height: 100%;
  min-width: min-content;
  flex-wrap: nowrap;
  overflow: visible;
  height: 120px;
}

.ribbon-content.is-active {
  display: flex;
  justify-content: flex-start;
  width: max-content;
  min-width: 100%;
  overflow: visible;
}

.ribbon-group {
  flex: 0 0 auto;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  gap: 3px;
  padding: 3px var(--ribbon-group-pad-x) 4px;
  border-right: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  margin: 2px 0 8px 0;
  scroll-snap-align: start;
}

.ribbon-group:last-child {
  border-right: 0;
}

.ribbon-group > span {
  position: relative;
  align-self: end;
  justify-self: center;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 8px 5px;
}

.ribbon-group > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.toolbar {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  min-width: 0;
}

.file-group {
  flex-basis: auto;
  min-width: 0;
}

.ribbon-action {
  flex: 0 0 auto;
  width: auto;
  min-width: var(--ribbon-action-min-w);
  max-width: var(--ribbon-action-max-w);
  min-height: var(--ribbon-action-h);
  display: grid;
  grid-template-rows: minmax(22px, 32px) auto;
  place-items: center;
  gap: 0;
  padding: 3px var(--ribbon-action-pad-x);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  text-align: center;
  position: relative;
  transition: min-width 0.12s ease, min-height 0.12s ease, padding 0.12s ease;
}

.ribbon-action:hover {
  background: rgba(148, 163, 184, 0.12);
}

.drawing-tools-group + .ribbon-group {
  display: none;
}

.ribbon-action input {
  display: none;
}

.action-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--icon-blue);
  background: transparent;
  font-size: var(--ribbon-action-icon);
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
}

.toggle-action {
  grid-template-rows: 14px minmax(18px, 22px) auto;
  min-width: calc(var(--ribbon-action-min-w) + 4px);
}

.check-mark {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  justify-self: start;
  color: #07111b;
  background: var(--accent);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.toggle-action:not(.is-active) .check-mark {
  color: transparent;
  background: transparent;
  outline: 1px solid var(--line);
}

.ribbon-action:nth-child(2n) .action-icon {
  color: var(--icon-green);
  text-shadow: none;
}

.ribbon-action:nth-child(3n) .action-icon {
  color: var(--icon-rust);
  text-shadow: none;
}

.ribbon-action > span:last-child {
  max-width: 100%;
  color: var(--ink);
  font-size: var(--ribbon-action-label);
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.ribbon-content[data-tab-panel="edit"] .ribbon-group {
  padding-right: 6px;
  padding-left: 6px;
}

.ribbon-content[data-tab-panel="edit"] .toolbar {
  flex-wrap: nowrap;
}

.ribbon-content[data-tab-panel="edit"] .ribbon-action {
  min-width: min(var(--ribbon-action-min-w), 44px);
  max-width: min(var(--ribbon-action-max-w), 68px);
}

.ribbon-content[data-tab-panel="edit"] .ribbon-action > span:last-child {
  line-height: 1.08;
}

.tool-btn,
.ghost-btn,
.danger-btn,
.primary-btn,
.import-btn {
  flex: 0 0 auto;
  min-width: 0;
}

.tool-btn,
.ghost-btn,
.danger-btn,
.primary-btn,
.import-btn,
.wide-btn,
.mini-btn {
  min-height: 32px;
  border-radius: 0;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.tool-btn {
  min-width: auto;
}

.tool-btn.is-active,
.draw-tool.is-active,
.ghost-btn.is-on {
  color: #fff;
  background: linear-gradient(135deg, #5c54ee, #2e67d8);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.26);
}

.primary-btn,
.import-btn {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #5c54ee, #4338ca);
  border-color: transparent;
}

.danger-btn {
  color: #fff;
  background: rgba(224, 82, 82, 0.9);
  border-color: transparent;
}

.import-btn input {
  display: none;
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width, 380px) minmax(360px, 1fr);
  gap: 8px;
  overflow: hidden;
}

.layers-sidebar {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 3;
  transition: background-color 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.layer-manager-head {
  display: grid;
  gap: 0;
  justify-items: start;
  align-content: start;
}

.layer-manager-head h2 {
  width: 100%;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.layer-manager-body {
  width: 100%;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  height: calc(100vh - 260px);
  min-height: 220px;
}

.thin-layer-area {
  position: relative;
  width: 20px;
  min-height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  text-align: center;
}

.thin-service-btn,
.world-search-btn {
  position: absolute;
  left: 0;
  width: 20px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #127FAB;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  writing-mode: horizontal-tb;
}

.thin-service-btn {
  bottom: 188px;
}

.world-search-btn {
  bottom: 155px;
}

.world-search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.8px solid #127FAB;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(18, 127, 171, 0.18);
  pointer-events: none;
}

.world-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: #127FAB;
  border-radius: 2px;
  transform: rotate(45deg);
}

.world-search-btn:hover .world-search-icon,
.world-search-btn.is-active .world-search-icon {
  border-color: #17A110;
  box-shadow: inset 0 0 0 2px rgba(23, 161, 16, 0.16);
}

.world-search-btn:hover .world-search-icon::after,
.world-search-btn.is-active .world-search-icon::after {
  background: #17A110;
}

.world-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
  overflow: hidden;
  border: 1.5px solid #0b4f6b;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #f8fbff 0 2px, transparent 3px),
    linear-gradient(135deg, #41b7e8, #127FAB 58%, #0b4f6b);
  box-shadow: inset -3px -3px 0 rgba(5, 30, 45, 0.22);
}

.world-icon::before,
.world-icon::after {
  content: "";
  position: absolute;
  background: #17A110;
  border-radius: 45% 55% 42% 58%;
}

.world-icon::before {
  left: 2px;
  top: 4px;
  width: 6px;
  height: 5px;
  transform: rotate(-18deg);
  box-shadow: 8px 6px 0 -1px #17A110;
}

.world-icon::after {
  right: 2px;
  top: 3px;
  width: 4px;
  height: 7px;
  transform: rotate(22deg);
}

.thin-service-btn:hover,
.thin-service-btn.is-active,
.world-search-btn:hover,
.world-search-btn.is-active {
  color: #17A110;
  background: rgba(148, 163, 184, 0.12);
}

.variable-layer-area {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(120px, var(--layer-split-top, 500px)) 4px minmax(170px, 1fr);
  align-content: stretch;
  min-height: 0;
  padding-left: 10px;
}

.variable-layer-section,
.reference-service-area {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
}

.variable-layer-section {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.reference-service-area {
  height: 100%;
  min-height: 0;
  max-height: none;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 4px;
  padding-top: 0;
  cursor: default;
  touch-action: auto;
  user-select: auto;
  overflow: hidden;
}

.satellite-service-panel,
.tkgm-parcel-panel {
  display: none;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.08);
  cursor: default;
}

.satellite-service-panel.is-open,
.tkgm-parcel-panel.is-open {
  display: grid;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.tkgm-parcel-panel.is-open {
  grid-template-rows: auto minmax(0, 1fr);
}

.tkgm-parcel-form {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow: hidden;
}

.tkgm-parcel-form label {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.tkgm-parcel-form select,
.tkgm-parcel-form input {
  min-width: 0;
  height: 22px;
  padding: 0 7px;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}

body[data-theme="light"] .tkgm-parcel-form select,
body[data-theme="light"] .tkgm-parcel-form input {
  background: rgba(255, 255, 255, 0.72);
}

.tkgm-parcel-form button {
  height: 24px;
  color: #ffffff;
  background: #17A110;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tkgm-parcel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.tkgm-parcel-form button.is-active {
  background: #127FAB;
}

.tkgm-parcel-form button:hover {
  filter: brightness(1.08);
}

#mapCanvas.is-tkgm-picking {
  cursor: crosshair;
}

.tkgm-parcel-status {
  min-height: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.tkgm-parcel-status[data-type="success"] {
  color: #17A110;
}

.tkgm-parcel-status[data-type="error"] {
  color: #BD3D0B;
}

.service-panel-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.service-layer-list {
  display: grid;
  gap: 4px;
  overflow: hidden;
  padding-right: 0;
}

.service-layer-item {
  min-height: 24px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  text-align: left;
}

.service-layer-item span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-layer-item em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.service-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.service-layer-item:hover,
.service-layer-item.is-active {
  border-color: rgba(142, 230, 168, 0.5);
  background: rgba(142, 230, 168, 0.14);
}

.variable-layer-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.layer-split-resize-handle {
  display: block;
  position: relative;
  min-height: 4px;
  cursor: row-resize;
  touch-action: none;
  z-index: 2;
  user-select: none;
}

.layer-split-resize-handle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: var(--line);
  transform: translateY(-50%);
}

.layer-split-resize-handle:hover::before,
.layer-split-resize-handle.is-dragging::before {
  height: 4px;
  background: var(--accent);
}

.layer-manager-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.square-icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--accent-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.square-icon-btn:hover,
.square-icon-btn.is-active {
  color: #07111b;
  background: var(--accent);
  border-color: transparent;
}

#layerAddBtn {
  position: relative;
  color: #17A110;
  font-size: 0;
  font-weight: 300;
}

#layerAddBtn::before {
  content: "+";
  display: block;
  color: #17A110;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

#layerDeleteBtn {
  position: relative;
  color: #BD3D0B;
  font-size: 0;
}

#layerDeleteBtn::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  border: 0;
  border-radius: 0;
  transform: none;
  box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 18c0-6 4-10 9-10s9 4 9 10'/%3E%3Cpath d='M16 22h32c2 0 4 2 4 4v5H12v-5c0-2 2-4 4-4z'/%3E%3Cpath d='M18 31l3 23c1 5 4 7 9 7h4c5 0 8-2 9-7l3-23'/%3E%3Cpath d='M26 38v14M32 38v14M38 38v14M30 26h8M44 26h1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 18c0-6 4-10 9-10s9 4 9 10'/%3E%3Cpath d='M16 22h32c2 0 4 2 4 4v5H12v-5c0-2 2-4 4-4z'/%3E%3Cpath d='M18 31l3 23c1 5 4 7 9 7h4c5 0 8-2 9-7l3-23'/%3E%3Cpath d='M26 38v14M32 38v14M38 38v14M30 26h8M44 26h1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

#layerDeleteBtn::after {
  content: none;
}

#layerVisibilityBtn {
  position: relative;
  color: #BD3D0B;
  font-size: 0;
}

#layerVisibilityBtn::before {
  content: "";
  width: 26px;
  height: 18px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 23c9-13 19-19 28-19s19 6 28 19c-9 13-19 19-28 19S13 36 4 23z'/%3E%3Ccircle cx='32' cy='23' r='12'/%3E%3Ccircle cx='32' cy='23' r='5'/%3E%3Cpath d='M8 13L2 7M18 7l-3-7M32 4V0M46 7l3-7M56 13l6-6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 23c9-13 19-19 28-19s19 6 28 19c-9 13-19 19-28 19S13 36 4 23z'/%3E%3Ccircle cx='32' cy='23' r='12'/%3E%3Ccircle cx='32' cy='23' r='5'/%3E%3Cpath d='M8 13L2 7M18 7l-3-7M32 4V0M46 7l3-7M56 13l6-6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
}

#layerVisibilityBtn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27px;
  height: 16px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 36'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7c13 16 39 16 52 0'/%3E%3Cpath d='M9 10L2 17M20 18l-5 10M32 22v11M44 18l5 10M55 10l7 7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 36'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7c13 16 39 16 52 0'/%3E%3Cpath d='M9 10L2 17M20 18l-5 10M32 22v11M44 18l5 10M55 10l7 7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

#layerVisibilityBtn.is-active::after {
  left: 50%;
  top: 50%;
  width: 27px;
  height: 16px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  opacity: 1;
  transform: translate(-50%, -50%);
  box-shadow: none;
}

#layerVisibilityBtn.is-active::before {
  opacity: 0;
  background: transparent;
}

body[data-theme="light"] #layerVisibilityBtn::before,
body[data-theme="light"] #layerVisibilityBtn::after,
body[data-theme="light"] #layerVisibilityBtn.is-active::after {
  background: #111111;
}

#layerLockBtn {
  color: #17A110;
}

.layer-search-wrap {
  flex: 1 1 96px;
  max-width: 140px;
  min-width: 86px;
  height: 30px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0 7px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.layer-search-wrap span {
  font-size: 13px;
  line-height: 1;
}

.layer-search-wrap input {
  width: 100%;
  min-height: 0;
  height: 24px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-size: 12px;
}

.external-layer-panels {
  display: grid;
  gap: 6px;
  min-height: 0;
  margin-top: 6px;
  overflow: hidden;
}

.external-layer-panel {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.08);
}

.external-layer-panel.is-collapsed {
  gap: 0;
}

.external-layer-panel.is-collapsed .external-layer-list {
  display: none;
}

.external-layer-head {
  min-height: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.external-layer-title {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.external-layer-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.external-layer-actions button {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.external-layer-actions button:hover {
  background: rgba(148, 163, 184, 0.16);
}

.external-layer-actions [data-external-delete] {
  color: #BD3D0B;
  font-size: 14px;
}

.external-layer-actions [data-external-visibility] {
  position: relative;
  font-size: 0;
}

.external-layer-actions [data-external-visibility]::before {
  content: "";
  width: 17px;
  height: 13px;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 23c9-13 19-19 28-19s19 6 28 19c-9 13-19 19-28 19S13 36 4 23z'/%3E%3Ccircle cx='32' cy='23' r='12'/%3E%3Ccircle cx='32' cy='23' r='5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 23c9-13 19-19 28-19s19 6 28 19c-9 13-19 19-28 19S13 36 4 23z'/%3E%3Ccircle cx='32' cy='23' r='12'/%3E%3Ccircle cx='32' cy='23' r='5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-theme="light"] .external-layer-actions [data-external-visibility]::before {
  background: #111111;
}

.external-layer-list {
  display: grid;
  gap: 3px;
  max-height: 78px;
  overflow-y: auto;
}

.external-layer-item {
  min-width: 0;
  min-height: 22px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 11px;
  text-align: left;
}

.external-layer-item:hover {
  background: rgba(148, 163, 184, 0.12);
}

.external-layer-item.is-active {
  background: rgba(142, 230, 168, 0.16);
}

.external-layer-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.external-layer-name,
.external-layer-zoom {
  min-width: 0;
  height: 20px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

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

.external-layer-zoom {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 3px;
}

.external-layer-zoom::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.8px solid #127FAB;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(18, 127, 171, 0.14);
}

.external-layer-zoom::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: 2px;
  bottom: 3px;
  background: #127FAB;
  border-radius: 2px;
  transform: rotate(45deg);
}

.external-layer-zoom:hover {
  background: rgba(142, 230, 168, 0.16);
}

.external-layer-zoom:hover::before {
  border-color: #17A110;
}

.external-layer-zoom:hover::after {
  background: #17A110;
}

.sidebar-resize-handle {
  display: none;
}

.sidebar-resize-handle::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 3px;
  width: 1px;
  background: var(--line);
}

.sidebar-resize-handle:hover::after,
.sidebar-resize-handle.is-dragging::after {
  width: 2px;
  background: var(--accent);
}

section {
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

label {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(148, 163, 184, 0.12);
}

input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
}

input[type="range"],
input[type="checkbox"] {
  accent-color: var(--accent);
}

.wide-btn {
  width: 100%;
  margin-bottom: 8px;
  background: rgba(109, 93, 252, 0.16);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-btn {
  width: 34px;
  padding: 0;
  color: #fff;
  background: var(--accent);
}

.layer-list {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.layer-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  min-height: 24px;
  padding: 2px 3px;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
}

.layer-item:hover {
  background: rgba(148, 163, 184, 0.1);
}

.layer-item.is-active {
  background: rgba(142, 230, 168, 0.16);
  box-shadow: inset 0 0 0 1px rgba(142, 230, 168, 0.28);
}

.layer-color {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.layer-row-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
}

.layer-color-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.layer-color-control input {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.layer-mini-action,
.layer-flag-action {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1;
}

.layer-mini-action[data-layer-toggle] {
  position: relative;
  font-size: 0;
}

.layer-mini-action[data-layer-toggle]::before {
  content: "";
  width: 17px;
  height: 13px;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 23c9-13 19-19 28-19s19 6 28 19c-9 13-19 19-28 19S13 36 4 23z'/%3E%3Ccircle cx='32' cy='23' r='12'/%3E%3Ccircle cx='32' cy='23' r='5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 23c9-13 19-19 28-19s19 6 28 19c-9 13-19 19-28 19S13 36 4 23z'/%3E%3Ccircle cx='32' cy='23' r='12'/%3E%3Ccircle cx='32' cy='23' r='5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-theme="light"] .layer-mini-action[data-layer-toggle]::before {
  background: #111111;
}

.layer-flag-action {
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
}

.layer-mini-action:hover,
.layer-flag-action:hover,
.layer-flag-action.is-active {
  background: rgba(148, 163, 184, 0.14);
}

.layer-flag-action.is-active {
  color: #17A110;
}

.flag-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
  color: currentColor;
  line-height: 1;
}

.flag-area-borders {
  border: 2px solid #127FAB;
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(189, 61, 11, 0.9) 0 2px, rgba(255, 255, 255, 0.16) 2px 4px),
    rgba(189, 61, 11, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32);
  transform: skew(-8deg);
}

.flag-area-borders.is-outline {
  background: transparent;
}

.flag-point-text i {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #BD3D0B;
  box-shadow: 0 0 0 2px rgba(189, 61, 11, 0.22);
}

.flag-point-text b {
  position: absolute;
  right: 0;
  top: 0;
  color: #127FAB;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.flag-printer i {
  position: absolute;
  left: 3px;
  top: 1px;
  width: 10px;
  height: 6px;
  background: #127FAB;
  border-radius: 2px 2px 0 0;
}

.flag-printer::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 14px;
  height: 8px;
  background: #17A110;
  border-radius: 2px;
}

.flag-printer::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 5px;
  background: #ffffff;
  border-radius: 1px;
}

.flag-printer b {
  display: none;
}

.flag-printer.is-off b {
  position: absolute;
  left: 0;
  top: 7px;
  display: block;
  width: 17px;
  height: 2px;
  background: #d51f1f;
  border-radius: 999px;
  transform: rotate(-28deg);
  z-index: 2;
}

.flag-area-name {
  position: relative;
  display: grid;
  place-items: center;
  color: #127FAB;
  border: 2px solid #17A110;
  border-radius: 3px;
  background: rgba(23, 161, 16, 0.12);
  font-size: 10px;
  font-weight: 900;
}

.flag-area-name.is-off::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  width: 18px;
  height: 2px;
  background: #d51f1f;
  border-radius: 999px;
  transform: rotate(-28deg);
}

.flag-balastro {
  border: 2px solid #BD3D0B;
  border-radius: 50%;
  background: transparent;
}

.flag-balastro::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #BD3D0B;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.flag-balastro.is-dot {
  border: 0;
}

.flag-balastro.is-dot::before {
  width: 7px;
  height: 7px;
}

.flag-center-tree i {
  position: absolute;
  left: 6px;
  bottom: 1px;
  width: 4px;
  height: 8px;
  background: #7a3f16;
  border-radius: 2px;
}

.flag-center-tree b,
.flag-center-tree::before,
.flag-center-tree::after {
  content: "";
  position: absolute;
  background: #17A110;
  border-radius: 50%;
}

.flag-center-tree b {
  left: 4px;
  top: 1px;
  width: 8px;
  height: 8px;
}

.flag-center-tree::before {
  left: 1px;
  top: 5px;
  width: 8px;
  height: 8px;
}

.flag-center-tree::after {
  right: 1px;
  top: 5px;
  width: 8px;
  height: 8px;
}

.flag-center-tree.is-bare b,
.flag-center-tree.is-bare::before,
.flag-center-tree.is-bare::after {
  display: none;
}

.flag-center-tree.is-bare i {
  left: 7px;
  bottom: 1px;
  width: 3px;
  height: 13px;
}

.flag-center-tree.is-bare {
  border-bottom: 2px solid #7a3f16;
}

.flag-basic {
  display: grid;
  place-items: center;
}

.layer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.layer-count {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #08131f;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color 0.32s ease, border-color 0.32s ease;
}

.map-stage.is-drag-target {
  border-color: #8ee6a8;
  box-shadow: inset 0 0 0 2px rgba(142, 230, 168, 0.64), 0 0 0 1px rgba(142, 230, 168, 0.18);
}

.map-stage.is-drag-target::after {
  content: "Dosyayı haritaya bırak";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  color: #ffffff;
  background: rgba(8, 19, 31, 0.82);
  border: 1px solid rgba(142, 230, 168, 0.55);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.map-screen-tabs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 8px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}

.screen-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.screen-tab,
.screen-add-btn {
  min-width: 34px;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
}

.screen-tab {
  grid-auto-flow: column;
  gap: 8px;
}

.screen-close-btn {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.screen-tab.is-active .screen-close-btn {
  color: var(--accent);
}

.screen-close-btn:hover {
  color: #07111b;
  background: var(--accent);
}

.screen-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(142, 230, 168, 0.1);
}

.screen-add-btn {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.map-quick-bar {
  position: absolute;
  top: 38px;
  left: 10px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  z-index: 3;
}

.map-quick-btn {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.map-quick-btn:hover {
  background: rgba(148, 163, 184, 0.16);
}

.aster-mode-panel {
  position: absolute;
  top: 74px;
  left: 10px;
  z-index: 4;
  width: 188px;
  display: none;
  gap: 6px;
  padding: 7px;
  color: var(--ink);
  background: rgba(10, 21, 34, 0.9);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.aster-mode-panel.is-open {
  display: grid;
}

.aster-mode-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.aster-mode-actions {
  display: grid;
  gap: 4px;
}

.aster-mode-actions button {
  min-height: 24px;
  padding: 0 7px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 5px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.aster-mode-actions button:hover,
.aster-mode-actions button.is-active {
  color: #06120b;
  background: var(--accent);
  border-color: var(--accent);
}

body[data-theme="light"] .aster-mode-panel {
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .map-stage {
  background: #ffffff;
}

#mapCanvas {
  display: block;
  position: absolute;
  inset: 34px 0 0 0;
  width: 100%;
  height: calc(100% - 34px);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 3 L18 12 L12 13 L15 20 L12.8 21 L9.8 14 L5 18 Z' fill='white' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") 5 3, default;
}

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  display: none;
  padding: 3px 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
}

.map-attribution.is-open {
  display: block;
}

body[data-theme="dark"] .map-attribution {
  color: #dbe7f4;
  background: rgba(8, 19, 31, 0.72);
}

.map-text-editor {
  position: absolute;
  z-index: 6;
  resize: none;
  padding: 6px 8px;
  color: var(--ink);
  background: rgba(15, 27, 41, 0.86);
  border: 1px solid var(--accent);
  border-radius: 4px;
  outline: 0;
  font: 600 15px "Segoe UI", Arial, sans-serif;
  line-height: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

body[data-theme="light"] .map-text-editor {
  color: #102033;
  background: rgba(255, 255, 255, 0.92);
}

.north-compass {
  position: absolute;
  top: 48px;
  right: 14px;
  width: 58px;
  height: 70px;
  display: grid;
  grid-template-rows: 18px 52px;
  justify-items: center;
  align-items: start;
  padding: 0;
  color: #050505;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
  z-index: 3;
  pointer-events: none;
}

.compass-letter {
  display: block;
  color: #000000;
  font-size: 19px;
  font-weight: 900;
  line-height: 18px;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.92), 0 1px 2px rgba(255, 255, 255, 0.8);
}

.compass-rose {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #000000 0 10%, #ffffff 11% 19%, #000000 20% 21%, transparent 22%),
    radial-gradient(circle at center, transparent 0 38%, #000000 39% 46%, transparent 47% 58%, #000000 59% 66%, transparent 67%);
}

.compass-rose::before,
.compass-rose::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
}

.compass-rose::before {
  background:
    linear-gradient(45deg, transparent 48%, #000000 49%, #000000 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, #000000 49%, #000000 51%, transparent 52%);
  opacity: 0.9;
}

.compass-rose::after {
  background:
    linear-gradient(90deg, transparent 47%, #000000 48%, #000000 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #000000 48%, #000000 52%, transparent 53%);
  opacity: 0.9;
}

.compass-point {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 24px;
  transform-origin: 50% 100%;
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  background: linear-gradient(90deg, #000000 0 50%, #ffffff 51% 100%);
  border: 1px solid #000000;
}

.compass-point.north {
  height: 28px;
  transform: translate(-50%, -100%) rotate(0deg);
}

.compass-point.east {
  height: 28px;
  transform: translate(-50%, -100%) rotate(90deg);
}

.compass-point.south {
  height: 28px;
  transform: translate(-50%, -100%) rotate(180deg);
}

.compass-point.west {
  height: 28px;
  transform: translate(-50%, -100%) rotate(270deg);
}

.compass-point.northeast {
  width: 9px;
  height: 20px;
  transform: translate(-50%, -100%) rotate(45deg);
}

.compass-point.southeast {
  width: 9px;
  height: 20px;
  transform: translate(-50%, -100%) rotate(135deg);
}

.compass-point.southwest {
  width: 9px;
  height: 20px;
  transform: translate(-50%, -100%) rotate(225deg);
}

.compass-point.northwest {
  width: 9px;
  height: 20px;
  transform: translate(-50%, -100%) rotate(315deg);
}

.compass-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  border: 2px solid #000000;
  border-radius: 50%;
  background: radial-gradient(circle at center, #000000 0 48%, #ffffff 50% 100%);
  z-index: 2;
}

.save-work-dialog,
.point-name-dialog,
.area-name-dialog,
.parallel-distance-dialog,
.layer-properties-dialog,
.import-layer-dialog,
.coordinate-system-dialog,
.exit-confirm-dialog {
  position: absolute;
  inset: 34px 0 0 0;
  display: none;
  place-items: center;
  background: rgba(4, 10, 18, 0.36);
  backdrop-filter: blur(2px);
  z-index: 4;
}

.save-work-dialog.is-open,
.point-name-dialog.is-open,
.area-name-dialog.is-open,
.parallel-distance-dialog.is-open,
.layer-properties-dialog.is-open,
.import-layer-dialog.is-open,
.coordinate-system-dialog.is-open,
.exit-confirm-dialog.is-open {
  display: grid;
}

.save-work-card,
.point-name-card,
.area-name-card,
.parallel-distance-card,
.layer-properties-card,
.import-layer-card,
.coordinate-system-card,
.exit-confirm-card {
  width: min(420px, calc(100% - 40px));
  padding: 20px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.save-work-card h3,
.point-name-card h3,
.area-name-card h3,
.parallel-distance-card h3,
.layer-properties-card h3,
.import-layer-card h3,
.coordinate-system-card h3,
.exit-confirm-card h3 {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.35;
}

.layer-properties-card {
  width: 500px;
  height: 500px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: stretch;
  padding: 0;
  text-align: left;
}

.layer-properties-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.layer-properties-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  text-align: left;
}

.layer-properties-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: #c73535;
  border: 0;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.layer-properties-dialog {
  place-items: start;
  padding-top: 10px;
  padding-left: 10px;
}

.import-layer-dialog {
  inset: 0;
  padding: clamp(6px, 1.2vmin, 14px);
  box-sizing: border-box;
}

.import-layer-dialog.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.import-layer-card {
  width: min(540px, var(--import-layer-available-w, 100%), 100%);
  max-width: 100%;
  max-height: var(--import-layer-available-h, 100%);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.import-layer-head {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--line);
}

.import-layer-head-text {
  min-width: 0;
}

.import-layer-head h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.import-layer-summary {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.import-layer-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 10px 2px;
  border-bottom: 1px solid var(--line);
}

.import-layer-presets:not([hidden]) + .import-layer-list {
  border-top: 0;
}

.import-layer-preset-btn {
  min-height: 20px;
  padding: 0 8px;
  font-size: 10px;
}

.import-layer-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 4px 6px 6px;
  scrollbar-gutter: stable;
}

.import-layer-head,
.import-layer-presets,
.import-layer-foot {
  flex: 0 0 auto;
}

.import-layer-groups {
  display: grid;
  gap: 2px;
}

.import-layer-group {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--panel) 92%, var(--ink) 8%);
}

.import-layer-group-head {
  display: grid;
  grid-template-columns: 14px 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 6px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: inherit;
  border-radius: 4px 4px 0 0;
}

.import-layer-group-head input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #17A110;
}

.import-layer-group-toggle {
  width: 16px;
  height: 16px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.import-layer-group-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.import-layer-group-meta {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.import-layer-group:not([data-open="true"]) .import-layer-group-body {
  display: none;
}

.import-layer-group-body {
  display: grid;
  gap: 0;
  padding: 0 0 2px;
}

.import-layer-option {
  display: grid;
  grid-template-columns: 12px 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  margin: 0;
  padding: 1px 6px 1px 10px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.15;
  cursor: pointer;
}

.import-layer-option:hover {
  background: color-mix(in srgb, var(--accent, #127fab) 8%, transparent);
}

.import-layer-option input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #17A110;
}

.import-layer-color {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.import-layer-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-layer-bulk-actions {
  display: flex;
  gap: 8px;
  margin-right: auto;
}

.import-layer-option-meta {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.import-layer-foot {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
}

.import-layer-foot .dialog-btn {
  min-height: 26px;
  padding: 0 14px;
}

.coordinate-system-card {
  width: min(560px, calc(100% - 40px));
  max-height: min(620px, calc(100% - 60px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  text-align: left;
}

.coordinate-system-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.coordinate-system-head h3 {
  margin: 0;
  font-size: 14px;
}

.coordinate-system-list {
  display: grid;
  gap: 4px;
  padding: 12px;
  overflow-y: auto;
}

.coordinate-system-item {
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  text-align: left;
}

.coordinate-system-item:hover,
.coordinate-system-item.is-active {
  border-color: rgba(142, 230, 168, 0.5);
  background: rgba(142, 230, 168, 0.14);
}

.coordinate-system-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coordinate-system-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.layer-properties-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.layer-form-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.layer-form-row input[type="text"] {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.layer-color-picker {
  position: relative;
  width: 60px;
  height: 30px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.layer-color-preview {
  position: absolute;
  inset: 0;
  display: block;
  background: #000000;
}

.layer-color-picker input {
  position: absolute;
  inset: 0;
  width: 60px;
  height: 30px;
  opacity: 0;
  cursor: pointer;
}

.layer-flag-options {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.layer-flag-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.layer-flag-option input {
  width: 14px;
  height: 14px;
  accent-color: #17A110;
}

.layer-properties-foot {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
}

.layer-properties-foot .dialog-btn {
  min-height: 26px;
  padding: 0 14px;
}

.point-name-card label,
.area-name-card label,
.parallel-distance-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.point-name-card input,
.area-name-card input,
.parallel-distance-card input {
  width: 100%;
  height: 36px;
  margin-bottom: 16px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
}

.save-work-actions,
.point-name-actions,
.area-name-actions,
.parallel-distance-actions,
.exit-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dialog-btn {
  min-width: 92px;
  min-height: 34px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.primary-dialog-btn {
  color: #fff;
  background: #127FAB;
  border-color: transparent;
}

.parallel-distance-dialog {
  position: absolute;
  top: 74px;
  left: 10px;
  inset: 74px auto auto 10px;
  display: none;
  place-items: initial;
  width: 230px;
  background: transparent;
  backdrop-filter: none;
  z-index: 5;
  pointer-events: none;
}

.parallel-distance-dialog.is-open {
  display: block;
}

.parallel-distance-card {
  width: 230px;
  padding: 10px;
  text-align: left;
  pointer-events: auto;
}

.parallel-distance-card h3 {
  margin: 0 0 8px;
  font-size: 12px;
}

.parallel-distance-card input {
  height: 30px;
  margin-bottom: 8px;
}

.parallel-distance-actions {
  justify-content: flex-start;
}

.parallel-distance-actions .dialog-btn {
  min-width: 68px;
  min-height: 28px;
  padding: 0 10px;
}

.map-tool-rail {
  position: absolute;
  top: 18px;
  right: 312px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  z-index: 2;
}

.rail-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  font-size: 17px;
}

.rail-btn:hover {
  border-color: var(--line);
  background: rgba(148, 163, 184, 0.12);
}

.command-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 282px;
  max-height: calc(100% - 36px);
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  border-radius: 16px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  z-index: 3;
}

.command-panel.is-collapsed {
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  opacity: 0;
}

.command-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.command-panel-head h2 {
  margin: 0;
}

.mini-close {
  width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.option-list label {
  grid-template-columns: auto 1fr;
  align-items: center;
  margin: 0;
  color: var(--ink);
}

.panel-action {
  width: 100%;
  min-height: 46px;
}

.bottom-status {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
  padding: 0 20px;
  color: var(--ink);
  background: var(--chrome);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.bottom-status span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-status b {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--green);
}

.feature-info,
.metrics,
.attribute-table-wrap {
  display: none;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-rows: 200px 1fr 34px;
  }

  .ribbon {
    grid-template-columns: 1fr auto;
    grid-template-rows: 46px 34px 120px;
  }

  .top-project-title {
    top: 27px;
    max-width: 44vw;
  }

  .ribbon-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .ribbon-tabs {
    grid-row: 3;
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto auto;
  }

  .ribbon {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 10px;
  }

  .top-project-title {
    position: static;
    transform: none;
    max-width: none;
    justify-self: stretch;
  }

  .top-controls,
  .ribbon-nav,
  .ribbon-tabs {
    grid-column: 1;
  }

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

  .layers-sidebar {
    max-height: none;
    height: auto;
    min-height: 120px;
  }

  .map-stage {
    min-height: 70vh;
  }

  .command-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    width: auto;
  }

  .map-tool-rail {
    right: 18px;
    top: 86px;
  }

  .bottom-status {
    flex-wrap: wrap;
    min-height: 44px;
    padding: 6px 12px;
    gap: 10px;
  }
}
