:root {
  --green-950: #063c33;
  --green-900: #064d3f;
  --green-800: #075747;
  --green-700: #08785f;
  --green-600: #168a67;
  --green-100: #ddf3e9;
  --mint: #edf8e7;
  --cream: #fffaf0;
  --gold: #ffc61a;
  --red: #ef3546;
  --cyan: #58c5ce;
  --ink: #17221d;
  --muted: #647069;
  --line: #dbe4dd;
  --surface: #ffffff;
  --page: #f2f8f5;
  --shadow-sm: 0 8px 24px rgba(7, 67, 53, 0.07);
  --shadow-md: 0 20px 55px rgba(7, 67, 53, 0.12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Manrope, "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.municipal-ribbon {
  min-height: 32px;
  padding: 5px max(4vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(90deg, #278772, #286b78);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.ribbon-access {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ribbon-access b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.identity-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0 20%, #f28f2c 20% 40%, var(--red) 40% 60%, #75b94e 60% 80%, var(--cyan) 80% 100%);
}

.topnav {
  min-height: 84px;
  padding: 12px max(4vw, 22px);
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(115deg, var(--green-950), var(--green-800));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 35px rgba(6, 60, 51, 0.14);
}

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

.brand-logo {
  width: 64px;
  height: 54px;
  padding: 4px 7px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand b {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.navlinks {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.navlinks::-webkit-scrollbar {
  display: none;
}

.navlinks a {
  flex: 0 0 auto;
  padding: 10px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  color: var(--green-950);
  background: #fff;
  outline: none;
}

.user-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 7px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 11px;
}

.user-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-950);
  background: var(--gold);
  font-weight: 900;
}

.link-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--green-950);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.shell {
  width: min(1180px, 92vw);
  margin: 34px auto 72px;
}

.messages.shell {
  margin-bottom: -18px;
}

.page-title,
.page-head {
  margin-bottom: 22px;
  padding: 8px 0 5px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-title h1,
.page-head h1 {
  margin: 2px 0 6px;
  color: var(--green-950);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.page-title p,
.page-head p {
  margin: 0;
  color: var(--muted);
}

.eyebrow,
.step-label {
  display: inline-block;
  margin: 0 0 8px !important;
  color: var(--green-700) !important;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-pill {
  width: fit-content;
  padding: 7px 13px;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f9d76c;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.rainbow-line {
  width: 230px;
  max-width: 70%;
  height: 6px;
  margin: 18px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #f28f2c, var(--red), #75b94e, var(--cyan));
}

.hero.compact {
  position: relative;
  min-height: 330px;
  padding: clamp(32px, 5vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(88, 197, 206, 0.2), transparent 24%),
    radial-gradient(circle at 66% 108%, rgba(255, 198, 26, 0.12), transparent 30%),
    linear-gradient(120deg, #063c33 0%, #075747 58%, #0c6d59 100%);
  box-shadow: var(--shadow-md);
}

.hero.compact::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -145px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025), 0 0 0 90px rgba(255, 255, 255, 0.02);
}

.welcome-hero > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.welcome-hero .eyebrow {
  margin-top: 22px !important;
  color: rgba(255, 255, 255, 0.68) !important;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.hero p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

.hero-seal {
  position: relative;
  z-index: 3;
  width: min(260px, 26vw);
  padding: 22px;
  display: grid;
  gap: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  transform: rotate(1.5deg);
}

.hero-seal span {
  color: var(--green-800);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sublogo {
  width: 100%;
  max-height: 105px;
  object-fit: contain;
}

.quick-actions {
  margin: 24px 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-action {
  --card-color: #08785f;
  --card-dark: #055943;
  min-width: 0;
  min-height: 310px;
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 168px 1fr;
  gap: 0 12px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--card-color), var(--card-dark));
  box-shadow: 0 8px 0 color-mix(in srgb, var(--card-dark) 88%, #000), 0 18px 35px rgba(20, 35, 46, 0.17);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action:hover {
  transform: translateY(-7px);
  box-shadow: 0 11px 0 color-mix(in srgb, var(--card-dark) 88%, #000), 0 25px 45px rgba(20, 35, 46, 0.22);
}

.quick-search {
  --card-color: #07805f;
  --card-dark: #04533f;
}

.quick-inspector {
  --card-color: #087e98;
  --card-dark: #07536d;
}

.quick-cases {
  --card-color: #d67828;
  --card-dark: #a94a20;
}

.quick-map {
  --card-color: #6d55ad;
  --card-dark: #49377f;
}

.quick-media {
  position: relative;
  grid-column: 1 / -1;
  display: block;
  margin: 0 -20px;
  overflow: hidden;
  background: var(--card-dark);
}

.quick-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 48%, color-mix(in srgb, var(--card-dark) 78%, transparent));
}

.quick-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.quick-action:hover .quick-media img {
  transform: scale(1.045);
}

.quick-icon {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 13px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  color: #fff;
  background: color-mix(in srgb, var(--card-color) 88%, transparent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-size: 29px;
  font-style: normal;
  font-weight: 900;
}

.quick-copy {
  align-self: center;
  padding-top: 18px;
}

.quick-action b,
.quick-action small {
  display: block;
}

.quick-action b {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(19px, 1.45vw, 23px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.quick-action small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.quick-arrow {
  align-self: center;
  margin-top: 18px;
  font-size: 28px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.quick-action:hover .quick-arrow {
  transform: translateX(4px);
}

.kpis {
  margin: 22px 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 1100px;
}

.kpis article,
.panel,
.import-card,
.form-card,
.map-card,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.kpis article {
  --kpi-top: #315fab;
  --kpi-bottom: #234681;
  min-height: 158px;
  padding: 23px 24px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--kpi-top), var(--kpi-bottom));
  box-shadow: 0 9px 0 color-mix(in srgb, var(--kpi-bottom) 83%, #000), 0 20px 34px rgba(26, 37, 55, 0.19);
  transform: rotateX(2deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpis article:hover {
  transform: rotateX(0) translateY(-5px) translateZ(10px);
  box-shadow: 0 12px 0 color-mix(in srgb, var(--kpi-bottom) 83%, #000), 0 28px 40px rgba(26, 37, 55, 0.24);
}

.kpis .kpi-total {
  --kpi-top: #3f70c5;
  --kpi-bottom: #274a91;
}

.kpis .kpi-active {
  --kpi-top: #0a9872;
  --kpi-bottom: #08634f;
}

.kpis .kpi-review {
  --kpi-top: #ec9a24;
  --kpi-bottom: #b65d13;
}

.kpis .kpi-cases {
  --kpi-top: #d45270;
  --kpi-bottom: #96314d;
}

.kpis article::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 48%;
  border-radius: 17px 17px 50% 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.kpis article i {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 8px 14px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 35px;
  font-style: normal;
  font-weight: 900;
}

.kpis span,
.kpis small,
.kpis strong {
  position: relative;
  z-index: 1;
  display: block;
}

.kpis span,
.kpis small {
  color: rgba(255, 255, 255, 0.84);
}

.kpis span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.kpis strong {
  margin: 9px 0 5px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.kpis small {
  font-size: 12px;
}

.panel,
.import-card,
.form-card {
  padding: 26px;
}

.panel {
  margin-top: 18px;
}

.panel h2,
.panel h3,
.import-card h2,
.form-card h1 {
  color: var(--green-950);
  letter-spacing: -0.025em;
}

.panel h2 {
  margin: 0 0 7px;
  font-size: 21px;
}

.panel h3 {
  margin: 0 0 6px;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.panel-head,
.case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.primary,
.secondary,
.button,
.searchbar button,
.danger-action {
  min-height: 43px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary,
.button,
.searchbar button {
  color: #fff;
  border: 1px solid var(--green-700);
  background: var(--green-700);
  box-shadow: 0 8px 20px rgba(8, 120, 95, 0.2);
}

.primary:hover,
.button:hover,
.searchbar button:hover {
  transform: translateY(-1px);
  background: var(--green-900);
}

.secondary {
  color: var(--green-800);
  border: 1px solid #a9c8bd;
  background: #fff;
}

.secondary:hover {
  background: var(--mint);
}

.danger-action {
  color: #fff;
  border: 1px solid #c52e3c;
  background: #c52e3c;
}

.searchbar {
  margin-bottom: 18px;
  padding: 10px;
  display: flex;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.searchbar input {
  flex: 1;
}

.searchbar input,
.searchbar select,
.form-card input,
.form-card select,
.form-card textarea,
.import-card input,
.import-card select,
.login-form input,
.unknown-form input,
.unknown-form textarea,
.registry-search input,
.admin-form input,
.admin-form select,
.case-head select,
.file-input {
  min-height: 45px;
  padding: 11px 14px;
  border: 1px solid #cfdcd5;
  border-radius: 12px;
  color: var(--ink);
  background: #fbfdfc;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  resize: vertical;
}

.searchbar input:focus,
.searchbar select:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.import-card input:focus,
.login-form input:focus,
.unknown-form input:focus,
.unknown-form textarea:focus {
  border-color: var(--green-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 120, 95, 0.11);
}

.table-wrap {
  padding: 0;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 14px 17px;
  text-align: left;
  color: var(--green-800);
  border-bottom: 1px solid var(--line);
  background: #edf6f1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  padding: 15px 17px;
  vertical-align: top;
  border-bottom: 1px solid #eaf0ec;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f7fbf9;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td b,
td small {
  display: block;
}

td b,
td a {
  color: var(--green-900);
}

td small {
  margin-top: 4px;
  color: var(--muted);
}

.pill {
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.pill.ok {
  color: #086446;
  background: #dff3e8;
}

.pill.warn {
  color: #8a5b00;
  background: #fff0c9;
}

.pill.info {
  color: #0b6070;
  background: #dff3f6;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  color: #715111;
  border: 1px solid #efcf7f;
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: #fff9e9;
}

.notice.success {
  color: #0c6046;
  border-color: #84c9ad;
  background: #e8f7f0;
}

.notice.error {
  color: #962733;
  border-color: #e7a3aa;
  background: #fff0f1;
}

.notice p {
  margin: 4px 0 0;
  color: inherit;
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}

.detail-grid .panel {
  margin-top: 0;
}

.detail-grid dl {
  margin: 15px 0 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 11px;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.detail-grid dd {
  margin: 0;
  font-weight: 700;
}

.form-card {
  max-width: 800px;
  margin: 0 auto;
}

.form-card h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.form-card > p {
  color: var(--muted);
}

.form-card form > p,
.import-card form > p,
.login-form > p {
  display: grid;
  gap: 7px;
}

.form-card label,
.import-card label,
.login-form label,
.unknown-form label,
.registry-search label,
.admin-form label {
  color: #46564e;
  font-size: 11px;
  font-weight: 800;
}

.form-card input,
.form-card select,
.form-card textarea,
.import-card input,
.import-card select {
  width: 100%;
}

.form-card input[type="checkbox"],
.form-card input[type="radio"],
.import-card input[type="checkbox"],
.import-card input[type="radio"] {
  width: 19px;
  min-height: 19px;
  padding: 0;
  accent-color: var(--green-700);
}

.case-form {
  display: grid;
  gap: 17px;
}

.case-form-field {
  display: grid;
  gap: 7px;
}

.case-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.case-contact-panel {
  min-width: 0;
  padding: 17px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #c9ded5;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8fcfa, #edf7f2);
  box-shadow: 0 7px 16px rgba(7, 67, 53, 0.08);
}

.case-contact-panel > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--green-700);
  font-size: 23px;
  font-weight: 900;
}

.case-contact-panel > div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.case-phone-panel {
  border-color: #c9d8eb;
  background: linear-gradient(145deg, #f9fbfe, #edf3fb);
}

.case-phone-panel > span {
  background: #2870a8;
}

.case-location-action {
  display: flex;
  align-items: center;
  gap: 13px;
}

.case-location-action p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.case-location-action > div {
  display: grid;
  gap: 4px;
}

.case-location-action small {
  color: var(--muted);
  font-size: 11px;
}

.action-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.import-stats,
.status-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.import-stats div,
.status-grid div {
  padding: 17px;
  border-radius: 15px;
  background: #edf6f1;
}

.import-stats strong,
.import-stats span,
.status-grid b,
.status-grid span {
  display: block;
}

.import-stats strong,
.status-grid b {
  color: var(--green-800);
  font-size: 28px;
}

.import-stats span,
.status-grid span {
  color: var(--muted);
  font-size: 11px;
}

.case-list,
.nearby-list,
.pending-list,
.candidate-list {
  display: grid;
  gap: 12px;
}

.case-card {
  margin-top: 0;
}

.case-head h3 {
  margin: 4px 0;
}

.attachments {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachments a,
.upload-link {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.inspector-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 18px;
}

.inspector-workspace > .panel {
  margin-top: 0;
}

.inspector-help {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 105px;
  color: #fff;
  border: 0;
  background: linear-gradient(145deg, var(--green-900), var(--green-700));
}

.inspector-help h3,
.inspector-help p {
  color: #fff;
}

.inspector-help p {
  opacity: 0.75;
}

.survey-streets-panel {
  grid-column: 1 / -1;
}

.street-toolbar {
  margin: 20px 0 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 6px 14px;
}

.street-toolbar label {
  grid-column: 1;
  color: #46564e;
  font-size: 11px;
  font-weight: 800;
}

.street-toolbar input {
  grid-column: 1;
  width: 100%;
}

.street-toolbar span {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.street-groups {
  display: grid;
  gap: 12px;
}

.street-group {
  overflow: hidden;
  border: 1px solid #c9ded5;
  border-radius: 16px;
  background: #f8fcfa;
  box-shadow: 0 7px 18px rgba(7, 67, 53, 0.07);
}

.street-group > summary {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.street-group > summary:hover,
.street-group[open] > summary {
  background: #eaf5ef;
}

.street-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  font-size: 22px;
  font-weight: 900;
}

.street-group summary b,
.street-group summary small {
  display: block;
}

.street-group summary b {
  color: var(--green-950);
  font-size: 15px;
}

.street-group summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.street-group summary strong {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--green-700);
  font-size: 14px;
}

.street-group > .pending-list {
  padding: 14px;
  border-top: 1px solid #c9ded5;
  background: #fff;
}

.street-filter-empty {
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.unknown-business {
  border-color: #efc2c7;
  background: #fff8f8;
}

.gps-primary {
  margin-top: 17px;
}

.gps-card {
  margin-top: 16px;
  padding: 13px 15px;
  color: #0d6649;
  border-radius: 13px;
  background: #e4f5ec;
}

.gps-poor {
  color: #845a00;
  background: #fff1ca;
}

.no-match {
  margin-top: 17px;
  padding: 19px;
  border: 1px solid #efc4c8;
  border-radius: 16px;
  background: #fff7f8;
}

.no-match h3 {
  margin: 0 0 6px;
  color: #992d38;
}

.nearby-card,
.pending-list article,
.candidate-list article {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdfc;
}

.nearby-card b,
.nearby-card small,
.pending-list b,
.pending-list small,
.candidate-list b,
.candidate-list small {
  display: block;
}

.nearby-card small,
.pending-list small,
.candidate-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.unknown-form,
.registry-search {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.full-row {
  grid-column: 1 / -1;
}

.survey-complete {
  min-width: min(560px, 80vw);
  padding: 16px;
  border-radius: 15px;
  background: #f4f9f6;
}

details summary {
  list-style: none;
  cursor: pointer;
}

.map-card {
  overflow: hidden;
}

.leaflet-holder,
.map-loading {
  width: 100%;
  height: 560px;
  background: #dfece6;
}

.map-loading {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.gps-status,
.map-toolbar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
}

.gps-status span,
.map-toolbar small {
  color: var(--muted);
  font-size: 11px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.empty {
  padding: 65px 20px;
  text-align: center;
}

.login-page {
  min-height: 100vh;
  color: #fff;
  background: var(--green-950);
}

.login-page .shell {
  width: 100%;
  margin: 0;
}

.login-layout {
  min-height: calc(100vh - 35px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  background:
    radial-gradient(circle at 16% 15%, rgba(88, 197, 206, 0.16), transparent 24%),
    radial-gradient(circle at 42% 92%, rgba(255, 198, 26, 0.12), transparent 28%),
    linear-gradient(125deg, #063c33 0%, #075747 55%, #0b6956 100%);
}

.login-intro {
  min-height: 680px;
  padding: clamp(45px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-intro::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.025), 0 0 0 130px rgba(255, 255, 255, 0.02);
}

.login-intro > img {
  width: 115px;
  height: 80px;
  margin: 28px 0;
  padding: 7px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.login-intro h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 105px);
  line-height: 0.87;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.login-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.login-card {
  width: min(520px, 88%);
  margin: auto;
  padding: clamp(28px, 4vw, 48px);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.login-area-logo {
  width: 210px;
  max-height: 90px;
  margin-bottom: 24px;
  object-fit: contain;
}

.login-card h2 {
  margin: 0 0 6px;
  color: var(--green-950);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.login-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.login-form {
  margin-top: 25px;
  display: grid;
  gap: 12px;
}

.login-form input {
  width: 100%;
}

.login-form .primary {
  width: 100%;
  margin-top: 5px;
  justify-content: space-between;
  padding-inline: 20px;
}

.login-page footer {
  display: none;
}

footer {
  padding: 34px max(4vw, 22px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--green-950);
}

.footer-inner {
  width: min(1180px, 92vw);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-inner img {
  width: 75px;
  height: 52px;
  padding: 4px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.footer-inner div {
  display: grid;
}

.footer-inner b {
  color: #fff;
  font-size: 13px;
}

.footer-inner span {
  font-size: 10px;
}

.footer-year {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 1200px) {
  .topnav {
    flex-wrap: wrap;
  }

  .navlinks {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-start;
    padding-top: 3px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .shell {
    width: min(94vw, 720px);
    margin-top: 24px;
  }

  .user-name {
    display: none;
  }

  .hero.compact {
    min-height: 290px;
    padding: 34px;
  }

  .hero-seal {
    width: 190px;
  }

  .kpis,
  .import-stats,
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .inspector-help {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 430px;
    padding: 55px 7vw;
  }

  .login-intro h1 {
    font-size: clamp(55px, 14vw, 82px);
  }

  .login-card {
    margin: -35px auto 55px;
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 680px) {
  .municipal-ribbon {
    padding-inline: 14px;
  }

  .ribbon-access {
    display: none;
  }

  .topnav {
    padding: 10px 14px;
  }

  .brand-logo {
    width: 57px;
    height: 49px;
  }

  .user-chip {
    margin-left: auto;
  }

  .navlinks a {
    padding: 8px 10px;
  }

  .page-title,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title .primary,
  .page-head .button {
    width: 100%;
  }

  .hero.compact {
    min-height: 360px;
    padding: 28px 24px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-seal {
    display: none;
  }

  .quick-actions,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .quick-action {
    min-height: 125px;
  }

  .searchbar,
  .action-row,
  .case-head,
  .nearby-card,
  .pending-list article,
  .candidate-list article,
  .gps-status,
  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .searchbar select,
  .searchbar button,
  .action-row .primary,
  .action-row .secondary {
    width: 100%;
  }

  .unknown-form,
  .registry-search {
    grid-template-columns: 1fr;
  }

  .full-row {
    grid-column: 1;
  }

  .leaflet-holder,
  .map-loading {
    height: 62vh;
  }

  .footer-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-year {
    width: 100%;
    margin: 5px 0 0;
  }
}

@media (max-width: 480px) {
  .brand > span:last-child,
  .user-avatar {
    display: none;
  }

  .topnav {
    gap: 8px;
  }

  .navlinks {
    margin-inline: -4px;
  }

  .kpis,
  .import-stats,
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpis article {
    min-height: 125px;
    padding: 17px;
  }

  .kpis strong {
    font-size: 30px;
  }

  .panel,
  .import-card,
  .form-card {
    padding: 20px;
  }

  .case-contact-grid {
    grid-template-columns: 1fr;
  }

  .street-toolbar {
    grid-template-columns: 1fr;
  }

  .street-toolbar span {
    grid-column: 1;
    grid-row: auto;
  }

  .street-group > summary {
    grid-template-columns: 38px 1fr auto;
    padding: 14px;
  }

  .street-symbol {
    width: 38px;
    height: 38px;
  }

  .case-location-action {
    align-items: stretch;
    flex-direction: column;
  }

  .login-intro {
    min-height: 370px;
  }

  .login-card {
    width: 92%;
    padding: 26px 22px;
  }
}
