:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #203f37;
  background: #f5f6f2;
  font-synthesis: none;
  --green: #176b52;
  --muted: #77827b;
  --line: #e4e8df;
  --soft: #edf3eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 16px;
  background: white;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #edf3eb;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #81ad91;
  outline-offset: 3px;
}
button.primary {
  background: var(--green);
  color: white;
  padding: 12px 19px;
}
button.primary:hover {
  background: #115a44;
}
.outline {
  border-color: #d7e1d6;
  background: transparent;
}
.quiet {
  background: transparent;
}
.danger {
  color: #a13e30;
  background: #fff2eb;
}
.muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
header {
  height: 84px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1200px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #183e31;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.brand-icon {
  background: var(--green);
  color: white;
  border-radius: 11px;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 30px;
  font-size: 27px;
  letter-spacing: -2px;
}
.brand-sub {
  margin-left: 11px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 0 20px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7a8f6f;
}
h1 {
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 12px 0 10px;
}
p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.intro .outline {
  margin-top: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px 24px;
  background: white;
  min-height: 128px;
}
.stat:first-child {
  background: #eaf0e3;
  border-color: #dce6d3;
}
.stat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #65806b;
}
.stat-number {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-top: 12px;
}
.stat-small {
  font-size: 11px;
  color: #839282;
  margin-left: 9px;
  letter-spacing: 0;
  font-weight: 400;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.worker {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  margin-bottom: 26px;
}
.worker-icon {
  height: 42px;
  width: 42px;
  background: var(--soft);
  border-radius: 11px;
  text-align: center;
  line-height: 42px;
  font-size: 25px;
  color: #6e8265;
}
.worker h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.worker p {
  font-size: 12px;
}
.worker-note {
  margin-left: auto;
  font-size: 11px;
  color: #92a08e;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  background: #eff2ef;
  color: #6e7d71;
}
.badge.good {
  color: #267351;
  background: #e9f3e9;
}
.badge.wait {
  color: #aa7b2f;
  background: #fcf2db;
}
.badge.bad {
  color: #a34d3c;
  background: #fbeee8;
}
.badge.active {
  color: #4c6f9a;
  background: #edf3fa;
}
.queue {
  overflow: hidden;
}
.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 27px 20px;
}
.queue-heading h2 .muted {
  margin-left: 8px;
}
.queue-heading p {
  font-size: 12px;
  margin-top: 6px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  color: #8b988e;
}
.search input {
  border: 0;
  outline: none;
  font-size: 12px;
  width: 190px;
  background: transparent;
  color: inherit;
}
.filters {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 0 26px 14px;
}
.filters button {
  padding: 8px 12px;
  font-size: 12px;
  color: #809080;
  font-weight: 400;
}
.filters button.selected {
  background: #eaf1e6;
  color: #36683e;
  font-weight: 600;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
thead {
  font-size: 11px;
  color: #8b988d;
  background: #fafbf8;
}
th {
  padding: 12px 26px;
  font-weight: 500;
}
td {
  padding: 20px 26px;
  border-bottom: 1px solid #eff1ea;
  font-size: 12px;
  color: #748375;
}
th:first-child {
  width: 48%;
}
th:last-child {
  width: 110px;
}
td:first-child {
  color: #2b4536;
}
.task-title {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.6;
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-sub {
  font-size: 10px;
  color: #9ca598;
  margin-top: 4px;
}
.table-scroll {
  overflow-x: auto;
}
.task-view {
  padding: 6px 0;
  color: var(--green);
  font-size: 12px;
  background: transparent;
  white-space: nowrap;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  color: #93a08f;
  font-size: 11px;
}
.pagination button {
  font-size: 11px;
  font-weight: 400;
}
.empty {
  text-align: center;
  padding: 42px 20px;
}
.empty > div {
  font-size: 38px;
  color: #a8ba9e;
}
.empty p {
  font-size: 12px;
}
footer {
  display: flex;
  align-items: center;
  margin-top: 23px;
  gap: 7px;
  color: #94a08f;
  font-size: 10px;
}
footer #updated {
  margin-left: auto;
}
.privacy-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7d9a6e;
}
.login {
  max-width: 490px;
  margin: 45px auto;
  padding: 40px;
}
.login h1 {
  font-size: 30px;
}
.login form {
  margin-top: 30px;
}
.login input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  margin: 8px 0 15px;
  font-size: 13px;
}
.login button {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.hint {
  font-size: 11px;
  color: #8d988a;
  margin-top: 14px;
}
label {
  font-size: 12px;
}
.notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #203f37;
  color: white;
  border-radius: 10px;
  padding: 12px 22px;
  box-shadow: 0 6px 28px #23412f22;
  max-width: 90vw;
  z-index: 10;
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: 650px;
  max-width: calc(100vw - 30px);
  color: inherit;
  box-shadow: 0 20px 90px #14311a22;
}
dialog::backdrop {
  background: #1b322959;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.dialog-top h2 {
  font-size: 22px;
  margin-top: 9px;
}
#detail-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12px;
  color: #899781;
}
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.9;
  color: #304636;
  background: #fbfcf9;
}
.dialog-actions {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-actions > div {
  display: flex;
  gap: 9px;
}
.receipt {
  padding: 13px;
  background: #edf5ea;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1250px) {
  main {
    margin: 0 32px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 0 20px;
    height: 68px;
  }
  .brand-sub,
  .header-right #connection {
    display: none;
  }
  main {
    margin: 0 18px;
    padding-top: 28px;
  }
  h1 {
    font-size: 25px;
  }
  .intro {
    align-items: flex-start;
    gap: 6px;
  }
  .intro .outline {
    font-size: 11px;
    padding: 9px;
    white-space: nowrap;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 17px;
    min-height: 110px;
  }
  .worker {
    padding: 17px;
    gap: 10px;
  }
  .worker-note {
    display: none;
  }
  .queue-heading {
    padding: 20px;
    align-items: flex-start;
    gap: 13px;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .filters {
    padding-left: 13px;
    overflow-x: auto;
  }
  .filters button {
    white-space: nowrap;
  }
  th,
  td {
    padding: 14px 18px;
  }
  .task-title {
    max-width: 220px;
  }
  th:first-child {
    width: auto;
  }
  table {
    min-width: 580px;
  }
  footer {
    line-height: 1.8;
    flex-wrap: wrap;
  }
  footer #updated {
    width: 100%;
    margin-left: 12px;
  }
  .login {
    margin-top: 10px;
    padding: 28px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions > div {
    flex-wrap: wrap;
  }
  dialog {
    padding: 22px;
  }
}
