:root {
  color-scheme: light;
  --ink: #183e36;
  --muted: #65756c;
  --paper: #f7f5ef;
  --card: #fffdf8;
  --line: #dfe5dc;
  --green: #214e42;
  --sage: #e9efe6;
  --gold: #f2d6a6;
  --red: #9b3e36;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  background: var(--green);
  color: white;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:hover:not(:disabled) {
  filter: brightness(0.95);
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.quiet {
  background: transparent;
  color: inherit;
  padding: 8px 0;
  text-decoration: underline;
}
.small {
  padding: 7px 13px;
  font-size: 13px;
}
.sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #102f2b;
  color: #eaf0e5;
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 43px;
  letter-spacing: -2px;
  line-height: 1.1;
}
.brand span {
  display: block;
  font: 12px system-ui;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--gold);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.sidebar .eyebrow {
  color: #9db5a8;
  font-size: 10px;
  margin: 27px 0;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  padding: 11px 12px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  color: #c8d9cf;
  display: flex;
  gap: 13px;
}
nav a span {
  width: 17px;
  text-align: center;
}
nav a[aria-current="page"] {
  background: #274b43;
  color: #fff;
}
nav a:hover {
  background: #23463e;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 30px;
  font-size: 11px;
  color: #b9cbc1;
}
.environment {
  display: inline-block;
  border: 1px solid #527064;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.sidebar-foot button {
  font-size: 12px;
}
main {
  margin-left: 244px;
  padding: 25px 48px 65px;
  max-width: 1600px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}
.top > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    43px/1.15 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 9px 0 14px;
}
h2 {
  font:
    27px/1.25 Georgia,
    serif;
  margin-bottom: 14px;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 7px;
}
.intro {
  margin: 35px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.intro p {
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}
.intro .eyebrow {
  margin-bottom: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.card,
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px;
}
.metric .label {
  font-size: 12px;
  color: var(--muted);
}
.metric .number {
  display: block;
  font:
    36px/1.25 Georgia,
    serif;
  margin: 8px 0;
}
.metric .hint {
  font-size: 11px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.card p:last-child {
  margin-bottom: 0;
}
.card .eyebrow {
  margin-bottom: 10px;
}
.hero {
  background: var(--sage);
  border: 0;
}
.hero h2 {
  font-size: 31px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row p {
  margin: 3px 0;
  font-size: 13px;
  color: var(--muted);
}
.row a {
  font-size: 13px;
}
.tag {
  border-radius: 20px;
  background: var(--sage);
  padding: 3px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.tag.warn {
  background: #faebcf;
  color: #795721;
}
.tag.bad {
  background: #f8e7e2;
  color: var(--red);
}
.section {
  margin-top: 25px;
}
.full {
  grid-column: 1/-1;
}
.tabs {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
  overflow: auto;
}
.tabs button {
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
}
.tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--green);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
td,
th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td button {
  font-size: 12px;
}
.empty {
  padding: 32px 18px;
  text-align: center;
  background: #f4f5ef;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 17px 0;
}
.toolbar label {
  flex: 1;
  min-width: 180px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 5px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #bccabe;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  margin-top: 5px;
  min-height: 44px;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--green);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 18px;
}
.form-actions p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  max-width: 600px;
  width: calc(100% - 30px);
  color: var(--ink);
  background: var(--card);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #102f2ba8;
}
dialog h2 {
  font-size: 32px;
}
dialog button {
  margin-top: 10px;
}
dialog .quiet {
  margin-left: 15px;
}
.message {
  padding: 14px 16px;
  background: var(--sage);
  border-radius: 12px;
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.customer {
  background: #f1eee5;
}
.message small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.error {
  background: #f7e9e4;
  color: #803a31;
  padding: 13px 17px;
  border-radius: 9px;
  margin-top: 14px;
}
.success {
  background: var(--sage);
  padding: 13px 17px;
  border-radius: 9px;
  margin-top: 14px;
}
progress {
  width: 100%;
  height: 9px;
  accent-color: var(--green);
}
.budget {
  margin: 17px 0;
}
.budget p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
}
.welcome {
  max-width: 610px;
  margin: 100px auto;
}
.welcome h1 {
  font-size: 54px;
}
.welcome > p {
  color: var(--muted);
}
.welcome button {
  margin-top: 18px;
}
.skip {
  position: absolute;
  left: 260px;
  top: -80px;
  z-index: 100;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 10px;
}
.muted {
  color: var(--muted);
}
.links {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  font-size: 13px;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.loading {
  padding: 60px 20px;
  color: var(--muted);
}
.subtle {
  border-left: 3px solid #c5d4bf;
  padding-left: 17px;
}
.badge-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.record-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.record-title h3 {
  margin: 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1400px) {
  main {
    padding-left: 65px;
    padding-right: 65px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 205px;
    padding: 30px 18px;
  }
  main {
    margin-left: 205px;
    padding: 20px 25px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    gap: 16px;
  }
  .card {
    padding: 19px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 19px 18px;
  }
  .brand {
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .brand span {
    margin: 0;
  }
  .sidebar > .eyebrow {
    display: none;
  }
  .sidebar-foot {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
  }
  .sidebar-foot p {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 19px;
    gap: 4px;
  }
  nav a {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 12px;
  }
  nav a span {
    display: none;
  }
  main {
    margin: 0;
    padding: 18px 18px 40px;
  }
  .top {
    font-size: 10px;
  }
  .top > div {
    gap: 7px;
  }
  h1 {
    font-size: 35px;
  }
  .intro {
    margin-top: 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric .number {
    font-size: 29px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .intro {
    display: block;
  }
  .intro button {
    margin-top: 15px;
  }
  .skip {
    left: 15px;
  }
  .welcome {
    margin: 45px 0;
  }
  .welcome h1 {
    font-size: 42px;
  }
  .card {
    padding: 18px;
  }
  dialog {
    padding: 23px;
  }
  .top #freshness {
    max-width: 150px;
  }
  .full {
    grid-column: auto;
  }
}
