.insight-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 26px;
}
.insight-filters label,
.tracking-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.insight-filters select,
.tracking-form input,
.tracking-form select,
.tracking-form textarea {
  width: 100%;
  min-width: 0;
  background: white;
  color: #193f33;
  border: 1px solid #cadbd2;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  min-height: 46px;
}
.insight-filters button,
.tracking-form button,
#retry-insights {
  background: #176b4b;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  min-height: 46px;
  font-weight: 650;
  cursor: pointer;
}
.insight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.insight-card {
  padding: 22px 18px;
  background: white;
  border: 1px solid #dce7df;
  border-radius: 16px;
}
.insight-card span,
.insight-card small {
  display: block;
  font-size: 12px;
  color: #5b7468;
}
.insight-card strong {
  display: block;
  font-size: 30px;
  color: #174b37;
  letter-spacing: -1px;
  margin: 8px 0;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
}
.insight-panel {
  padding: 24px;
  background: white;
  border: 1px solid #dce7df;
  border-radius: 16px;
  margin-bottom: 22px;
  min-width: 0;
}
.insight-panel h2 {
  font-size: 21px;
  font-weight: 650;
  margin: 6px 0;
}
.insight-panel p {
  font-size: 13px;
  color: #5b7468;
  margin: 8px 0 18px;
}
.insight-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #618473;
  display: block;
}
.insight-bars {
  display: grid;
  gap: 17px;
  margin-top: 25px;
}
.insight-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.insight-bar-label strong {
  font-weight: 600;
}
.insight-bar-track {
  height: 10px;
  border-radius: 9px;
  background: #edf3ef;
  margin-top: 7px;
  overflow: hidden;
}
.insight-bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #217a54, #76ac70);
  border-radius: 9px;
}
#potential-map {
  height: 320px;
  border-radius: 12px;
  background: #eef4f0;
  z-index: 0;
}
.potential-map-label {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  color: white !important;
  font-weight: 700 !important;
}
.insight-table-wrap {
  overflow-x: auto;
  border: 1px solid #dce7df;
  background: white;
  border-radius: 16px;
  margin-bottom: 24px;
}
.insight-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.insight-table-wrap caption {
  text-align: left;
  padding: 18px;
  font-weight: 600;
}
.insight-table-wrap th,
.insight-table-wrap td {
  padding: 14px 18px;
  text-align: right;
  border-bottom: 1px solid #edf2ef;
}
.insight-table-wrap th:first-child {
  text-align: left;
}
.insight-table-wrap thead {
  background: #edf4ef;
}
.insight-table-wrap small {
  display: block;
  color: #668173;
  font-weight: 400;
}
.insight-notes {
  font-size: 12px;
  line-height: 1.7;
  color: #526d60;
  background: #edf4ef;
  border-radius: 12px;
  padding: 20px;
}
.insight-notes p {
  margin: 8px 0;
}
.insight-loading {
  padding: 55px;
  text-align: center;
  color: #526d60;
}
.insight-record {
  display: block;
  margin-top: 10px;
  text-align: left;
  text-decoration: underline;
}
.tracking-form {
  padding: 30px;
  background: white;
  border: 1px solid #dce7df;
  border-radius: 20px;
  display: grid;
  gap: 20px;
  box-shadow: 0 12px 50px #16442e08;
}
.tracking-form h1,
.tracking-form h2 {
  font-weight: 650;
  font-size: 25px;
  line-height: 1.3;
}
.tracking-form p {
  font-size: 14px;
  color: #53685f;
  line-height: 1.7;
}
.tracking-form small {
  font-size: 12px;
  line-height: 1.7;
  color: #586f63;
}
.tracking-alert {
  background: #fff5da;
  border: 1px solid #ecddad;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #69571e;
}
.tracking-status {
  justify-self: start;
  border-radius: 99px;
  padding: 8px 15px;
  background: #e5f2e9;
  color: #18583b;
  font-size: 14px;
  font-weight: 650;
}
.tracking-timeline {
  border-left: 2px solid #d0e1d6;
  padding-left: 20px;
  margin: 4px 0;
}
.tracking-timeline li {
  padding: 8px 0 18px;
  position: relative;
  list-style: none;
}
.tracking-timeline li:before {
  content: "";
  width: 10px;
  height: 10px;
  background: #297e54;
  border-radius: 50%;
  position: absolute;
  left: -26px;
  top: 13px;
}
.tracking-form form {
  display: grid;
  gap: 15px;
}
.tracking-form button.secondary {
  background: #edf3ef;
  color: #244f3b;
}
.tracking-shortcut {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #e5f0e9;
  color: #20543c;
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 14px;
}
.insight-note {
  font-size: 11px !important;
}
.bell-button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #dae5de;
  border-radius: 12px;
  background: white;
  color: #224f3b;
}
.bell-button svg {
  width: 20px;
  height: 20px;
}
.bell-button span {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 19px;
  background: #af472e;
  color: white;
  font-size: 10px;
  border-radius: 12px;
  padding: 2px 4px;
}
.bell-button span:empty {
  display: none;
}
.notification-item {
  padding: 18px;
  border-bottom: 1px solid #e0e9e3;
  display: grid;
  gap: 7px;
}
.notification-item.unread {
  background: #f1f8f2;
  border-left: 3px solid #2d8759;
}
.notification-item p {
  margin: 0;
}
.notification-item small {
  color: #657b70;
}
.notification-item button {
  text-align: left;
  min-height: 44px;
}
.report-run {
  padding: 20px;
  border-bottom: 1px solid #e1e9e3;
  display: grid;
  gap: 10px;
}
.report-downloads {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.report-downloads a {
  padding: 10px 15px;
  border: 1px solid #cadecf;
  border-radius: 10px;
  font-size: 14px;
  color: #1b6140;
  font-weight: 600;
}
.report-status {
  font-size: 12px;
  font-weight: 600;
  color: #557264;
}
.report-form {
  display: grid;
  gap: 18px;
}
.report-form .actions {
  margin: 0;
}
.report-form small {
  color: #64776d;
}
@media (max-width: 760px) {
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .insight-filters {
    grid-template-columns: 1fr 1fr;
  }
  .insight-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .insight-card {
    padding: 17px 14px;
  }
  .insight-card strong {
    font-size: 27px;
  }
  .insight-panel {
    padding: 19px;
  }
  .tracking-form {
    padding: 22px;
  }
  .insight-table-wrap th,
  .insight-table-wrap td {
    padding: 13px;
  }
  #potential-map {
    height: 280px;
  }
  .insight-filters label {
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .insight-filters {
    grid-template-columns: 1fr;
  }
  .insight-card strong {
    font-size: 24px;
  }
  .bell-button {
    min-width: 40px;
    padding: 8px;
  }
  .topbar .connection {
    gap: 7px;
  }
  .topbar-brand {
    max-width: 45%;
  }
}
@media print {
  .site-header,
  .site-footer,
  button,
  .skip-link {
    display: none !important;
  }
  .tracking-form {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .tracking-alert {
    border: 1px solid #ddd;
  }
  body {
    background: white !important;
  }
}
.report-form,
.report-form label,
.report-form .insight-filters {
  min-width: 0;
  max-width: 100%;
}
.report-form input {
  width: 100%;
  min-width: 0;
}
.report-form small {
  white-space: normal;
  overflow-wrap: anywhere;
}
.insight-filters[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .report-form .insight-filters {
    grid-template-columns: 1fr;
  }
  .report-form .insight-filters {
    margin-bottom: 0;
  }
}
