#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;
}

/* WordPress themes commonly apply img { height:auto } inside page content.
   Use a scoped selector so comparison photos always fill the slider canvas. */
#astsv-app .astsv-compare-viewer > img.astsv-compare-image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.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; touch-action: pan-y; 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 { height: auto; min-height: 0; aspect-ratio: 4 / 3; background: #162019; border-radius: 11px; }
  #astsv-app .astsv-compare-viewer > img.astsv-compare-image { height: 100%; min-height: 100%; }
  .astsv-compare-label { top: 10px; max-width: calc(50% - 16px); padding: 6px 8px; font-size: 8px; }
  .astsv-compare-label.is-a { left: 10px; }
  .astsv-compare-label.is-b { right: 10px; }
  .astsv-compare-divider > i { width: 40px; height: 40px; border-width: 3px; }
  .astsv-compare-caption { gap: 8px; }
  .astsv-compare-caption article { padding: 10px 11px; }
  .astsv-modal-backdrop { padding: 8px; }
  .astsv-modal { max-height: calc(100vh - 16px); border-radius: 12px; }
}

/* Site Vision 2.1 — progress, compliance, actions, notifications and PWA */
.astsv-connectivity { display:inline-flex;align-items:center;gap:5px;padding:5px 9px;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;border-radius:999px; }
.astsv-connectivity::before { content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(47,170,71,.13); }
.astsv-connectivity.is-online { color:#1b7f37;background:#eaf7ed; }
.astsv-connectivity.is-offline { color:#a95e10;background:#fff1dc; }
.astsv-install-app { display:inline-flex;align-items:center;gap:5px;padding:8px 10px;color:#225f37;font-size:9px;font-weight:800;background:#edf7f0;border:1px solid #cce3d3;border-radius:8px; }

.astsv-progress-layout { display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px;margin-top:14px; }
.astsv-progress-layout>section,.astsv-progress-layout>aside { background:#fff;border:1px solid #dfe7e2;border-radius:14px; }
.astsv-progress-layout>section>header { padding:16px 18px;border-bottom:1px solid #edf1ee; }
.astsv-progress-layout>section>header span { display:flex;flex-direction:column;gap:3px; }
.astsv-progress-layout>section>header strong { color:#173124;font-size:12px; }
.astsv-progress-layout>section>header small { color:#7b8981;font-size:8px; }
.astsv-progress-chart { padding:18px 18px 8px;overflow:hidden; }
.astsv-progress-chart svg { width:100%;height:210px;overflow:visible; }
.astsv-progress-chart svg>path { fill:none;stroke:#dce8df;stroke-width:.5; }
.astsv-progress-chart polyline { fill:none;stroke:#2faa47;stroke-width:2.2;vector-effect:non-scaling-stroke; }
.astsv-progress-chart polygon { fill:url(#astsv-progress-fill);stroke:none; }
.astsv-progress-chart>div { display:flex;justify-content:space-between;gap:6px;overflow-x:auto; }
.astsv-progress-chart>div span { flex:0 0 auto;display:flex;flex-direction:column;gap:2px;color:#274b35; }
.astsv-progress-chart>div b { font-size:8px; }
.astsv-progress-chart>div small { color:#829087;font-size:7px; }
.astsv-chart-empty { display:grid;place-items:center;min-height:220px;color:#78877e;font-size:10px; }
.astsv-progress-history { padding:8px 18px 18px; }
.astsv-progress-history article { display:grid;grid-template-columns:7px 1fr;gap:11px;padding:12px 0;border-top:1px solid #edf1ee; }
.astsv-progress-history article>i { position:relative;width:7px;min-height:48px;background:#e9f3ec;border-radius:8px;overflow:hidden; }
.astsv-progress-history article>i::after { content:"";position:absolute;right:0;bottom:0;left:0;height:var(--progress);background:#2faa47; }
.astsv-progress-history article span { display:grid;grid-template-columns:1fr auto;gap:4px; }
.astsv-progress-history article strong { color:#173124;font-size:10px; }
.astsv-progress-history article small { color:#7e8c84;font-size:8px; }
.astsv-progress-history article p { grid-column:1/-1;margin:2px 0 0;color:#65736b;font-size:9px; }
.astsv-progress-layout>aside { padding:20px; }
.astsv-progress-layout>aside h3 { margin:0 0 7px;color:#173124;font-size:12px; }
.astsv-progress-layout>aside p,.astsv-progress-layout>aside>small { display:block;margin:0 0 14px;color:#708078;font-size:9px;line-height:1.55; }
.astsv-progress-layout>aside hr { margin:18px 0;border:0;border-top:1px solid #e5ece7; }
.astsv-progress-layout>aside>b { display:block;margin:8px 0;color:#42614f;font-size:10px; }
.astsv-report-button { display:flex;align-items:center;gap:7px;margin:8px 0;padding:10px 12px;color:#fff!important;font-size:9px;font-weight:850;text-decoration:none!important;background:#2faa47;border-radius:8px; }
.astsv-report-button.secondary { color:#235e38!important;background:#edf7f0;border:1px solid #cce3d3; }
.astsv-report-button svg { width:14px;height:14px; }

.astsv-compliance-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.astsv-compliance-grid>button { padding:17px;text-align:left;background:#fff;border:1px solid #dfe7e2;border-radius:14px;transition:.18s ease; }
.astsv-compliance-grid>button:hover { border-color:#9acaaa;box-shadow:0 10px 28px rgba(20,70,42,.08);transform:translateY(-2px); }
.astsv-compliance-grid header { display:flex;align-items:center;justify-content:space-between; }
.astsv-compliance-grid header em,.astsv-compliance-grid header b { padding:4px 7px;font-size:7px;font-style:normal;font-weight:900;text-transform:uppercase;border-radius:5px; }
.astsv-compliance-grid .standard-qlassic { color:#235fb4;background:#e9f1ff; }
.astsv-compliance-grid .standard-shassic { color:#925e05;background:#fff1d6; }
.astsv-compliance-grid .status-approved { color:#1c7f37;background:#e9f6ec; }
.astsv-compliance-grid .status-submitted { color:#8c5b03;background:#fff1d8; }
.astsv-compliance-grid .status-draft { color:#68756e;background:#eef2ef; }
.astsv-compliance-grid h3 { margin:15px 0 6px;color:#173124;font-size:13px; }
.astsv-compliance-grid p { min-height:30px;margin:0;color:#6d7b73;font-size:9px;line-height:1.5; }
.astsv-compliance-grid>button>div { display:grid;grid-template-columns:auto 1fr 1fr;align-items:end;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #e8eeea; }
.astsv-compliance-grid>button>div>strong { color:#2faa47;font-size:25px; }
.astsv-compliance-grid>button>div span { display:flex;flex-direction:column;gap:2px; }
.astsv-compliance-grid>button>div small { color:#87938c;font-size:7px; }
.astsv-compliance-grid>button>div b { color:#3f5147;font-size:8px; }
.astsv-checklist-items { margin-top:18px;border:1px solid #dfe7e2;border-radius:11px;overflow:hidden; }
.astsv-checklist-items>header { display:flex;justify-content:space-between;padding:12px 14px;background:#f4f8f5; }
.astsv-checklist-items>header strong { font-size:10px; }
.astsv-checklist-items>header small { color:#75837b;font-size:8px; }
.astsv-checklist-items article { display:grid;grid-template-columns:minmax(0,1.2fr) 120px minmax(0,1fr);gap:9px;padding:9px 12px;border-top:1px solid #e8eeea; }
.astsv-checklist-items article>span { display:grid;grid-template-columns:22px 1fr;align-items:center;gap:6px; }
.astsv-checklist-items article>span>b { display:grid;place-items:center;width:20px;height:20px;color:#236138;font-size:8px;background:#eaf6ed;border-radius:50%; }
.astsv-checklist-items input,.astsv-checklist-items select { min-width:0;padding:8px;font-size:9px;border:1px solid #d8e1db;border-radius:7px; }

.astsv-actions { overflow:hidden;background:#fff;border:1px solid #dfe7e2;border-radius:14px; }
.astsv-actions>header,.astsv-actions>article { display:grid;grid-template-columns:minmax(280px,1.6fr) 1fr 130px 170px;align-items:center;gap:12px;padding:12px 16px; }
.astsv-actions>header { color:#77867d;font-size:8px;font-weight:850;text-transform:uppercase;background:#f7faf8;border-bottom:1px solid #e6ece8; }
.astsv-actions>article { border-bottom:1px solid #edf1ee; }
.astsv-actions>article:last-child { border-bottom:0; }
.astsv-actions>article>span:first-child { display:grid;grid-template-columns:auto 1fr;gap:4px 8px; }
.astsv-actions>article>span:first-child em { grid-row:1/3;padding:4px 6px;align-self:start;font-size:7px;font-style:normal;font-weight:900;text-transform:uppercase;border-radius:5px; }
.astsv-actions .priority-low { color:#39704a;background:#edf6ef; }
.astsv-actions .priority-medium { color:#8c5b03;background:#fff1d8; }
.astsv-actions .priority-high,.astsv-actions .priority-critical { color:#ad342c;background:#ffebe9; }
.astsv-actions article b { color:#243d2e;font-size:10px; }
.astsv-actions article small { color:#748179;font-size:8px; }
.astsv-actions article>span { color:#4b5e53;font-size:9px; }
.astsv-actions article .overdue { color:#b1352c;font-weight:800; }
.astsv-actions article>span:last-child { display:flex;align-items:center;gap:6px; }
.astsv-actions select { min-width:105px;padding:7px;font-size:8px;border:1px solid #d6dfd9;border-radius:7px; }
.astsv-actions [data-action-edit] { display:grid;place-items:center;width:30px;height:30px;color:#27663c;background:#edf7f0;border:0;border-radius:7px; }
.astsv-actions svg { width:13px;height:13px; }

.astsv-notification-settings { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:13px;padding:17px 19px;background:#edf7f0;border:1px solid #cfe4d5;border-radius:13px; }
.astsv-notification-settings>span { display:flex;align-items:center;gap:12px; }
.astsv-notification-settings>span>svg { width:22px;height:22px;color:#267a3d; }
.astsv-notification-settings b { display:flex;flex-direction:column;gap:3px; }
.astsv-notification-settings strong { color:#1f4e30;font-size:11px; }
.astsv-notification-settings small { color:#63806d;font-size:8px;font-weight:500; }
.astsv-notification-settings label { position:relative;width:42px;height:23px; }
.astsv-notification-settings input { position:absolute;opacity:0; }
.astsv-notification-settings label i { position:absolute;inset:0;background:#aebbb3;border-radius:20px;transition:.2s; }
.astsv-notification-settings label i::after { content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 2px 5px rgba(0,0,0,.2); }
.astsv-notification-settings input:checked+i { background:#2faa47; }
.astsv-notification-settings input:checked+i::after { transform:translateX(19px); }
.astsv-notifications { overflow:hidden;background:#fff;border:1px solid #dfe7e2;border-radius:14px; }
.astsv-notifications>button { display:grid;grid-template-columns:34px 1fr auto;align-items:start;gap:12px;width:100%;padding:15px 17px;text-align:left;background:#fff;border:0;border-bottom:1px solid #edf1ee; }
.astsv-notifications>button:last-child { border-bottom:0; }
.astsv-notifications>button.unread { background:#f3faf5; }
.astsv-notifications>button>i { display:grid;place-items:center;width:32px;height:32px;color:#267a3d;background:#e6f4e9;border-radius:9px; }
.astsv-notifications svg { width:15px;height:15px; }
.astsv-notifications span { display:flex;flex-direction:column;gap:4px; }
.astsv-notifications strong { color:#203e2c;font-size:10px; }
.astsv-notifications p { margin:0;color:#66746c;font-size:9px;line-height:1.45; }
.astsv-notifications small { color:#8a958f;font-size:7px; }
.astsv-notifications em { padding:4px 7px;color:#fff;font-size:7px;font-style:normal;font-weight:900;background:#2faa47;border-radius:5px; }

@media (max-width:1050px) {
  .astsv-compliance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .astsv-progress-layout { grid-template-columns:1fr 220px; }
}
@media (max-width:820px) {
  .astsv-progress-layout { grid-template-columns:1fr; }
  .astsv-actions { overflow-x:auto; }
  .astsv-actions>header,.astsv-actions>article { min-width:780px; }
}
@media (max-width:620px) {
  .astsv-connectivity,.astsv-install-app { display:none; }
  .astsv-compliance-grid { grid-template-columns:1fr; }
  .astsv-checklist-items { overflow-x:auto; }
  .astsv-checklist-items>header,.astsv-checklist-items article { min-width:620px; }
  .astsv-notification-settings { align-items:flex-start; }
  .astsv-notification-settings small { line-height:1.4; }
}

/* Site Vision Platform 3.0 — Paradise Data Analytics brand system */
#astsv-app,
.astsv-login,
.astsv-login-page {
  --astsv-green: #17191d;
  --astsv-green-2: #f5b82e;
  --astsv-ink: #17191d;
  --astsv-muted: #6c7077;
  --astsv-line: #e1e1df;
  --astsv-soft: #f7f6f2;
}

.astsv-login-showcase,
.astsv-sidebar { background: linear-gradient(155deg,#0d0e10 0%,#181a1f 62%,#29231a 100%); }
.astsv-login-showcase::before { border-color:rgba(245,184,46,.25);box-shadow:0 0 0 70px rgba(245,184,46,.035),0 0 0 140px rgba(245,184,46,.02); }
.astsv-login-showcase::after { background:radial-gradient(circle,rgba(245,184,46,.32) 0 2px,transparent 2.5px) 0 0/18px 18px; }
.astsv-login-brand > img,
.astsv-login-mobile-brand > img { width:92px;height:40px;object-fit:contain; }
.astsv-login-brand small { color:#d0b36c; }
.astsv-login-copy > em { color:#f8d982; }
.astsv-login-copy > em i { background:#f5b82e;box-shadow:0 0 0 4px rgba(245,184,46,.14); }
.astsv-login-copy p { color:#d1d3d7; }
.astsv-login-submit,
#astsv-app .astsv-primary,
#astsv-app button.astsv-primary,
#astsv-app .astsv-pick button.primary { color:#15171b!important;background:linear-gradient(135deg,#facb54,#f5b82e)!important;border-color:#e2a51c!important;box-shadow:0 8px 22px rgba(245,184,46,.24)!important; }
.astsv-login-submit:hover,
#astsv-app .astsv-primary:hover { background:linear-gradient(135deg,#ffd76d,#f7bd36)!important;box-shadow:0 11px 26px rgba(245,184,46,.32)!important; }
.astsv-sidebar nav button:hover,
.astsv-sidebar nav button.active { color:#fff4d3;background:rgba(245,184,46,.13); }
.astsv-sidebar nav button.active { box-shadow:inset 3px 0 #f5b82e; }
.astsv-sidebar nav em { color:#d4aa45; }
.astsv-sidebar nav button i { color:#17191d;background:#f5b82e; }
.astsv-sidebar nav button.is-plan-locked { color:#a9aaad; }
.astsv-sidebar nav button.is-plan-locked i { color:#17191d;background:#f5b82e;letter-spacing:.04em; }
.astsv-brand small,.astsv-vendor-brand small { color:#c2a75f; }
.astsv-vendor-brand { text-decoration:none;background:rgba(245,184,46,.08);border-color:rgba(245,184,46,.18); }
.astsv-vendor-brand img { width:54px;height:30px;padding:0;background:transparent;border-radius:0; }
.astsv-vendor-brand strong { color:#fff; }
.astsv-role { color:#5c4614;background:#fff6dc;border-color:#f0d283; }
.astsv-heading small,
.astsv-login-heading > span { color:#a87809; }
.astsv-stats article i.green { color:#a87809;background:#fff2ca; }

.astsv-plan-structure { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px; }
.astsv-plan-structure article { padding:20px;background:#fff;border:1px solid var(--astsv-line);border-radius:15px;box-shadow:0 8px 24px rgba(20,20,20,.04); }
.astsv-plan-structure article:last-child { background:linear-gradient(145deg,#191b1f,#27231a);border-color:#3b3527;color:#fff; }
.astsv-plan-structure em,.astsv-plan-badge { display:inline-flex;padding:5px 8px;color:#6d4d07;font-size:9px;font-style:normal;font-weight:900;letter-spacing:.08em;background:#fff0bd;border:1px solid #efd27f;border-radius:20px; }
.astsv-plan-structure h3 { margin:10px 0 5px;font-size:17px; }
.astsv-plan-structure p { margin:0;color:#73777e;font-size:12px;line-height:1.6; }
.astsv-plan-structure article:last-child p { color:#c8c9cc; }
.astsv-plan-notice { max-width:720px;margin:8vh auto;padding:46px;text-align:center;background:#fff;border:1px solid #e4dfd0;border-radius:22px;box-shadow:0 18px 50px rgba(20,20,20,.08); }
.astsv-plan-notice > span { display:inline-flex;padding:7px 11px;color:#17191d;font-size:10px;font-weight:900;letter-spacing:.1em;background:#f5b82e;border-radius:20px; }
.astsv-plan-notice h1 { margin:18px 0 10px;font-size:30px; }
.astsv-plan-notice p { margin:0 auto 22px;max-width:580px;color:#686c73;line-height:1.7; }
.astsv-plan-notice a { display:inline-flex;padding:12px 18px;color:#17191d;font-weight:800;text-decoration:none;background:#f5b82e;border-radius:10px; }
.astsv-loading > img { position:relative;z-index:1;width:110px;height:44px;object-fit:contain; }
.astsv-login-footer img { width:72px!important;height:28px!important;object-fit:contain!important; }

@media(max-width:720px){
  .astsv-plan-structure{grid-template-columns:1fr}
  .astsv-plan-notice{margin:30px 0;padding:30px 20px}
  .astsv-login-brand > img,.astsv-login-mobile-brand > img{width:78px}
}

/* Site Vision 2.2 — opt-in customer presentation workspace */
.astsv-demo-hero { position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:24px;margin-bottom:14px;padding:30px;color:#fff;background:radial-gradient(circle at 84% 5%,rgba(110,219,91,.24),transparent 34%),linear-gradient(135deg,#073d2b,#0c5637);border-radius:18px;box-shadow:0 18px 46px rgba(7,61,43,.14);overflow:hidden; }
.astsv-demo-hero>div { align-self:center; }
.astsv-demo-badge { display:inline-flex;margin-bottom:13px;padding:6px 9px;color:#b7f188;font-size:7px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;background:rgba(255,255,255,.08);border:1px solid rgba(183,241,136,.25);border-radius:999px; }
.astsv-demo-hero h1 { margin:0 0 10px;font-size:29px;line-height:1.07;letter-spacing:-.035em; }
.astsv-demo-hero p { max-width:620px;margin:0;color:#d4e8dd;font-size:10px;line-height:1.65; }
.astsv-demo-actions { display:flex;flex-wrap:wrap;gap:9px;margin-top:20px; }
.astsv-demo-actions button { display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 15px;font-size:9px;font-weight:850;border-radius:9px; }
.astsv-demo-actions .astsv-primary { color:#12452d;background:#a7e970;box-shadow:none; }
.astsv-demo-actions .astsv-demo-refresh { color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25); }
.astsv-demo-actions svg { width:14px;height:14px; }
.astsv-demo-hero aside { align-self:stretch;padding:19px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.14);border-radius:13px;backdrop-filter:blur(8px); }
.astsv-demo-hero aside>strong { display:block;margin-bottom:12px;font-size:12px; }
.astsv-demo-hero ul { display:grid;gap:9px;margin:0 0 17px;padding:0;list-style:none; }
.astsv-demo-hero li { position:relative;padding-left:15px;color:#d7e9df;font-size:8px;line-height:1.45; }
.astsv-demo-hero li::before { content:"✓";position:absolute;left:0;color:#9fe267;font-weight:900; }
.astsv-demo-hero aside>small { display:block;padding-top:12px;color:#9fc0ad;font-size:7px;border-top:1px solid rgba(255,255,255,.12); }
.astsv-demo-stats { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:20px; }
.astsv-demo-stats article { display:flex;align-items:center;gap:10px;padding:14px 16px;background:#fff;border:1px solid #dfe7e2;border-radius:12px; }
.astsv-demo-stats strong { color:#126337;font-size:21px; }
.astsv-demo-stats span { color:#718078;font-size:8px;font-weight:750; }
.astsv-demo-heading { margin:0 0 12px; }
.astsv-demo-heading h2 { margin:4px 0 5px;color:#173124;font-size:20px; }
.astsv-demo-flow { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
.astsv-demo-flow>button { position:relative;display:grid;grid-template-columns:38px 1fr;gap:12px;min-height:130px;padding:18px;text-align:left;background:#fff;border:1px solid #dfe7e2;border-radius:14px;transition:.18s ease; }
.astsv-demo-flow>button:hover { border-color:#83c995;box-shadow:0 12px 28px rgba(20,70,42,.09);transform:translateY(-2px); }
.astsv-demo-flow>button>b { position:absolute;top:13px;right:14px;color:#a4b2aa;font-size:8px;letter-spacing:.08em; }
.astsv-demo-flow>button>i { display:grid;place-items:center;width:38px;height:38px;color:#23733c;background:#eaf7ed;border-radius:10px; }
.astsv-demo-flow svg { width:18px;height:18px; }
.astsv-demo-flow span { display:flex;flex-direction:column;min-width:0; }
.astsv-demo-flow strong { margin:3px 0 7px;color:#173124;font-size:11px; }
.astsv-demo-flow small { color:#6b7b72;font-size:8px;line-height:1.5; }
.astsv-demo-flow em { margin-top:auto;padding-top:11px;color:#20803d;font-size:8px;font-style:normal;font-weight:850; }
.astsv-demo-note { display:flex;align-items:center;gap:11px;margin-top:12px;padding:13px 15px;color:#265c38;background:#edf8f0;border:1px solid #cde5d3;border-radius:11px; }
.astsv-demo-note>svg { width:20px;height:20px; }
.astsv-demo-note span { display:flex;flex-direction:column;gap:3px; }
.astsv-demo-note strong { font-size:9px; }
.astsv-demo-note small { color:#64806d;font-size:8px;line-height:1.45; }
.astsv-demo-empty { display:grid;place-items:center;min-height:250px;padding:35px;text-align:center;background:#fff;border:1px dashed #bdd5c4;border-radius:15px; }
.astsv-demo-empty>i { display:grid;place-items:center;width:58px;height:58px;color:#278243;background:#eaf7ed;border-radius:17px; }
.astsv-demo-empty svg { width:27px;height:27px; }
.astsv-demo-empty h2 { margin:17px 0 7px;color:#183b27;font-size:18px; }
.astsv-demo-empty p { max-width:520px;margin:0;color:#6b7b72;font-size:9px;line-height:1.6; }

@media (max-width:920px) {
  .astsv-demo-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:820px) {
  .astsv-demo-hero { grid-template-columns:1fr;padding:24px; }
  .astsv-demo-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .astsv-demo-hero { gap:18px;padding:21px 18px;border-radius:14px; }
  .astsv-demo-hero h1 { font-size:25px; }
  .astsv-demo-actions button { width:100%;justify-content:center; }
  .astsv-demo-stats { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }
  .astsv-demo-stats article { padding:12px; }
  .astsv-demo-flow { grid-template-columns:1fr; }
  .astsv-demo-flow>button { min-height:112px; }
}

/* Site Vision 2.2.1 — consistent, touch-friendly button system */
#astsv-app button,
#astsv-app a.astsv-report-button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
#astsv-app button:focus-visible,
#astsv-app a.astsv-report-button:focus-visible,
.astsv-login-page button:focus-visible {
  outline: 3px solid rgba(47,170,71,.24);
  outline-offset: 2px;
}
#astsv-app button:disabled {
  opacity: .46;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.astsv-primary,
.astsv-secondary,
.astsv-heading button,
.astsv-modal footer button,
.astsv-admin-grid header button {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 12px;
  line-height: 1.1;
  white-space: nowrap;
}
.astsv-primary {
  background: linear-gradient(135deg,#35b84e,#249d3e) !important;
  border-color: #249d3e !important;
  box-shadow: 0 8px 20px rgba(37,157,62,.22), inset 0 1px rgba(255,255,255,.18) !important;
}
.astsv-primary:hover {
  filter: none;
  background: linear-gradient(135deg,#2eaa47,#208e37) !important;
  box-shadow: 0 11px 25px rgba(37,157,62,.28), inset 0 1px rgba(255,255,255,.18) !important;
}
.astsv-primary:active {
  background: #208e37 !important;
  box-shadow: 0 3px 9px rgba(37,157,62,.22) !important;
  transform: translateY(1px) scale(.985);
}
.astsv-secondary {
  color: #175f36;
  background: linear-gradient(180deg,#fff,#f7faf8);
  border-color: #bfd2c5;
  box-shadow: 0 3px 10px rgba(23,77,50,.05);
}
.astsv-secondary:hover {
  color: #0f4c2a;
  background: #edf8f0;
  border-color: #8fc49d;
  box-shadow: 0 6px 15px rgba(23,77,50,.09);
  transform: translateY(-1px);
}
.astsv-secondary:active { background:#e4f3e8;box-shadow:none;transform:translateY(1px) scale(.985); }
.astsv-primary svg,
.astsv-secondary svg,
.astsv-heading button svg,
.astsv-modal footer button svg,
.astsv-admin-grid header button svg { flex:0 0 auto;width:17px;height:17px;stroke-width:2; }

.astsv-refresh,
.astsv-mobile-menu {
  position:relative;
  flex:0 0 auto;
  width:44px;
  height:44px;
  padding:0;
  color:#185e37;
  background:linear-gradient(180deg,#fff,#f4f9f5);
  border:1px solid #cbdcd0;
  border-radius:13px;
  box-shadow:0 4px 12px rgba(17,70,39,.08), inset 0 1px #fff;
}
.astsv-refresh:hover,
.astsv-mobile-menu:hover { color:#fff;background:#247f3d;border-color:#247f3d;box-shadow:0 7px 17px rgba(36,127,61,.22);transform:translateY(-1px); }
.astsv-refresh:active,
.astsv-mobile-menu:active { color:#fff;background:#1d6f34;box-shadow:0 2px 6px rgba(36,127,61,.18);transform:translateY(1px) scale(.96); }
.astsv-refresh svg,
.astsv-mobile-menu svg { width:21px;height:21px;stroke-width:2.15; }

.astsv-modal > header button[data-close] {
  width:40px;
  height:40px;
  padding:0;
  color:#3f6550;
  background:linear-gradient(180deg,#f5f9f6,#edf3ef);
  border:1px solid #dce7df;
  border-radius:12px;
  box-shadow:0 3px 9px rgba(20,70,42,.06);
}
.astsv-modal > header button[data-close]:hover { color:#fff;background:#247f3d;border-color:#247f3d;box-shadow:0 7px 16px rgba(36,127,61,.2);transform:rotate(3deg) scale(1.03); }
.astsv-modal > header button[data-close]:active { background:#1d6f34;box-shadow:none;transform:scale(.94); }
.astsv-modal > header button[data-close] svg { width:18px;height:18px;stroke-width:2.1; }

.astsv-modal footer button:not(.astsv-primary) {
  color:#315643;
  background:linear-gradient(180deg,#fff,#f6f9f7);
  border-color:#d1ddd5;
  box-shadow:0 3px 9px rgba(20,70,42,.04);
}
.astsv-modal footer button:not(.astsv-primary):hover { color:#164f2e;background:#edf7f0;border-color:#9fc8aa;transform:translateY(-1px); }
.astsv-modal footer button:not(.astsv-primary):active { background:#e4f1e8;box-shadow:none;transform:translateY(1px); }
.astsv-admin-actions .danger {
  color:#ad332c;
  background:#fff7f6;
  border-color:#edc4c0;
  box-shadow:0 3px 9px rgba(173,51,44,.05);
}
.astsv-admin-actions .danger:hover { color:#fff;background:#bd3d34;border-color:#bd3d34;box-shadow:0 7px 16px rgba(173,51,44,.2); }

.astsv-project-row > span button,
.astsv-area-list article > div button,
.astsv-position-list article button,
.astsv-actions [data-action-edit] {
  width:34px;
  height:34px;
  padding:0;
  border:1px solid #e0e8e3;
  border-radius:10px;
  box-shadow:0 2px 7px rgba(20,70,42,.04);
}
.astsv-project-row > span button:hover,
.astsv-area-list article > div button:hover,
.astsv-actions [data-action-edit]:hover { color:#fff;background:#247f3d;border-color:#247f3d;box-shadow:0 5px 12px rgba(36,127,61,.18);transform:translateY(-1px); }
.astsv-project-row > span button.danger:hover,
.astsv-area-list article > div button.danger:hover,
.astsv-position-list article button:hover { color:#fff;background:#bd3d34;border-color:#bd3d34;box-shadow:0 5px 12px rgba(173,51,44,.18);transform:translateY(-1px); }
.astsv-project-row > span button svg,
.astsv-area-list article > div button svg,
.astsv-position-list article button svg,
.astsv-actions [data-action-edit] svg { width:15px;height:15px; }

.astsv-pick button,
.astsv-client-grid footer button,
.astsv-compare-empty button {
  min-height:38px;
  padding:9px 13px;
  border-radius:10px;
  box-shadow:0 3px 9px rgba(20,70,42,.05);
}
.astsv-pick button:hover,
.astsv-client-grid footer button:hover,
.astsv-compare-empty button:hover { color:#15572f;background:#edf8f0;border-color:#9dc9a8;transform:translateY(-1px); }
.astsv-pick button.primary { color:#fff;background:linear-gradient(135deg,#35b84e,#249d3e);border-color:#249d3e;box-shadow:0 6px 15px rgba(37,157,62,.2); }

.astsv-report-button { min-height:40px;justify-content:center;padding:10px 13px;border-radius:10px;box-shadow:0 5px 13px rgba(47,170,71,.16); }
.astsv-report-button:hover { filter:brightness(.96);box-shadow:0 8px 18px rgba(47,170,71,.22);transform:translateY(-1px); }
.astsv-report-button:active { box-shadow:none;transform:translateY(1px); }

@media (max-width:620px) {
  .astsv-topbar { min-height:72px;gap:9px;padding:10px 12px; }
  .astsv-mobile-menu { width:46px;height:46px;border-radius:14px; }
  .astsv-topbar label { min-width:0; }
  .astsv-topbar select { max-width:min(42vw,180px);font-size:13px; }
  .astsv-top-add { min-height:46px;padding:10px 14px;border-radius:13px;font-size:12px; }
  .astsv-heading > div:last-child { display:flex;gap:8px; }
  .astsv-heading > div:last-child button { min-height:48px;padding:11px 13px;border-radius:13px;white-space:normal;line-height:1.25; }
  .astsv-modal > header { align-items:flex-start;padding:17px 16px; }
  .astsv-modal > header>span { min-width:0;padding-top:2px; }
  .astsv-modal > header h2 { font-size:18px;line-height:1.22; }
  .astsv-modal > header p { line-height:1.45; }
  .astsv-modal > header button[data-close] { width:42px;height:42px;border-radius:13px; }
  .astsv-modal footer { position:sticky;z-index:2;bottom:0;gap:9px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 22px rgba(20,50,31,.06); }
  .astsv-modal footer button { flex:1;min-height:46px;padding:10px 12px;border-radius:12px;white-space:normal; }
  .astsv-pick-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  .astsv-pick-actions button { min-height:44px; }
}

/* Final PDA component overrides (kept last to supersede legacy component rules). */
#astsv-app .astsv-primary,
#astsv-app button.astsv-primary,
#astsv-app .astsv-pick button.primary,
.astsv-login-page .astsv-login-submit {
  color:#15171b!important;
  background:linear-gradient(135deg,#facb54,#f5b82e)!important;
  border-color:#e2a51c!important;
  box-shadow:0 8px 22px rgba(245,184,46,.24)!important;
}
#astsv-app .astsv-primary:hover,
.astsv-login-page .astsv-login-submit:hover { background:linear-gradient(135deg,#ffd76d,#f7bd36)!important;box-shadow:0 11px 26px rgba(245,184,46,.32)!important; }
#astsv-app .astsv-secondary,
#astsv-app .astsv-refresh,
#astsv-app .astsv-mobile-menu { color:#6d4d07;background:linear-gradient(180deg,#fff,#fffaf0);border-color:#e4cd91; }
#astsv-app .astsv-secondary:hover,
#astsv-app .astsv-refresh:hover,
#astsv-app .astsv-mobile-menu:hover { color:#15171b;background:#f5b82e;border-color:#e2a51c;box-shadow:0 7px 17px rgba(245,184,46,.24); }
#astsv-app .astsv-modal > header button[data-close]:hover,
#astsv-app .astsv-project-row > span button:hover,
#astsv-app .astsv-area-list article > div button:hover,
#astsv-app .astsv-actions [data-action-edit]:hover { color:#15171b;background:#f5b82e;border-color:#e2a51c;box-shadow:0 6px 14px rgba(245,184,46,.22); }
#astsv-app .astsv-pick button:hover,
#astsv-app .astsv-client-grid footer button:hover,
#astsv-app .astsv-compare-empty button:hover { color:#6d4d07;background:#fff6dc;border-color:#dfc16b; }
