#astsv-app,
.astsv-login,
.astsv-login-page {
  --astsv-green: #174d32;
  --astsv-green-2: #2faa47;
  --astsv-ink: #17231d;
  --astsv-muted: #67746d;
  --astsv-line: #e4e9e6;
  --astsv-soft: #f4f7f5;
  --astsv-white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--astsv-ink);
  box-sizing: border-box;
}

#astsv-app *,
#astsv-app *::before,
#astsv-app *::after,
.astsv-login *,
.astsv-login-page *,
.astsv-login-page *::before,
.astsv-login-page *::after {
  box-sizing: border-box;
}

.astsv-login-page button,
.astsv-login-page input {
  font: inherit;
}

.astsv-login-page svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#astsv-app button,
#astsv-app input,
#astsv-app select,
#astsv-app textarea {
  font: inherit;
}

#astsv-app button {
  cursor: pointer;
}

#astsv-app svg:not(.leaflet-zoom-animated) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Leaflet renders areas and drawing previews inside a full-map SVG. Never apply
   the small icon dimensions above to that overlay. */
#astsv-app .leaflet-overlay-pane svg.leaflet-zoom-animated {
  width: auto;
  height: auto;
  fill: initial;
  stroke: initial;
  stroke-width: initial;
}

.astsv-login-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  width: min(1160px, calc(100vw - 32px));
  min-height: min(730px, calc(100vh - 64px));
  margin: 32px auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(13, 52, 33, .18);
}

.astsv-login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px 48px 34px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #0b3121 0%, #124c31 58%, #1a6139 100%);
}

.astsv-login-showcase::before,
.astsv-login-showcase::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.astsv-login-showcase::before {
  right: -130px;
  bottom: -150px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(144, 225, 118, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(144, 225, 118, .035), 0 0 0 140px rgba(144, 225, 118, .025);
}

.astsv-login-showcase::after {
  top: -90px;
  right: -70px;
  width: 290px;
  height: 220px;
  background: radial-gradient(circle, rgba(146,232,108,.25) 0 2px, transparent 2.5px) 0 0 / 18px 18px;
  opacity: .4;
  transform: rotate(18deg);
}

.astsv-login-brand,
.astsv-login-mobile-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.astsv-login-brand > span,
.astsv-login-mobile-brand > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #103723;
  font-size: 24px;
  font-style: italic;
  font-weight: 950;
  background: linear-gradient(145deg, #9aea78, #64c94f);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.astsv-login-brand strong,
.astsv-login-brand small,
.astsv-login-mobile-brand strong,
.astsv-login-mobile-brand small {
  display: block;
}

.astsv-login-brand strong { color: #fff; font-size: 15px; letter-spacing: -.01em; }
.astsv-login-brand small { margin-top: 2px; color: #9bc5ac; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }

.astsv-login-copy {
  position: relative;
  z-index: 1;
  margin-top: 48px;
}

.astsv-login-copy > em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #bce7c6;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
}

.astsv-login-copy > em i {
  width: 7px;
  height: 7px;
  background: #86e168;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(134,225,104,.13);
}

.astsv-login-copy h1 {
  max-width: 560px;
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4vw, 53px);
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.astsv-login-copy p {
  max-width: 510px;
  margin: 0;
  color: #bad1c2;
  font-size: 12px;
  line-height: 1.65;
}

.astsv-login-map {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  margin-top: 34px;
  overflow: hidden;
  color: #21392b;
  background: #f8fbf9;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(3,24,14,.26);
  transform: rotate(-1.2deg);
}

.astsv-login-map__top {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #e5ebe7;
}

.astsv-login-map__top > span { display: flex; gap: 5px; }
.astsv-login-map__top > span i { width: 7px; height: 7px; background: #d5ddd8; border-radius: 50%; }
.astsv-login-map__top > span i:first-child { background: #7ed766; }
.astsv-login-map__top b { font-size: 9px; }
.astsv-login-map__top small { color: #7c8b82; font-size: 8px; }

.astsv-login-map__canvas {
  position: relative;
  height: 150px;
  overflow: hidden;
  background-color: #dcebdd;
  background-image: linear-gradient(rgba(93,129,105,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(93,129,105,.08) 1px, transparent 1px);
  background-size: 26px 26px;
}

.astsv-login-road { position: absolute; height: 16px; background: #f9fbfa; border: 1px solid #cdd8d1; box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.astsv-login-road::after { content: ""; position: absolute; top: 7px; right: 0; left: 0; border-top: 1px dashed #a9b8af; }
.astsv-login-road.road-a { top: 60px; right: -25px; left: -30px; transform: rotate(8deg); }
.astsv-login-road.road-b { top: 8px; left: 125px; width: 17px; height: 180px; transform: rotate(18deg); }
.astsv-login-road.road-c { right: 34px; bottom: 18px; width: 170px; transform: rotate(-30deg); }
.astsv-login-zone { position: absolute; top: 24px; left: 43px; width: 130px; height: 88px; background: rgba(47,170,71,.18); border: 2px dashed #2faa47; border-radius: 9px; transform: rotate(3deg); }
.astsv-login-zone span { position: absolute; top: 6px; left: 7px; padding: 3px 6px; color: #196432; font-size: 7px; font-weight: 850; background: #eaf7ed; border-radius: 5px; }
.astsv-login-pin { position: absolute; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; font-size: 9px; font-style: normal; font-weight: 900; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(31,63,43,.25); }
.astsv-login-pin.pin-a { top: 47px; left: 82px; background: #e89a1f; }
.astsv-login-pin.pin-b { top: 87px; left: 210px; background: #ec3f65; }
.astsv-login-pin.pin-c { right: 65px; bottom: 25px; background: #7354c9; }
.astsv-login-map__stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 12px; background: #fff; }
.astsv-login-map__stats span { padding: 0 10px; border-right: 1px solid #e8ece9; }
.astsv-login-map__stats span:last-child { border: 0; }
.astsv-login-map__stats b,
.astsv-login-map__stats small { display: block; }
.astsv-login-map__stats b { color: #174d32; font-size: 12px; }
.astsv-login-map__stats small { margin-top: 2px; color: #819087; font-size: 7px; }

.astsv-login-trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 26px;
  color: #b9d6c3;
  font-size: 8px;
  font-weight: 700;
}

.astsv-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 42px 52px 26px;
  background: radial-gradient(circle at 100% 0, #e9f7ed 0, transparent 32%), #f8faf9;
}

.astsv-login-mobile-brand { display: none; }

.astsv-login-card-new {
  width: min(410px, 100%);
  margin: auto;
  padding: 32px;
  background: rgba(255,255,255,.94);
  border: 1px solid #e0e7e2;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(18,63,39,.09);
}

.astsv-login-heading > span {
  display: inline-flex;
  padding: 5px 8px;
  color: #27783f;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: #e6f5ea;
  border-radius: 12px;
}

.astsv-login-heading h2 { margin: 13px 0 5px; color: #14261c; font-size: 27px; letter-spacing: -.035em; }
.astsv-login-heading p { margin: 0; color: #718078; font-size: 10px; line-height: 1.5; }

.astsv-login-alert {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 10px;
  color: #8f3026;
  font-size: 9px;
  background: #fff0ee;
  border: 1px solid #f4d0cb;
  border-radius: 9px;
}

.astsv-login-alert b { display: grid; place-items: center; width: 23px; height: 23px; color: #fff; background: #cf4a3d; border-radius: 50%; }

.astsv-login-form { margin-top: 22px; }
.astsv-login-form > label { display: block; margin-bottom: 14px; }
.astsv-login-form > label > span { display: block; margin-bottom: 6px; color: #3f4f46; font-size: 9px; font-weight: 780; }
.astsv-login-input { display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 8px; min-height: 46px; padding: 0 11px; color: #718078; background: #f8faf9; border: 1px solid #dbe3de; border-radius: 10px; transition: .18s ease; }
.astsv-login-input:focus-within { color: #2d8c49; background: #fff; border-color: #4daf63; box-shadow: 0 0 0 3px rgba(47,170,71,.10); }
.astsv-login-input > svg { width: 17px; height: 17px; }
.astsv-login-input input { width: 100%; min-width: 0; height: 43px; padding: 0; color: #24332b; font-size: 10px; background: transparent; border: 0; outline: 0; box-shadow: none; }
.astsv-login-input input::placeholder { color: #a0aaa4; }
.astsv-login-input button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: #78867e; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.astsv-login-input button:hover,
.astsv-login-input button.is-visible { color: #24783c; background: #e8f5eb; }
.astsv-login-input button svg { width: 17px; height: 17px; }

.astsv-login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 1px 0 18px; }
.astsv-login-options > label { display: inline-flex; align-items: center; gap: 7px; color: #5f6d65; font-size: 9px; cursor: pointer; }
.astsv-login-options input { width: 14px; height: 14px; margin: 0; accent-color: #2faa47; }
.astsv-login-options a { color: #24783c; font-size: 9px; font-weight: 750; text-decoration: none; }
.astsv-login-options a:hover { text-decoration: underline; }

.astsv-login-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 47px; padding: 10px 15px; color: #fff; font-size: 10px; font-weight: 820; background: linear-gradient(135deg, #2faa47, #23843b); border: 0; border-radius: 10px; box-shadow: 0 10px 24px rgba(47,170,71,.23); cursor: pointer; transition: .18s ease; }
.astsv-login-submit:hover { box-shadow: 0 13px 28px rgba(47,170,71,.30); transform: translateY(-1px); }
.astsv-login-submit:disabled { opacity: .68; cursor: wait; transform: none; }
.astsv-login-submit svg { width: 17px; height: 17px; transition: transform .18s ease; }
.astsv-login-submit:hover svg { transform: translateX(3px); }

.astsv-login-security { display: flex; align-items: center; gap: 9px; margin-top: 19px; padding-top: 16px; color: #64736a; border-top: 1px solid #e7ece9; }
.astsv-login-security > svg { flex: 0 0 auto; width: 23px; height: 23px; color: #409456; }
.astsv-login-security strong,
.astsv-login-security small { display: block; }
.astsv-login-security strong { color: #415047; font-size: 8px; }
.astsv-login-security small { margin-top: 2px; color: #8a958e; font-size: 7px; }
.astsv-login-footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 19px auto 0; color: #738078; font-size: 9px; font-weight: 750; text-align: center; }
.astsv-login-footer img { width: 24px; height: 24px; object-fit: contain; }

.astsv-loading,
.astsv-error,
.astsv-login {
  max-width: 480px;
  margin: 70px auto;
  padding: 42px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--astsv-line, #e4e9e6);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(23, 77, 50, .12);
}

.astsv-loading::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 16px;
  border: 3px solid #e2ebe5;
  border-top-color: #2faa47;
  border-radius: 50%;
  animation: astsv-spin .7s linear infinite;
}

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

.astsv-error span,
.astsv-login > svg {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  color: #cc422e;
  background: #fff0ed;
  border-radius: 16px;
}

.astsv-login h2,
.astsv-error h3 {
  margin: 0 0 8px;
  color: #17231d;
}

.astsv-login__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  background: linear-gradient(145deg, #174d32, #2faa47);
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(47, 170, 71, .24);
}

.astsv-login--denied .astsv-login__mark {
  background: linear-gradient(145deg, #8f2f26, #db604f);
  box-shadow: 0 10px 24px rgba(180, 60, 49, .20);
}

.astsv-loading > span,
.astsv-loading > div {
  display: none;
}

.astsv-login p,
.astsv-error p {
  color: #67746d;
}

.astsv-login a,
.astsv-error button {
  display: inline-flex;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  background: #174d32;
  border: 0;
  border-radius: 10px;
}

.astsv-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 780px;
  overflow: hidden;
  background: #f4f7f5;
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(20, 50, 33, .11);
}

.astsv-sidebar {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: #dce9e1;
  background: linear-gradient(180deg, #123b28, #0b2f20 72%, #09271b);
}

.astsv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.astsv-brand > b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #123b28;
  font-size: 23px;
  font-style: italic;
  background: #7bd455;
  border-radius: 12px;
}

.astsv-brand > img { width: 44px; height: 44px; padding: 4px; object-fit: contain; background: #fff; border-radius: 12px; }

.astsv-brand span,
.astsv-user span,
.astsv-heading > div:first-child,
.astsv-location span,
.astsv-selected-user span {
  min-width: 0;
}

.astsv-brand strong,
.astsv-brand small,
.astsv-user strong,
.astsv-user small {
  display: block;
}

.astsv-brand strong { color: #fff; font-size: 14px; }
.astsv-brand small { margin-top: 2px; color: #94ad9e; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }

.astsv-sidebar nav {
  flex: 1;
  min-height: 0;
  padding: 22px 12px;
  overflow-y: auto;
}

.astsv-sidebar nav em {
  display: block;
  margin: 25px 12px 9px;
  color: #789886;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.astsv-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 3px 0;
  padding: 12px 13px;
  color: #c7d8ce;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition: .18s ease;
}

.astsv-sidebar nav button:hover,
.astsv-sidebar nav button.active {
  color: #fff;
  background: rgba(123, 212, 85, .14);
}

.astsv-sidebar nav button.active { box-shadow: inset 3px 0 #78d45a; }
.astsv-sidebar nav button svg { width: 18px; }
.astsv-sidebar nav button span { flex: 1; font-size: 13px; font-weight: 650; }
.astsv-sidebar nav button i { min-width: 22px; padding: 2px 5px; color: #123b28; font-size: 10px; font-style: normal; font-weight: 800; text-align: center; background: #7bd455; border-radius: 10px; }

.astsv-vendor-brand { display: flex; align-items: center; gap: 9px; margin: 0 12px 10px; padding: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.astsv-vendor-brand img { flex: 0 0 auto; width: 30px; height: 30px; padding: 3px; object-fit: contain; background: #fff; border-radius: 8px; }
.astsv-vendor-brand span,
.astsv-vendor-brand strong,
.astsv-vendor-brand small { display: block; min-width: 0; }
.astsv-vendor-brand strong { color: #f3faf5; font-size: 9px; line-height: 1.25; }
.astsv-vendor-brand small { margin-top: 2px; color: #83a291; font-size: 7px; }

.astsv-user {
  display: grid;
  grid-template-columns: 36px 1fr 30px;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.astsv-user > i,
.astsv-selected-user > i,
.astsv-user-cell > i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: #15432d;
  font-style: normal;
  font-weight: 850;
  background: #a5e58a;
  border-radius: 50%;
}

.astsv-user strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.astsv-user small { margin-top: 2px; color: #88a595; font-size: 10px; }
.astsv-user a { display: grid; place-items: center; width: 30px; height: 30px; color: #91aa9b; border-radius: 8px; }
.astsv-user a:hover { color: #fff; background: rgba(255,255,255,.1); }

.astsv-workspace {
  min-width: 0;
  background: #f4f7f5;
}

.astsv-topbar {
  position: relative;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--astsv-line);
}

.astsv-topbar label { margin-right: auto; }
.astsv-topbar label small { display: block; margin-bottom: 2px; color: #829087; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.astsv-topbar select { min-width: 260px; padding: 7px 30px 7px 0; color: #17231d; font-weight: 750; background: #fff; border: 0; outline: 0; }

.astsv-role {
  padding: 6px 10px;
  color: #315f47;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
  background: #e8f5eb;
  border-radius: 20px;
}

.astsv-refresh,
.astsv-mobile-menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #516158;
  background: #fff;
  border: 1px solid var(--astsv-line);
  border-radius: 10px;
}

.astsv-mobile-menu { display: none; }

.astsv-primary,
.astsv-secondary,
.astsv-heading button,
.astsv-modal footer button,
.astsv-admin-grid header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
}

.astsv-primary {
  color: #fff !important;
  background: var(--astsv-green-2) !important;
  border: 1px solid var(--astsv-green-2) !important;
  box-shadow: 0 7px 18px rgba(47, 170, 71, .18);
}

.astsv-primary:hover { filter: brightness(.95); transform: translateY(-1px); }
.astsv-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.astsv-secondary { color: var(--astsv-green); background: #fff; border: 1px solid #cbd9d0; }

.astsv-page { padding: 26px; }

.astsv-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.astsv-heading > div:last-child { display: flex; gap: 9px; }
.astsv-heading small { color: var(--astsv-green-2); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.astsv-heading h1 { margin: 4px 0 3px; color: #12251b; font-size: clamp(23px, 2.4vw, 32px); line-height: 1.15; }
.astsv-heading p { margin: 0; color: var(--astsv-muted); font-size: 12px; }

.astsv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.astsv-stats article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--astsv-line);
  border-radius: 13px;
}

.astsv-stats article > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.astsv-stats article > i.green { color: #22833b; background: #e8f7eb; }
.astsv-stats article > i.amber { color: #b4720a; background: #fff3d9; }
.astsv-stats article > i.blue { color: #2b68b7; background: #eaf2ff; }
.astsv-stats article > i.purple { color: #7354c9; background: #f0ebff; }
.astsv-stats article strong,
.astsv-stats article small { display: block; }
.astsv-stats article strong { color: #15251d; font-size: 21px; line-height: 1; }
.astsv-stats article small { margin-top: 5px; overflow: hidden; color: var(--astsv-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.astsv-map-card,
.astsv-record-filter,
.astsv-admin-grid > section,
.astsv-users {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--astsv-line);
  border-radius: 15px;
}

.astsv-toolbar,
.astsv-record-filter {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 210px 170px;
  gap: 10px;
  padding: 13px;
}

.astsv-toolbar label,
.astsv-record-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 11px;
  color: #77847d;
  background: #f7f9f8;
  border: 1px solid #e5eae7;
  border-radius: 9px;
}

.astsv-toolbar input,
.astsv-toolbar select,
.astsv-record-filter input,
.astsv-record-filter select {
  width: 100%;
  min-width: 0;
  height: 39px;
  color: #34423a;
  font-size: 11px;
  background: transparent;
  border: 0;
  outline: 0;
}

.astsv-record-filter { margin-bottom: 15px; }
.astsv-record-filter > select,
.astsv-record-filter > input { padding: 0 11px; background: #f7f9f8; border: 1px solid #e5eae7; border-radius: 9px; }

.astsv-pick { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 15px; color: #174d32; font-size: 12px; font-weight: 750; background: #eaf7ed; border-top: 1px solid #d8eddd; }
.astsv-pick > span { display: grid; grid-template-columns: 24px 1fr; align-items: center; column-gap: 8px; }
.astsv-pick > span svg { grid-row: 1 / 3; }
.astsv-pick > span b { font-size: 11px; }
.astsv-pick > span small { margin-top: 2px; color: #688071; font-size: 9px; font-weight: 500; }
.astsv-pick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.astsv-pick button { padding: 7px 10px; color: #174d32; font-size: 9px; font-weight: 800; background: #fff; border: 1px solid #bad8c4; border-radius: 7px; }
.astsv-pick button.primary { color: #fff; background: #2faa47; border-color: #2faa47; }

.astsv-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  border-top: 1px solid var(--astsv-line);
}

#astsv-map { z-index: 1; width: 100%; height: 560px; background: #eaf0ec; }
.astsv-map-card.is-record #astsv-map { cursor: crosshair; }
.astsv-map-card.is-record #astsv-map::after { content: "Click inside the highlighted area"; position: absolute; z-index: 500; left: 50%; bottom: 22px; padding: 8px 12px; color: #fff; font-size: 9px; font-weight: 800; white-space: nowrap; background: rgba(17, 61, 39, .88); border-radius: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.18); pointer-events: none; transform: translateX(-50%); }
.astsv-map-card.is-area #astsv-map { cursor: crosshair; }

.astsv-map-grid > aside { padding: 14px 11px; background: #fbfcfb; border-left: 1px solid var(--astsv-line); }
.astsv-map-grid > aside header { display: flex; justify-content: space-between; padding: 3px 6px 11px; }
.astsv-map-grid > aside header strong { font-size: 11px; }
.astsv-map-grid > aside header small { color: var(--astsv-muted); font-size: 9px; }
.astsv-map-grid > aside > button { display: grid; grid-template-columns: 28px 1fr 20px; align-items: center; gap: 8px; width: 100%; padding: 8px 6px; color: #425148; text-align: left; background: transparent; border: 0; border-radius: 8px; }
.astsv-map-grid > aside > button:hover { background: #eef4f0; }
.astsv-map-grid > aside > button i { display: grid; place-items: center; width: 25px; height: 25px; color: #fff; font-size: 12px; font-style: normal; font-weight: 900; border-radius: 7px; }
.astsv-map-grid > aside > button span { overflow: hidden; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.astsv-map-grid > aside > button b { color: #89948d; font-size: 9px; text-align: right; }

.astsv-area-legend { margin: 14px 5px 0; padding-top: 12px; border-top: 1px solid var(--astsv-line); }
.astsv-area-legend > strong { display: block; margin-bottom: 8px; font-size: 10px; }
.astsv-area-focus { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 7px; width: 100%; margin: 4px 0; padding: 7px; color: #5d6b63; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 7px; }
.astsv-area-focus:hover,
.astsv-area-focus.active { color: #174d32; background: #eaf7ed; border-color: #cde5d4; }
.astsv-area-focus i { width: 10px; height: 10px; border-radius: 3px; }
.astsv-area-focus span { overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.astsv-area-focus b { color: #70917d; font-size: 8px; }

.astsv-pin { position: relative; display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--pin); border: 3px solid #fff; border-radius: 50% 50% 50% 8px; box-shadow: 0 5px 15px rgba(20,35,27,.28); transform: rotate(-45deg); }
.astsv-pin span { font-size: 12px; font-weight: 900; transform: rotate(45deg); }
.astsv-tooltip { display: grid; min-width: 170px; padding: 2px; }
.astsv-tooltip small { color: #269347; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.astsv-tooltip strong { margin: 2px 0; color: #17231d; font-size: 11px; }
.astsv-tooltip span { color: #748078; font-size: 9px; }
.leaflet-tooltip { border: 0 !important; border-radius: 8px !important; box-shadow: 0 7px 24px rgba(20,35,27,.2) !important; }

.astsv-records {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.astsv-record-card {
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--astsv-line);
  border-radius: 14px;
  transition: .18s ease;
}

.astsv-record-card:hover { border-color: #bcd3c3; box-shadow: 0 14px 35px rgba(20,50,33,.10); transform: translateY(-2px); }
.astsv-record-thumb { position: relative; height: 150px; overflow: hidden; background: #eef2ef; }
.astsv-record-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.astsv-record-thumb > span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 42px; font-weight: 900; }
.astsv-record-thumb > i { position: absolute; left: 10px; bottom: 10px; padding: 5px 7px; color: #fff; font-size: 8px; font-style: normal; font-weight: 800; background: rgba(18,35,27,.82); border-radius: 5px; }
.astsv-record-body { padding: 13px; }
.astsv-record-body > small { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #8a958e; font-size: 8px; }
.astsv-record-body > small b { padding: 3px 6px; color: #1d7b39; text-transform: uppercase; background: #e8f7eb; border-radius: 10px; }
.astsv-record-body > small b.active { color: #b64a20; background: #fff0e6; }
.astsv-record-body h3 { margin: 9px 0 5px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.astsv-record-body p { min-height: 31px; margin: 0 0 11px; overflow: hidden; color: var(--astsv-muted); font-size: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.astsv-record-body > span { display: flex; align-items: center; gap: 5px; color: #728078; font-size: 9px; }
.astsv-record-body > span svg { width: 13px; height: 13px; }

.astsv-empty { grid-column: 1 / -1; margin: 0; padding: 50px 20px; color: #7b8880; text-align: center; }

.astsv-admin-grid { display: grid; grid-template-columns: minmax(290px, .8fr) minmax(380px, 1.4fr); gap: 15px; }
.astsv-admin-grid > section > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border-bottom: 1px solid var(--astsv-line); }
.astsv-admin-grid > section > header strong,
.astsv-admin-grid > section > header small { display: block; }
.astsv-admin-grid > section > header strong { font-size: 12px; }
.astsv-admin-grid > section > header small { margin-top: 2px; color: var(--astsv-muted); font-size: 9px; }
.astsv-admin-grid > section > header button { color: #174d32; background: #f1f7f3; border: 1px solid #d7e5db; }
.astsv-project-row { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid #eef1ef; }
.astsv-project-row:hover,
.astsv-project-row.active { background: #edf7f0; }
.astsv-project-row > button { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; min-width: 0; padding: 13px 15px; color: #324039; text-align: left; background: transparent; border: 0; }
.astsv-project-row > button > i { display: grid; place-items: center; width: 36px; height: 36px; color: #174d32; font-size: 10px; font-style: normal; font-weight: 900; background: #d9efdf; border-radius: 10px; }
.astsv-project-row > button span strong,
.astsv-project-row > button span small { display: block; }
.astsv-project-row > button span strong { font-size: 11px; }
.astsv-project-row > button span small { margin-top: 4px; color: var(--astsv-muted); font-size: 8px; }
.astsv-project-row > span { display: flex; padding-right: 9px; }
.astsv-project-row > span button,
.astsv-area-list article > div button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #547061; background: transparent; border: 0; border-radius: 7px; }
.astsv-project-row > span button:hover,
.astsv-area-list article > div button:hover { background: #fff; }
.astsv-project-row > span button.danger,
.astsv-area-list article > div button.danger { color: #b33e32; }
.astsv-project-row svg,
.astsv-area-list article > div svg { width: 15px; height: 15px; }

.astsv-area-list article { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: start; gap: 11px; padding: 15px; border-bottom: 1px solid #eef1ef; }
.astsv-area-list article > i { width: 10px; height: 50px; border-radius: 4px; }
.astsv-area-list article strong { font-size: 11px; }
.astsv-area-list article p { margin: 3px 0; color: var(--astsv-muted); font-size: 9px; }
.astsv-area-list article small { color: #98a29c; font-size: 8px; }
.astsv-area-list article > b { padding: 4px 7px; color: #5f6d65; font-size: 8px; background: #f0f3f1; border-radius: 8px; }
.astsv-area-list article > div { display: flex; }

.astsv-users > header,
.astsv-users > button { display: grid; grid-template-columns: 1.1fr .55fr 1.5fr .4fr; align-items: center; gap: 13px; width: 100%; }
.astsv-users > header { padding: 11px 16px; color: #87928b; font-size: 9px; font-weight: 800; text-transform: uppercase; background: #f8faf9; border-bottom: 1px solid var(--astsv-line); }
.astsv-users > button { padding: 13px 16px; color: #34423a; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #eef1ef; }
.astsv-users > button:hover { background: #f6faf7; }
.astsv-user-cell { display: flex; align-items: center; gap: 10px; }
.astsv-user-cell b strong,
.astsv-user-cell b small { display: block; }
.astsv-user-cell b strong { font-size: 11px; }
.astsv-user-cell b small { margin-top: 3px; color: var(--astsv-muted); font-size: 8px; font-weight: 400; }
.astsv-users em { display: inline-flex; padding: 4px 7px; font-size: 8px; font-style: normal; border-radius: 8px; }
.astsv-users .role-admin { color: #6141b0; background: #eee8ff; }
.astsv-users .role-user { color: #276a40; background: #e3f4e8; }
.astsv-users .role-super { color: #7d4b00; background: #fff1cc; }
.astsv-users .status-active { color: #247c3c; background: #e3f5e8; }
.astsv-users .status-inactive { color: #a43a2e; background: #ffebe8; }
.astsv-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.astsv-tags em { color: #4e5c54; background: #fff; border: 1px solid #dce5df; }
.astsv-tags small { color: #929d96; font-size: 8px; }
.astsv-users > button > span:nth-child(3) { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.astsv-position-chip { color: #385d48; background: #edf4ef; border: 1px solid #d8e6dc; }

.astsv-client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.astsv-client-grid > article { overflow: hidden; background: #fff; border: 1px solid var(--astsv-line); border-radius: 15px; }
.astsv-client-grid article > header { display: flex; align-items: center; gap: 11px; padding: 15px; border-bottom: 1px solid #eef1ef; }
.astsv-client-grid header > img,
.astsv-client-grid header > i { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 4px; object-fit: contain; color: #174d32; font-style: normal; font-weight: 900; background: #e2f3e7; border-radius: 11px; }
.astsv-client-grid header > span { min-width: 0; flex: 1; }
.astsv-client-grid header strong,
.astsv-client-grid header small { display: block; }
.astsv-client-grid header strong { font-size: 12px; }
.astsv-client-grid header small { margin-top: 3px; color: var(--astsv-muted); font-size: 9px; }
.astsv-client-grid header em { padding: 4px 7px; font-size: 8px; font-style: normal; text-transform: capitalize; border-radius: 10px; }
.astsv-client-grid header em.active { color: #247c3c; background: #e3f5e8; }
.astsv-client-grid header em.inactive { color: #a43a2e; background: #ffebe8; }
.astsv-client-grid article > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 15px; }
.astsv-client-grid article > div span { padding: 9px; background: #f7f9f8; border-radius: 8px; }
.astsv-client-grid article > div small,
.astsv-client-grid article > div b { display: block; }
.astsv-client-grid article > div small { color: var(--astsv-muted); font-size: 8px; }
.astsv-client-grid article > div b { margin-top: 3px; font-size: 10px; }
.astsv-client-grid article > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 11px 15px; background: #fbfcfb; border-top: 1px solid #eef1ef; }
.astsv-client-grid footer button { display: flex; align-items: center; gap: 5px; padding: 7px 9px; color: #285a3c; font-size: 9px; font-weight: 750; background: #fff; border: 1px solid #d8e3dc; border-radius: 7px; }
.astsv-client-grid footer svg { width: 14px; height: 14px; }

.astsv-company-select { display: grid; gap: 4px; }
.astsv-company-select span { color: var(--astsv-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.astsv-company-select select { min-width: 230px; padding: 8px 10px; background: #fff; border: 1px solid #d8e2dc; border-radius: 8px; }
.astsv-company-profile { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .7fr); gap: 15px; padding: 20px; background: #fff; border: 1px solid var(--astsv-line); border-radius: 15px; }
.astsv-company-profile > section { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--astsv-line); }
.astsv-company-logo-preview { display: grid; place-items: center; flex: 0 0 auto; width: 76px; height: 76px; padding: 7px; color: #174d32; font-size: 28px; font-weight: 900; background: #edf7f0; border: 1px solid #d9e9de; border-radius: 16px; }
.astsv-company-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.astsv-company-profile h2 { margin: 0; font-size: 20px; }
.astsv-company-profile p { margin: 5px 0 0; color: var(--astsv-muted); font-size: 10px; }
.astsv-company-profile form { padding-right: 20px; border-right: 1px solid var(--astsv-line); }
.astsv-company-profile form footer { display: flex; justify-content: flex-end; margin-top: 15px; }
.astsv-company-profile label small { display: block; margin-top: 5px; color: var(--astsv-muted); font-size: 8px; }
.astsv-company-profile aside { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px; }
.astsv-company-profile aside > strong { width: 100%; margin-bottom: 3px; font-size: 11px; }
.astsv-company-profile aside span { display: flex; align-items: center; gap: 5px; padding: 7px 8px; color: #385d48; font-size: 9px; background: #edf4ef; border-radius: 7px; }
.astsv-company-profile aside svg { width: 13px; height: 13px; }

.astsv-activity { overflow: hidden; background: #fff; border: 1px solid var(--astsv-line); border-radius: 15px; }
.astsv-activity > header,
.astsv-activity > article { display: grid; grid-template-columns: 1.1fr .45fr 1.3fr .8fr; align-items: center; gap: 12px; padding: 12px 15px; }
.astsv-activity > header { color: #87928b; font-size: 8px; font-weight: 800; text-transform: uppercase; background: #f8faf9; border-bottom: 1px solid var(--astsv-line); }
.astsv-activity > article { border-bottom: 1px solid #eef1ef; }
.astsv-activity article strong,
.astsv-activity article small { display: block; }
.astsv-activity article strong { font-size: 10px; }
.astsv-activity article small { margin-top: 3px; color: var(--astsv-muted); font-size: 8px; }
.astsv-activity article > span:last-child { color: #526159; font-size: 9px; }
.astsv-activity article > em { width: max-content; padding: 4px 7px; font-size: 8px; font-style: normal; text-transform: capitalize; border-radius: 9px; }
.astsv-activity .action-created { color: #247c3c; background: #e3f5e8; }
.astsv-activity .action-edited { color: #755a00; background: #fff3c9; }
.astsv-activity .action-deleted { color: #a43a2e; background: #ffebe8; }

.astsv-form-divider { padding: 14px 0 2px; border-top: 1px solid var(--astsv-line); }
.astsv-form-divider strong,
.astsv-form-divider small { display: block; }
.astsv-form-divider strong { font-size: 11px; }
.astsv-form-divider small { margin-top: 3px; color: var(--astsv-muted); font-size: 8px; }
.astsv-modal-select { display: grid; gap: 5px; margin-bottom: 13px; }
.astsv-modal-select span { color: #415047; font-size: 9px; font-weight: 750; }
.astsv-modal-select select,
.astsv-inline-form input { width: 100%; padding: 10px 11px; border: 1px solid #dce3df; border-radius: 8px; }
.astsv-inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.astsv-position-list { margin-top: 14px; border: 1px solid var(--astsv-line); border-radius: 9px; }
.astsv-position-list article { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eef1ef; }
.astsv-position-list article:last-child { border-bottom: 0; }
.astsv-position-list article span { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.astsv-position-list article svg { width: 15px; height: 15px; }
.astsv-position-list article button { display: grid; place-items: center; width: 28px; height: 28px; color: #a43a2e; background: #fff4f2; border: 0; border-radius: 6px; }
.astsv-position-list > p { margin: 0; padding: 25px; color: var(--astsv-muted); font-size: 9px; text-align: center; }

.astsv-modal-backdrop {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 26, 17, .68);
  backdrop-filter: blur(4px);
}

.astsv-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.astsv-modal > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 19px 21px; background: #fff; border-bottom: 1px solid var(--astsv-line); }
.astsv-modal > header h2 { margin: 0; color: #16251d; font-size: 18px; line-height: 1.25; }
.astsv-modal > header p { margin: 4px 0 0; color: var(--astsv-muted); font-size: 10px; }
.astsv-modal > header button { display: grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; color: #69766e; background: #f2f5f3; border: 0; border-radius: 50%; }
.astsv-modal-body { padding: 20px 21px; }
.astsv-modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 21px; background: #fbfcfb; border-top: 1px solid var(--astsv-line); }
.astsv-modal footer button { color: #4c5a52; background: #fff; border: 1px solid #d9e1dc; }

.astsv-location,
.astsv-selected-user { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; color: #215a38; background: #edf7f0; border: 1px solid #d8ebdd; border-radius: 11px; }
.astsv-location > svg { flex: 0 0 auto; }
.astsv-location strong,
.astsv-location small,
.astsv-selected-user strong,
.astsv-selected-user small { display: block; }
.astsv-location strong,
.astsv-selected-user strong { font-size: 11px; }
.astsv-location small,
.astsv-selected-user small { margin-top: 3px; color: #688071; font-size: 9px; }

.astsv-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.astsv-form-grid label { min-width: 0; }
.astsv-form-grid label.full { grid-column: 1 / -1; }
.astsv-form-grid label > span { display: block; margin-bottom: 6px; color: #415047; font-size: 9px; font-weight: 750; }
.astsv-form-grid input,
.astsv-form-grid select,
.astsv-form-grid textarea { width: 100%; padding: 10px 11px; color: #25342c; font-size: 11px; background: #fff; border: 1px solid #dce3df; border-radius: 8px; outline: 0; }
.astsv-form-grid input:focus,
.astsv-form-grid select:focus,
.astsv-form-grid textarea:focus { border-color: #5bb56f; box-shadow: 0 0 0 3px rgba(47, 170, 71, .10); }

.astsv-map-method-title { margin: 19px 0 10px; padding-top: 16px; border-top: 1px solid var(--astsv-line); }
.astsv-map-method-title strong,
.astsv-map-method-title small { display: block; }
.astsv-map-method-title strong { font-size: 11px; }
.astsv-map-method-title small { margin-top: 3px; color: var(--astsv-muted); font-size: 9px; }

.astsv-map-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.astsv-map-methods > label { position: relative; cursor: pointer; }
.astsv-map-methods > label > input { position: absolute; opacity: 0; pointer-events: none; }
.astsv-map-methods > label > span { display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; min-height: 83px; padding: 12px; color: #445249; background: #f8faf9; border: 2px solid #e1e7e3; border-radius: 11px; transition: .18s ease; }
.astsv-map-methods > label > input:checked + span { color: #174d32; background: #edf8f0; border-color: #2faa47; box-shadow: 0 0 0 3px rgba(47,170,71,.09); }
.astsv-map-methods span > svg { grid-row: 1 / 3; align-self: center; width: 25px; height: 25px; }
.astsv-map-methods span > b { align-self: end; font-size: 10px; }
.astsv-map-methods span > small { align-self: start; margin-top: 3px; color: #758279; font-size: 8px; line-height: 1.45; }
.astsv-map-settings { margin-top: 12px; padding: 13px; background: #f8faf9; border: 1px solid #e3e8e5; border-radius: 11px; }
.astsv-map-settings[hidden] { display: none !important; }

.astsv-plan-upload { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; gap: 8px; }
.astsv-plan-upload > label { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 58px; padding: 10px; color: #456052; background: #fff; border: 1px dashed #bfd1c5; border-radius: 9px; }
.astsv-plan-upload > label:first-child { cursor: pointer; }
.astsv-plan-upload > label > svg { flex: 0 0 auto; }
.astsv-plan-upload strong,
.astsv-plan-upload small { display: block; }
.astsv-plan-upload strong { font-size: 9px; }
.astsv-plan-upload small { margin-top: 3px; color: #829088; font-size: 8px; }
.astsv-plan-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.astsv-plan-upload input[type=url] { width: 100%; min-width: 0; padding: 9px; font-size: 9px; border: 1px solid #dce3df; border-radius: 7px; outline: 0; }
.astsv-plan-upload > b { color: #9aa59e; font-size: 8px; text-align: center; }
#astsv-plan-preview { display: grid; place-items: center; min-height: 150px; margin-top: 10px; overflow: hidden; color: #859189; background: #edf1ee; border-radius: 9px; }
#astsv-plan-preview > span { display: flex; align-items: center; gap: 7px; font-size: 9px; }
#astsv-plan-preview img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #fff; }

.astsv-map-error { display: grid; place-items: center; width: 100%; height: 100%; padding: 30px; color: #a8382d; font-size: 12px; font-weight: 750; text-align: center; background: #fff4f2; }
.astsv-area-label { padding: 7px 10px !important; color: #8a3c00 !important; font-size: 9px !important; font-weight: 850 !important; text-align: center; background: #fff3d6 !important; border: 2px solid #ff9a20 !important; box-shadow: 0 6px 18px rgba(108,58,0,.18) !important; }
.astsv-area-label::before { display: none !important; }

.astsv-form-title { display: flex; justify-content: space-between; gap: 15px; margin: 19px 0 9px; padding-top: 15px; border-top: 1px solid var(--astsv-line); }
.astsv-form-title strong,
.astsv-form-title small { display: block; }
.astsv-form-title strong { font-size: 11px; }
.astsv-form-title small { margin-top: 2px; color: var(--astsv-muted); font-size: 9px; }
.astsv-form-title > i { color: #7e8b83; font-size: 8px; font-style: normal; }

.astsv-media-row { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 8px; margin-bottom: 8px; }
.astsv-media-row > label { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 54px; padding: 9px 11px; color: #476052; background: #f8faf9; border: 1px dashed #cbd8d0; border-radius: 9px; }
.astsv-media-row > label:first-child { cursor: pointer; }
.astsv-media-row > label > svg { flex: 0 0 auto; width: 18px; }
.astsv-media-row strong,
.astsv-media-row small { display: block; }
.astsv-media-row strong { font-size: 9px; }
.astsv-media-row small { margin-top: 2px; color: #859188; font-size: 8px; }
.astsv-media-row input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.astsv-media-row input[type=url] { width: 100%; min-width: 0; padding: 8px; font-size: 9px; background: #fff; border: 1px solid #dce3df; border-radius: 7px; outline: 0; }
.astsv-media-row > b { color: #a2aba5; font-size: 8px; text-align: center; }

.astsv-permissions { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--astsv-line); }
.astsv-permissions[hidden] { display: none !important; }
.astsv-role-help { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 11px 12px; color: #255b3a; background: #edf7f0; border: 1px solid #d5eadb; border-radius: 9px; }
.astsv-role-help > svg { flex: 0 0 auto; }
.astsv-role-help strong,
.astsv-role-help small { display: block; }
.astsv-role-help strong { font-size: 10px; }
.astsv-role-help small { margin-top: 3px; color: #6a7f71; font-size: 8px; line-height: 1.45; }
.astsv-permissions > strong { font-size: 11px; }
.astsv-permissions > p { margin: 3px 0 12px; color: var(--astsv-muted); font-size: 9px; }
.astsv-permissions section { margin-top: 9px; padding: 11px; background: #f7f9f8; border-radius: 9px; }
.astsv-permissions section > b { display: block; margin-bottom: 8px; font-size: 10px; }
.astsv-permissions section label { display: flex; align-items: center; gap: 7px; margin: 6px 0; color: #4a5950; font-size: 9px; }
.astsv-permissions section label i { width: 9px; height: 9px; border-radius: 3px; }

.astsv-area-picker { display: grid; gap: 9px; }
.astsv-area-picker > button { display: grid; grid-template-columns: 12px 1fr 24px; align-items: center; gap: 12px; width: 100%; padding: 13px; color: #34423a; text-align: left; background: #f8faf9; border: 1px solid #e0e7e2; border-radius: 11px; transition: .18s ease; }
.astsv-area-picker > button:hover { color: #174d32; background: #edf7f0; border-color: #bcd8c5; transform: translateY(-1px); }
.astsv-area-picker > button > i { width: 12px; height: 44px; border-radius: 4px; }
.astsv-area-picker strong,
.astsv-area-picker small { display: block; }
.astsv-area-picker strong { font-size: 11px; }
.astsv-area-picker small { margin-top: 4px; color: #738078; font-size: 9px; font-weight: 400; }
.astsv-area-picker svg { width: 18px; color: #71907d; }

.leaflet-draw-tooltip { padding: 8px 10px !important; color: #fff !important; font: 700 10px/1.35 Inter, sans-serif !important; background: rgba(17, 61, 39, .94) !important; border: 0 !important; border-radius: 7px !important; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.leaflet-draw-tooltip::before { border-right-color: rgba(17, 61, 39, .94) !important; }
.leaflet-error-draw-tooltip { background: #a8382d !important; }

.astsv-detail > p { margin: 2px 0 15px; color: #5f6d65; font-size: 11px; line-height: 1.6; }
.astsv-detail-tags { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.astsv-detail-tags em { padding: 5px 8px; color: #fff; font-size: 8px; font-style: normal; font-weight: 800; border-radius: 7px; }
.astsv-detail-tags b { padding: 4px 8px; font-size: 8px; text-transform: uppercase; border-radius: 10px; }
.astsv-detail-tags b.active { color: #b64a20; background: #fff0e6; }
.astsv-detail-tags b.resolved { color: #23783a; background: #e5f5e9; }
.astsv-detail-media img,
.astsv-detail-media video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #111; border-radius: 10px; }
.astsv-detail-media > * + * { margin-top: 10px; }
.astsv-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.astsv-comparison > div { position: relative; min-height: 220px; overflow: hidden; background: #eef2ef; border-radius: 10px; }
.astsv-comparison img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.astsv-comparison span { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 4px 7px; color: #fff; font-size: 8px; font-weight: 800; text-transform: uppercase; background: rgba(15,27,20,.75); border-radius: 5px; }
.astsv-comparison p { display: grid; place-items: center; height: 220px; color: #7c8981; }
.astsv-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.astsv-detail-meta span { padding: 10px; background: #f5f7f6; border-radius: 8px; }
.astsv-detail-meta small,
.astsv-detail-meta strong { display: block; }
.astsv-detail-meta small { color: #8a958e; font-size: 8px; }
.astsv-detail-meta strong { margin-top: 4px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.astsv-admin-actions { justify-content: space-between !important; }
.astsv-admin-actions .danger { color: #b43c31; border-color: #f0c9c5; }

.astsv-compare-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 13px 15px;
  color: #24563a;
  background: linear-gradient(90deg, #eaf7ed, #f6fbf7);
  border: 1px solid #d4e9da;
  border-radius: 13px;
}

.astsv-compare-guide > svg { flex: 0 0 auto; width: 24px; height: 24px; }
.astsv-compare-guide > span { min-width: 0; margin-right: auto; }
.astsv-compare-guide strong,
.astsv-compare-guide small { display: block; }
.astsv-compare-guide strong { font-size: 11px; }
.astsv-compare-guide small { margin-top: 3px; color: #6c7f72; font-size: 9px; }
.astsv-compare-guide > b { flex: 0 0 auto; padding: 5px 9px; color: #1e7538; font-size: 9px; background: #fff; border: 1px solid #cce3d2; border-radius: 20px; }

.astsv-compare-selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.astsv-compare-chooser {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--astsv-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(23,77,50,.045);
}

.astsv-compare-chooser > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8faf9;
  border-bottom: 1px solid var(--astsv-line);
}

.astsv-compare-chooser > header > i,
.astsv-compare-caption article > i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  background: #174d32;
  border-radius: 9px;
}

.astsv-compare-chooser.is-b > header > i,
.astsv-compare-caption article:last-child > i { background: #2faa47; }
.astsv-compare-chooser > header strong,
.astsv-compare-chooser > header small { display: block; }
.astsv-compare-chooser > header strong { font-size: 11px; }
.astsv-compare-chooser > header small { margin-top: 2px; color: var(--astsv-muted); font-size: 8px; }

.astsv-compare-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px 14px;
}

.astsv-compare-fields label { min-width: 0; }
.astsv-compare-fields label.full { grid-column: 1 / -1; }
.astsv-compare-fields label > span { display: block; margin-bottom: 5px; color: #59675f; font-size: 8px; font-weight: 800; }
.astsv-compare-fields select { width: 100%; min-width: 0; height: 37px; padding: 0 28px 0 9px; overflow: hidden; color: #28372f; font-size: 9px; text-overflow: ellipsis; background: #fff; border: 1px solid #dce3df; border-radius: 8px; outline: 0; }
.astsv-compare-fields select:focus { border-color: #59b36d; box-shadow: 0 0 0 3px rgba(47,170,71,.10); }
.astsv-compare-fields select:disabled { color: #9ca6a0; background: #f4f6f5; }

.astsv-compare-chooser > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  color: #718078;
  background: #fbfcfb;
  border-top: 1px solid #eef1ef;
}

.astsv-compare-chooser > footer span { display: flex; align-items: center; min-width: 0; gap: 5px; }
.astsv-compare-chooser > footer svg { flex: 0 0 auto; width: 12px; height: 12px; }
.astsv-compare-chooser > footer b { overflow: hidden; color: #46564d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.astsv-compare-chooser > footer time { flex: 0 0 auto; font-size: 8px; }

.astsv-compare-swap {
  display: grid;
  place-items: center;
  gap: 3px;
  width: 54px;
  height: 54px;
  color: #27603d;
  background: #fff;
  border: 1px solid #cfe0d5;
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(26,75,47,.10);
  transition: .18s ease;
}

.astsv-compare-swap:hover { color: #fff; background: #2faa47; border-color: #2faa47; transform: translateY(-1px); }
.astsv-compare-swap svg { width: 18px; height: 18px; transition: transform .2s ease; }
.astsv-compare-swap:hover svg { transform: rotate(180deg); }
.astsv-compare-swap span { font-size: 7px; font-weight: 850; text-transform: uppercase; }

.astsv-compare-viewer {
  --astsv-compare-position: 50%;
  position: relative;
  width: 100%;
  min-height: 430px;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  background: #162019;
  border: 1px solid #d7dfda;
  border-radius: 15px;
  box-shadow: 0 18px 45px rgba(19,50,32,.12);
  isolation: isolate;
}

.astsv-compare-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.astsv-compare-image.is-a {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--astsv-compare-position)) 0 0);
}

.astsv-compare-label {
  position: absolute;
  z-index: 4;
  top: 15px;
  max-width: calc(50% - 24px);
  padding: 7px 10px;
  overflow: hidden;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(12,27,18,.78);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
  backdrop-filter: blur(4px);
}

.astsv-compare-label.is-a { left: 15px; }
.astsv-compare-label.is-b { right: 15px; }
.astsv-compare-divider { position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--astsv-compare-position); width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 0 18px rgba(0,0,0,.25); pointer-events: none; transform: translateX(-50%); }
.astsv-compare-divider > i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; color: #174d32; background: #fff; border: 4px solid rgba(255,255,255,.58); border-radius: 50%; box-shadow: 0 7px 24px rgba(0,0,0,.28); transform: translate(-50%, -50%); }
.astsv-compare-divider svg { width: 21px; height: 21px; }
.astsv-compare-viewer > input[type=range] { position: absolute; z-index: 6; inset: 0; width: 100%; height: 100%; margin: 0; opacity: .001; cursor: ew-resize; appearance: none; -webkit-appearance: none; }
.astsv-compare-viewer:focus-within { box-shadow: 0 0 0 4px rgba(47,170,71,.16), 0 18px 45px rgba(19,50,32,.12); }

.astsv-compare-caption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.astsv-compare-caption article { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 13px; background: #fff; border: 1px solid var(--astsv-line); border-radius: 11px; }
.astsv-compare-caption article > span { min-width: 0; }
.astsv-compare-caption strong,
.astsv-compare-caption small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.astsv-compare-caption strong { font-size: 10px; }
.astsv-compare-caption small { margin-top: 3px; color: var(--astsv-muted); font-size: 8px; }

.astsv-compare-empty {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 42px 22px;
  color: #64736a;
  text-align: center;
  background: #fff;
  border: 1px dashed #cddbd2;
  border-radius: 15px;
}

.astsv-compare-empty > svg { width: 48px; height: 48px; margin-bottom: 13px; color: #2faa47; }
.astsv-compare-empty h2 { margin: 0; color: #193523; font-size: 19px; }
.astsv-compare-empty p { max-width: 520px; margin: 8px 0 0; font-size: 10px; line-height: 1.65; }
.astsv-compare-empty button { margin-top: 17px; padding: 9px 14px; color: #1f6338; font-size: 10px; font-weight: 800; background: #edf7f0; border: 1px solid #cbe3d2; border-radius: 8px; }
.astsv-compare-empty.compact { min-height: 150px; }

.astsv-toast { position: fixed; z-index: 1000000; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; max-width: 360px; padding: 12px 15px; color: #fff; font-size: 11px; font-weight: 700; background: #174d32; border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,.24); opacity: 0; pointer-events: none; transform: translateY(15px); transition: .22s ease; }
.astsv-toast.show { opacity: 1; transform: translateY(0); }
.astsv-toast.is-error { background: #a8382d; }

@media (max-width: 1050px) {
  .astsv-login-page { grid-template-columns: minmax(0, 1fr) 410px; }
  .astsv-login-showcase { padding-inline: 36px; }
  .astsv-login-panel { padding-inline: 30px; }
  .astsv-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .astsv-sidebar nav button { padding-inline: 10px; }
  .astsv-map-grid { grid-template-columns: minmax(0, 1fr) 185px; }
  .astsv-records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .astsv-client-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .astsv-login-page { display: block; width: min(560px, calc(100vw - 28px)); min-height: 0; }
  .astsv-login-showcase { display: none; }
  .astsv-login-panel { min-height: min(720px, calc(100vh - 56px)); padding: 34px 28px 24px; }
  .astsv-login-mobile-brand { display: flex; width: min(410px, 100%); margin: 0 auto 24px; }
  .astsv-login-mobile-brand strong { color: #173124; font-size: 14px; }
  .astsv-login-mobile-brand small { margin-top: 2px; color: #759080; font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
  .astsv-login-card-new { margin: 0 auto; }
  .astsv-shell { display: block; min-height: 700px; border-radius: 12px; }
  .astsv-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 252px; min-height: 100vh; box-shadow: 15px 0 40px rgba(0,0,0,.25); transform: translateX(-105%); transition: .22s ease; }
  .astsv-sidebar.open { transform: translateX(0); }
  .astsv-mobile-menu { display: grid; }
  .astsv-page { padding: 20px; }
  .astsv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .astsv-admin-grid { grid-template-columns: 1fr; }
  .astsv-users { overflow-x: auto; }
  .astsv-users > header,
  .astsv-users > button { min-width: 700px; }
  .astsv-activity { overflow-x: auto; }
  .astsv-activity > header,
  .astsv-activity > article { min-width: 680px; }
  .astsv-company-profile { grid-template-columns: 1fr; }
  .astsv-company-profile form { padding-right: 0; border-right: 0; }
  .astsv-compare-selectors { grid-template-columns: 1fr; }
  .astsv-compare-swap { width: 100%; height: 38px; grid-auto-flow: column; justify-content: center; border-radius: 10px; }
  .astsv-compare-swap:hover { transform: translateY(-1px); }
  .astsv-compare-viewer { min-height: 390px; aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  .astsv-login-page { width: calc(100vw - 16px); margin: 8px auto; border-radius: 18px; }
  .astsv-login-panel { min-height: calc(100vh - 16px); padding: 25px 16px 18px; }
  .astsv-login-mobile-brand { margin-bottom: 20px; padding-inline: 4px; }
  .astsv-login-mobile-brand > span { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
  .astsv-login-card-new { padding: 25px 21px; border-radius: 16px; box-shadow: 0 14px 38px rgba(18,63,39,.08); }
  .astsv-login-heading h2 { font-size: 25px; }
  .astsv-login-options { align-items: flex-start; }
  .astsv-topbar { padding: 10px 12px; }
  .astsv-topbar select { min-width: 0; max-width: 150px; }
  .astsv-role,
  .astsv-refresh { display: none; }
  .astsv-top-add { padding-inline: 11px; }
  .astsv-top-add svg { display: none; }
  .astsv-page { padding: 15px 12px; }
  .astsv-heading { align-items: flex-start; flex-direction: column; }
  .astsv-heading > div:last-child { width: 100%; }
  .astsv-heading > div:last-child button { flex: 1; }
  .astsv-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .astsv-stats article { padding: 11px; }
  .astsv-stats article > i { display: none; }
  .astsv-toolbar,
  .astsv-record-filter { grid-template-columns: 1fr; }
  .astsv-map-grid { grid-template-columns: 1fr; }
  #astsv-map { height: 480px; }
  .astsv-map-grid > aside { display: none; }
  .astsv-pick { align-items: flex-start; flex-direction: column; }
  .astsv-pick-actions { width: 100%; justify-content: flex-start; }
  .astsv-records { grid-template-columns: 1fr; }
  .astsv-form-grid,
  .astsv-map-methods,
  .astsv-comparison,
  .astsv-detail-meta { grid-template-columns: 1fr; }
  .astsv-form-grid label.full { grid-column: auto; }
  .astsv-media-row { grid-template-columns: 1fr; }
  .astsv-media-row > b { padding: 2px; }
  .astsv-plan-upload { grid-template-columns: 1fr; }
  .astsv-plan-upload > b { padding: 2px; }
  .astsv-client-grid article > div { grid-template-columns: 1fr; }
  .astsv-company-select,
  .astsv-company-select select { width: 100%; min-width: 0; }
  .astsv-company-profile { padding: 15px; }
  .astsv-company-profile > section { align-items: flex-start; }
  .astsv-inline-form { grid-template-columns: 1fr; }
  .astsv-compare-fields,
  .astsv-compare-caption { grid-template-columns: 1fr; }
  .astsv-compare-fields label.full { grid-column: auto; }
  .astsv-compare-guide { align-items: flex-start; }
  .astsv-compare-guide > b { display: none; }
  .astsv-compare-viewer { min-height: 330px; height: 54vh; aspect-ratio: auto; border-radius: 11px; }
  .astsv-compare-label { top: 10px; max-width: calc(50% - 16px); padding: 5px 7px; font-size: 7px; }
  .astsv-compare-label.is-a { left: 10px; }
  .astsv-compare-label.is-b { right: 10px; }
  .astsv-compare-divider > i { width: 40px; height: 40px; }
  .astsv-modal-backdrop { padding: 8px; }
  .astsv-modal { max-height: calc(100vh - 16px); border-radius: 12px; }
}
