:root {
  --green: #215e3a;
  --ink: #233d30;
  --paper: #f6f5ef;
  --line: #dedfd5;
  --muted: #5b675d;
  --red: #912f35;
  --amber: #795817;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
aside {
  width: 248px;
  background: #193d2c;
  color: white;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  font:
    27px Georgia,
    serif;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  display: block;
  font: 9px/2.4 sans-serif;
  letter-spacing: 2px;
  opacity: 0.8;
}
.phase {
  margin-top: 48px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #d0dccc;
}
nav {
  margin: 18px -12px;
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #e8eee9;
  border: 0;
  border-radius: 6px;
  padding: 13px 14px;
  margin: 4px 0;
  cursor: pointer;
  font: inherit;
}
nav button:hover,
nav button[aria-current="page"] {
  background: #305640;
  color: white;
}
.aside-note {
  margin-top: auto;
  color: #d0dccc;
  font:
    19px/1.5 Georgia,
    serif;
}
.aside-note p {
  font: 11px/1.8 sans-serif;
  letter-spacing: 0.5px;
}
main {
  margin-left: 248px;
  padding: 0 44px 25px;
  max-width: 1800px;
}
header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
}
h1 {
  font:
    42px/1.15 Georgia,
    serif;
  font-weight: 400;
  margin: 34px 0 14px;
}
h2 {
  font:
    25px/1.3 Georgia,
    serif;
  font-weight: 400;
  margin: 0 0 14px;
}
h3 {
  font-size: 16px;
  margin: 8px 0;
}
p {
  margin: 10px 0 20px;
}
.intro {
  color: var(--muted);
  max-width: 760px;
}
.badge {
  display: inline-block;
  background: #e4ece0;
  color: #214c30;
  border-radius: 30px;
  padding: 4px 11px;
  font-size: 11px;
  letter-spacing: 0.2px;
}
.badge.warn {
  background: #f3e9d2;
  color: var(--amber);
}
.badge.danger {
  background: #f6e3e1;
  color: var(--red);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.metric,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.metric strong {
  font:
    37px Georgia,
    serif;
  display: block;
  margin: 7px 0;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.notice {
  border-left: 3px solid var(--amber);
  background: #f0eadc;
  padding: 18px 22px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
}
.notice p {
  margin: 4px 0;
  color: #5e512e;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row span {
  color: var(--muted);
}
a {
  color: var(--green);
}
button,
input,
select {
  font: inherit;
}
button,
.action {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  padding: 9px 15px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink);
}
button:hover,
.action:hover {
  background: #edf1e8;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #b17112;
  outline-offset: 3px;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
input,
select {
  background: white;
  border: 1px solid #9eaa9b;
  border-radius: 4px;
  padding: 10px;
  max-width: 100%;
  color: var(--ink);
}
input {
  width: 260px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fafaf7;
  padding: 12px;
}
.card .body {
  padding: 16px;
}
.card p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.card summary {
  cursor: pointer;
  margin-top: 12px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}
th {
  background: #f1f3ed;
  font-weight: 600;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    14px/1.7 ui-monospace,
    monospace;
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 6px;
  max-height: 70vh;
  overflow: auto;
}
details {
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
}
footer {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 260px;
  top: -60px;
  background: white;
  padding: 12px;
  z-index: 2;
}
.skip:focus {
  top: 4px;
}
#error {
  background: #f6e3e1;
  border: 1px solid #b67776;
  color: var(--red);
  padding: 20px;
  margin-top: 20px;
}
.empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.hero h1 {
  max-width: 730px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  aside {
    width: 210px;
    padding: 28px 18px;
  }
  .brand {
    font-size: 23px;
  }
  main {
    margin-left: 210px;
    padding: 0 24px 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  aside {
    position: static;
    width: auto;
    padding: 20px;
  }
  .phase,
  .aside-note {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin: 15px -8px 0;
    gap: 6px;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 12px;
  }
  main {
    margin: 0;
    padding: 0 18px 20px;
  }
  header {
    height: 55px;
    font-size: 8px;
    gap: 8px;
  }
  h1 {
    font-size: 34px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 30px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .filters {
    align-items: stretch;
  }
  .filters label {
    flex: 1;
    min-width: 130px;
  }
  input {
    width: 100%;
  }
  .panel {
    padding: 18px;
  }
  .skip {
    left: 12px;
  }
  .row {
    flex-wrap: wrap;
  }
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #193d2c;
  padding: 24px;
}
.auth-card {
  margin: 0;
  width: 100%;
  max-width: 460px;
  padding: 36px;
  border-radius: 12px;
  background: #f6f5ef;
}
.auth-card h1 {
  font-size: 36px;
}
.auth-card label {
  margin: 18px 0;
}
.auth-card input {
  width: 100%;
}
.auth-card button {
  width: 100%;
}
.primary {
  background: #215e3a;
  color: white;
}
.primary:hover {
  background: #193d2c;
}
.account-page {
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 24px 40px;
}
.account-page section {
  margin: 28px 0;
}
#setup-link {
  width: 100%;
}
#message:not(:empty) {
  padding: 12px;
  background: #f0eadc;
  color: #5e512e;
  border-radius: 5px;
}
[hidden] {
  display: none !important;
}
