:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #18352c;
  background: #f4f6f2;
  line-height: 1.5;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
aside {
  background: #123b2e;
  color: #fff;
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand {
  font-family: Georgia, serif;
  font-size: 27px;
  letter-spacing: -1px;
  margin-bottom: 42px;
}
.brand span {
  display: block;
  font: 11px system-ui;
  letter-spacing: 3px;
  color: #b8d9b6;
  margin-top: 7px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  color: #d0e0d3;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 500;
}
nav button.active {
  background: #2c5743;
  color: white;
}
.aside-note {
  margin-top: auto;
  color: #a4bfae;
  font-size: 12px;
  padding-top: 30px;
}
main {
  margin-left: 230px;
  padding: 36px 42px;
  width: calc(100% - 230px);
  max-width: 1700px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 2px 0;
}
h2 {
  font-size: 19px;
  margin: 0 0 14px;
}
h3 {
  font-size: 15px;
}
.eyebrow {
  font-size: 10px;
  color: #6b7e6d;
  letter-spacing: 2px;
  margin: 0;
}
button {
  cursor: pointer;
  background: #21543d;
  color: #fff;
  border: 1px solid #21543d;
  border-radius: 7px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
}
button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #fff;
  color: #21543d;
  border-color: #ccd7c8;
}
.danger {
  background: #b84435;
  border-color: #b84435;
}
.small {
  padding: 5px 8px;
  font-size: 12px;
}
input,
select,
textarea {
  border: 1px solid #cbd6c7;
  border-radius: 6px;
  background: #fff;
  padding: 9px 11px;
  color: #18352c;
  font: inherit;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: #21543d;
}
textarea {
  width: 100%;
  min-height: 100px;
}
label {
  display: grid;
  gap: 6px;
  color: #5c7060;
  font-size: 12px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 7px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input[type="search"] {
  min-width: 230px;
}
.card {
  border: 1px solid #dee5d9;
  background: #fff;
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.stat {
  font-size: 30px;
  font-weight: 700;
}
.muted {
  color: #6a7c6c;
  font-size: 12px;
}
.pill {
  display: inline-block;
  padding: 3px 8px;
  background: #e7efe2;
  border-radius: 30px;
  font-size: 11px;
  white-space: nowrap;
}
.pill.warn {
  background: #fff0d7;
  color: #855410;
}
.pill.bad {
  background: #fbe4df;
  color: #a33120;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #dde5d8;
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: #edf1e8;
  color: #647361;
  font-weight: 600;
  padding: 12px;
}
td {
  padding: 13px 12px;
  border-top: 1px solid #e9eee3;
  vertical-align: top;
}
td input,
td select {
  min-width: 130px;
  max-width: 210px;
}
td input[type="checkbox"] {
  min-width: 0;
}
tr:hover {
  background: #f7faf4;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}
.pager div {
  display: flex;
  gap: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 580px;
}
.empty {
  padding: 36px;
  text-align: center;
  color: #7c8b77;
}
#notice:not(:empty) {
  padding: 12px 16px;
  border-radius: 8px;
  background: #e4efdc;
  border: 1px solid #c9daba;
  margin-bottom: 20px;
}
#notice.error {
  background: #fbece7;
  color: #9c3924;
  border-color: #edcabe;
}
dialog {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 70px #123b2e44;
  padding: 28px;
  width: min(900px, 94vw);
  max-height: 90vh;
}
dialog::backdrop {
  background: #123b2e66;
}
.close {
  float: right;
  background: none;
  color: #65806a;
  border: 0;
  padding: 0 0 12px;
  font-size: 24px;
}
.progress {
  height: 8px;
  background: #e5eddf;
  border-radius: 8px;
  overflow: hidden;
}
.progress span {
  display: block;
  background: #4c8454;
  height: 100%;
}
footer {
  font-size: 11px;
  color: #8b9985;
  margin-top: 40px;
}
.warning {
  padding: 12px;
  background: #fff6df;
  border-radius: 7px;
  color: #8a6217;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.upload-list {
  max-height: 430px;
  overflow: auto;
}
.upload-list th {
  position: sticky;
  top: 0;
}
.aside-note + button {
  background: #2c5743;
  color: white;
  border-color: #53705d;
}
a {
  color: #21543d;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #80aa66;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
p.error:not(:empty) {
  color: #9c3924;
  background: #fbece7;
  border-radius: 7px;
  padding: 10px 12px;
}
.checklist {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #dee5d9;
  border-radius: 8px;
}
.checklist label.check {
  color: #18352c;
  font-size: 13px;
}
.route-map {
  display: block;
  width: 100%;
  height: auto;
  background: #f7faf4;
  border-radius: 10px;
}
.route-line {
  fill: none;
  stroke: #80aa66;
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
}
.route-stop circle {
  fill: #21543d;
}
.route-map text {
  fill: #fff;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}
.route-home circle {
  fill: none;
  stroke: #b8862b;
  stroke-width: 3;
}
.route-map .route-home text {
  fill: #8a6217;
  font-size: 12px;
}
#login-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #123b2e;
  z-index: 10;
}
#login-form {
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
  margin: 0;
}
#login-form .brand {
  color: #123b2e;
  font-size: 24px;
  margin-bottom: 8px;
}
#login-form .brand span {
  color: #6b7e6d;
}
#login-form input {
  width: 100%;
}
body.signed-out > aside,
body.signed-out > main {
  display: none;
}
#user-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #d0e0d3;
  font-size: 12px;
}
#user-box button {
  justify-self: start;
}
@media (max-width: 850px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .brand {
    margin-bottom: 16px;
    font-size: 23px;
  }
  body {
    display: block;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  nav button {
    padding: 8px;
  }
  .aside-note {
    display: none;
  }
  #local-login {
    margin-top: 12px;
  }
  main {
    width: 100%;
    margin: 0;
    padding: 24px 16px;
  }
  h1 {
    font-size: 25px;
  }
}
#login-error:empty {
  display: none;
}
