:root {
  --ink: #182f2a;
  --muted: #61746a;
  --green: #245849;
  --paper: #f7f8f2;
  --line: #dce3d7;
  --white: #fff;
  --red: #a13c37;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1200px;
  margin: auto;
  padding: 26px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
a:hover {
  color: #0c3729;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}
nav a {
  text-decoration: none;
}
a.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.brandmark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  font-size: 24px;
}
main {
  max-width: 1080px;
  min-height: 72vh;
  margin: 0 auto;
  padding: 48px 36px 64px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.4px;
  max-width: 850px;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.2px;
  margin: 0 0 10px;
}
.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  white-space: pre-wrap;
  margin-bottom: 34px;
}
.hero {
  padding: 8px 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 18px;
}
.card {
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  border-color: #94b4a4;
  box-shadow: 0 5px 18px #182f2a08;
}
.card a.title {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.card p {
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.pill {
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  background: #edf2e9;
  color: #315441;
  padding: 4px 10px;
  border-radius: 99px;
}
.pill.shipped {
  background: #dff0e5;
}
.pill.in_progress {
  background: #e5edf7;
  color: #315778;
}
.pill.rejected,
.pill.failed {
  background: #f8e8e5;
  color: var(--red);
}
.pill.pending {
  background: #fbefd9;
  color: #806022;
}
.toolbar,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.toolbar {
  justify-content: space-between;
}
.actions {
  margin-bottom: 0;
}
button,
.button {
  border: 1px solid var(--green);
  border-radius: 9px;
  color: white;
  background: var(--green);
  padding: 11px 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
.button:hover {
  background: #163f33;
  color: white;
}
button.secondary,
.button.secondary {
  background: white;
  color: var(--green);
  border-color: var(--line);
}
button.danger {
  background: white;
  color: var(--red);
  border-color: #dfbab7;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd6c9;
  background: white;
  color: var(--ink);
  border-radius: 8px;
  font: inherit;
  margin-top: 7px;
}
textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  margin-bottom: 10px;
}
label.check input {
  width: 18px;
  height: 18px;
  margin: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #54977e;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #54977e;
  outline-offset: 4px;
}
.narrow {
  max-width: 520px;
  margin: auto;
}
.hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 18px;
}
.error {
  color: var(--red);
  font-size: 14px;
  line-height: 1.6;
}
.error:empty {
  display: none;
}
.empty {
  padding: 35px;
  background: #eef2e8;
  border: 1px dashed #bbc9b6;
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.crumb {
  display: block;
  font-size: 14px;
  margin-bottom: 28px;
}
.stats {
  display: flex;
  gap: 20px;
  margin: 24px 0 36px;
}
.stat {
  padding: 24px;
  border-radius: 14px;
  background: #e9efe3;
  flex: 1;
}
.stat strong {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 24px;
}
.section {
  margin-top: 32px;
}
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 24px 0;
}
.row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.row:first-child {
  border-top: 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 18px;
}
details {
  margin-top: 20px;
}
pre {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eff3eb;
  border-radius: 8px;
  padding: 18px;
  max-height: 450px;
  overflow: auto;
}
.secret {
  border: 1px solid #9ab7a4;
  background: #edf5ec;
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
}
.secret p {
  margin-top: 0;
}
footer {
  max-width: 1200px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 24px 36px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  gap: 20px;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100vw - 48px);
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px #0002;
  display: none;
}
.loading {
  color: var(--muted);
  padding: 40px 0;
}
.filters {
  display: flex;
  gap: 12px;
}
.filters label {
  margin: 0;
}
.filters select {
  margin: 0;
  width: auto;
}
.quiet {
  color: var(--muted);
}
@media (max-width: 700px) {
  header {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  main {
    padding: 30px 20px 48px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .card,
  .panel {
    padding: 22px;
  }
  h1 {
    letter-spacing: -1px;
  }
  nav {
    gap: 16px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  footer {
    padding: 24px 20px;
    flex-wrap: wrap;
  }
  .filters {
    width: 100%;
    flex-wrap: wrap;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

.grid > .pager {
  grid-column: 1/-1;
}
