:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #23322f;
  background: #f5f7f5;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dce2de;
  background: white;
  border-radius: 9px;
  padding: 11px 16px;
  color: inherit;
  font-weight: 600;
}
button:hover {
  background: #edf3ee;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #81bb94;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9e1da;
  border-radius: 8px;
  background: #fff;
  color: #22332d;
  margin-top: 8px;
}
input:focus,
textarea:focus {
  outline: 2px solid #80b794;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 20px 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 10px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
}
.muted,
.fine {
  color: #718078;
}
.fine {
  font-size: 12px;
  margin-top: 22px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #64806b;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 2px;
  margin-left: 12px;
  opacity: 0.6;
}
.brand-icon {
  background: #bde39d;
  color: #193d2d;
  border-radius: 10px;
  font-size: 21px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-style: italic;
}
.primary {
  background: #244f3b;
  color: white;
  border-color: #244f3b;
}
.primary:hover {
  background: #326348;
}
.primary span {
  float: right;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #18392d;
  color: #f6f9f2;
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-story .eyebrow {
  color: #b5ce9f;
}
.login-story h1 {
  font-size: clamp(35px, 4vw, 60px);
  line-height: 1.1;
  margin-top: 25px;
  letter-spacing: -2px;
}
.login-story p {
  color: #c0cfc4;
  max-width: 360px;
}
.login-story > small {
  color: #a8bcae;
}
.road-art {
  height: 150px;
  position: relative;
  overflow: hidden;
  opacity: 0.6;
}
.road-art span {
  position: absolute;
  width: 340px;
  height: 200px;
  border: 30px solid #39634a;
  border-radius: 50%;
  transform: rotate(-24deg);
  left: 40px;
  top: 50px;
}
.road-art i {
  position: absolute;
  width: 340px;
  height: 200px;
  border: 1px dashed #bde39d;
  border-radius: 50%;
  transform: rotate(-24deg);
  left: 40px;
  top: 50px;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form form {
  width: 100%;
  max-width: 380px;
}
.login-form h2 {
  margin-top: 16px;
  font-size: 28px;
}
.login-form .primary {
  width: 100%;
}
.error {
  color: #a13131;
  line-height: 1.5;
}
.login-form .error:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
#workspace {
  display: flex;
  min-height: 100vh;
}
aside {
  overflow-y: auto;
  width: 235px;
  background: #fff;
  border-right: 1px solid #e5eae5;
  padding: 32px 22px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.nav-label {
  margin: 48px 12px 16px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
nav button {
  border: 0;
  text-align: left;
  font-size: 18px;
  color: #7c8a81;
  padding: 13px;
}
nav button span {
  font-size: 13px;
  margin-left: 10px;
  color: #536158;
}
nav button.active {
  background: #eaf2e8;
  color: #254d35;
}
nav button.active span {
  color: #254d35;
}
.aside-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #7a857e;
  padding-top: 30px;
}
.aside-bottom p {
  margin: 18px 0 8px;
  color: #2c3e33;
}
.aside-bottom button {
  border: 0;
  padding-left: 0;
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65916d;
  margin-right: 6px;
}
.main-shell {
  margin-left: 235px;
  flex: 1;
  min-width: 0;
}
header {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid #e3e9e3;
  background: #fff;
  font-size: 12px;
}
header strong {
  margin-left: 12px;
  font-weight: 500;
}
.admin-badge {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #68816b;
}
main {
  padding: 36px 40px;
  max-width: 1500px;
  margin: auto;
  min-height: calc(100vh - 130px);
}
footer {
  padding: 20px 40px;
  border-top: 1px solid #e3e9e3;
  font-size: 10px;
  color: #839086;
  display: flex;
  justify-content: space-between;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.page-heading p {
  margin: 0;
  color: #79857b;
}
.page-heading .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #e1e7e0;
  border-radius: 13px;
  padding: 23px;
}
.card-label {
  font-size: 12px;
  color: #6c7a70;
}
.card-number {
  font-size: 36px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 14px 0 8px;
}
.card small {
  color: #819086;
  font-size: 10px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-head h3 {
  margin: 0;
}
.pill {
  padding: 5px 9px;
  background: #edf4e8;
  color: #557342;
  border-radius: 6px;
  font-size: 10px;
}
.banner {
  background: #eaf1e6;
  border: 1px solid #dce8d3;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.banner h2 {
  margin-bottom: 8px;
}
.banner p {
  font-size: 13px;
  color: #66805f;
}
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 12px;
  margin: 23px 0;
  font-size: 12px;
}
.bar {
  height: 9px;
  background: #f0f4ed;
  border-radius: 9px;
  overflow: hidden;
}
.bar i {
  height: 100%;
  display: block;
  background: #87a879;
  border-radius: 9px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  color: #829084;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #f7f9f5;
  font-weight: 600;
}
td,
th {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0eb;
}
td small {
  display: block;
  color: #8b968e;
  margin-top: 5px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.empty {
  text-align: center;
  padding: 44px 20px;
  color: #7c8b7d;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  margin: 0;
  max-width: 320px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  font-size: 12px;
}
.upload-zone {
  background: #f7faf4;
  border: 1px dashed #9ab38c;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}
.upload-zone label {
  margin: 0;
}
.upload-zone input {
  background: white;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.map {
  height: 340px;
  background: #eaf0e5;
  border-radius: 10px;
  z-index: 0;
}
.route-meta {
  display: flex;
  gap: 24px;
  margin: 20px 0;
}
.route-meta strong {
  display: block;
  font-size: 23px;
}
.route-meta small {
  color: #798b78;
}
.report {
  border: 1px solid #e2e7df;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
  background: white;
}
.report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.report blockquote {
  background: #f5f7f3;
  padding: 15px;
  margin: 15px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-left: 3px solid #a5b896;
}
.report label {
  margin: 12px 0;
}
.report select {
  max-width: 240px;
}
.danger {
  color: #a33b38;
  border-color: #e4c1be;
}
.inline-note {
  border-left: 3px solid #b7ce9d;
  padding: 10px 15px;
  font-size: 12px;
  color: #6c7a67;
  background: #f4f7ee;
}
.error-panel {
  padding: 30px;
  border: 1px solid #e9ccca;
  background: #fff8f7;
  border-radius: 12px;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #244f3b;
  color: white;
  border-radius: 10px;
  padding: 17px 25px;
  z-index: 2000;
  max-width: 420px;
  box-shadow: 0 10px 40px #15362322;
}
.loading {
  padding: 60px;
  text-align: center;
  color: #789078;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.billing-notice {
  background: #fff8e9;
  border: 1px solid #e9d6a6;
  border-left: 4px solid #b78a38;
  color: #715824;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.billing-notice p { margin: 8px 0 0; font-size: 12px; max-width: 900px; }
.unavailable-value { font-size: 20px; font-weight: 650; color: #6d726c; margin: 18px 0 12px; }
.record-link { padding: 4px 0; border: 0; background: transparent; color: #285e43; text-align: left; overflow-wrap: anywhere; }
.record-link:hover { text-decoration: underline; background: transparent; }
.detail-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.profile-summary { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-bottom: 24px; }
.profile-summary > div { min-width: 130px; max-width: 100%; overflow-wrap: anywhere; }
.profile-summary span { display: block; font-size: 11px; color: #718078; margin-bottom: 8px; }
.profile-summary strong { font-size: 14px; font-weight: 600; }
.commerce-filters label { display: block; font-size: 11px; }
.commerce-filters select { display: block; margin-top: 5px; max-width: 100%; }
.commerce-filters { align-items: flex-end; }
.commerce-filters input { align-self: flex-end; }
.group-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.unavailable-cards .card { padding: 20px; }
.lifetime-strip,
.queue-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 15px 0;
  margin-bottom: 20px;
  font-size: 12px;
  color: #5b6e63;
}
.lifetime-strip strong {
  color: #304d3d;
  font-weight: 600;
}
.period-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.period-controls label {
  width: 100%;
  margin: 0;
  color: #63786b;
  font-size: 11px;
}
.period-controls select {
  width: auto;
  margin: 0;
}
.analytics-cards .card {
  padding: 20px;
}
.analytics-cards .card-number {
  margin: 10px 0;
}
.comparison {
  font-size: 11px;
  color: #3e6550;
  margin-bottom: 10px;
}
.trend-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.trend-chart text {
  font-size: 11px;
  fill: #6b7c70;
}
.trend-panel .panel-head p {
  font-size: 12px;
  margin: 8px 0 0;
}
.chart-key {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.attention-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  text-align: left;
  width: 100%;
  margin: 12px 0;
  padding: 16px 12px;
}
.attention-row small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #6a7b71;
  margin-top: 7px;
}
.attention-row > span:last-child {
  white-space: nowrap;
  font-size: 11px;
}
.queue-note {
  font-size: 12px;
  color: #6a7b71;
  line-height: 1.7;
  margin-top: 20px;
}
.data-details {
  margin-bottom: 20px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.data-details .table-wrap {
  max-height: 320px;
  margin-top: 16px;
}
.warning {
  background: #fff1d8;
  color: #805c21;
}
.toolbar {
  flex-wrap: wrap;
}
.toolbar select {
  margin: 0;
  width: auto;
}
.toolbar label {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.report summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.report summary::before {
  content: "+";
  font-size: 20px;
  color: #668b70;
}
.report[open] summary::before {
  content: "−";
}
.report summary > span:first-child {
  flex: 1;
}
.report[open] summary {
  padding-bottom: 18px;
  border-bottom: 1px solid #e3e9e3;
  margin-bottom: 20px;
}
.queue-summary {
  background: #edf3eb;
  border-radius: 10px;
  padding: 16px;
}
.queue-summary strong {
  font-size: 20px;
  margin-right: 6px;
}
@media (max-width: 1000px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  aside {
    width: 195px;
    padding: 26px 14px;
  }
  .main-shell {
    margin-left: 195px;
  }
  main {
    padding: 28px 24px;
  }
  header {
    padding: 0 24px;
  }
  .login-story {
    padding: 40px;
  }
}
@media (max-width: 650px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 250px;
    padding: 28px;
  }
  .login-story h1 {
    font-size: 32px;
    margin: 18px 0;
  }
  .login-story > small,
  .road-art {
    display: none;
  }
  .login-form {
    padding: 32px 24px;
  }
  aside {
    position: static;
    width: 100%;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #e3e9e3;
  }
  aside .brand {
    font-size: 20px;
  }
  .nav-label,
  .aside-bottom > .status-dot {
    display: none;
  }
  .aside-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
  }
  .aside-bottom p {
    margin: 0;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 3px;
    margin-top: 15px;
  }
  nav button {
    white-space: nowrap;
    font-size: 14px;
    padding: 10px;
  }
  nav button span {
    margin-left: 4px;
    font-size: 11px;
  }
  #workspace {
    display: block;
  }
  .main-shell {
    margin: 0;
  }
  header {
    height: 50px;
  }
  .admin-badge {
    display: none;
  }
  main {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 28px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 17px;
  }
  .card-number {
    font-size: 30px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 20px;
  }
  footer span {
    display: none;
  }
  .map {
    height: 280px;
  }
}
