:root {
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  color: #292524;
  background: #faf8f5;
  --orange: #c2410c;
  --line: #e7e1da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header span {
  margin-left: 18px;
  color: #78716c;
}
main {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 24px;
}
h1 {
  font-size: 25px;
  margin-top: 0;
}
h2 {
  font-size: 19px;
}
p {
  color: #78716c;
}
section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
#login {
  max-width: 460px;
  margin: 70px auto;
}
form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #d6d3d1;
  border-radius: 7px;
  padding: 9px;
  background: #fff;
  color: inherit;
}
textarea {
  min-height: 80px;
}
button {
  font: inherit;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 9px 15px;
  cursor: pointer;
}
button:hover {
  background: #9a3412;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  background: #fff1e6;
  color: var(--orange);
}
button.danger {
  background: #b91c1c;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #fb923c;
  outline-offset: 3px;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
nav button {
  background: #fff;
  color: #57534e;
  border: 1px solid var(--line);
}
nav button.on {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  vertical-align: top;
}
th {
  color: #78716c;
  font-weight: 500;
}
.scroll {
  overflow: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric strong {
  display: block;
  font-size: 30px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#message {
  white-space: pre-wrap;
  color: #9a3412;
  margin-bottom: 14px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(520px, 90vw);
  padding: 24px;
}
dialog::backdrop {
  background: #29252460;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.small {
  font-size: 12px;
  color: #78716c;
  overflow-wrap: anywhere;
}
.pill {
  background: #fff1e6;
  border-radius: 20px;
  padding: 3px 8px;
  color: #9a3412;
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .cards,
  .split {
    grid-template-columns: 1fr 1fr;
  }
  header span {
    display: none;
  }
  main {
    padding: 0 12px;
  }
  section {
    padding: 16px;
  }
}
@media (max-width: 480px) {
  .cards,
  .split {
    grid-template-columns: 1fr;
  }
}
