:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #203631;
  background: #f4f5f1;
  font-synthesis: none;
  --ink: #203631;
  --muted: #6c7c76;
  --line: #dce3dc;
  --accent: #176b51;
  --pale: #e9f1e9;
  --danger: #b24d39;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 15px;
  background: #fff;
  color: var(--ink);
}
button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--pale);
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.primary:hover:not(:disabled) {
  background: #10533e;
}
button.danger {
  color: var(--danger);
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b8d8c7;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
label > input,
label > select,
label > textarea {
  margin-top: 7px;
}
label:has(input[type="checkbox"]) {
  display: flex;
  gap: 8px;
  align-items: center;
}
input[type="checkbox"] {
  width: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 25px 0;
}
.metric strong {
  display: block;
  font-size: 34px;
  margin: 12px 0;
  font-weight: 600;
}
.metric {
  margin: 0;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  background: #edf0ed;
  color: var(--muted);
  white-space: nowrap;
}
.badge.good {
  background: #e6f3e9;
  color: #217147;
}
.badge.bad {
  background: #fbece7;
  color: #b24d39;
}
.badge.wait {
  background: #fff4db;
  color: #91661b;
}
.notice {
  border: 1px solid #d8dfe0;
  border-left: 3px solid var(--accent);
  padding: 15px 18px;
  border-radius: 8px;
  background: #f8faf7;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice.error {
  border-left-color: var(--danger);
  color: var(--danger);
  background: #fff6f2;
}
.hidden {
  display: none !important;
}
.table-wrap {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  background: #fafbf9;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf0eb;
}
td button {
  padding: 6px 9px;
  font-size: 12px;
}
td.num {
  text-align: right;
  font-family: ui-monospace, monospace;
}
tr:last-child td {
  border-bottom: 0;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 45px 10px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar label {
  flex: 1;
  min-width: 150px;
}
.toolbar .compact {
  flex: 0 0 110px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.stack > * + * {
  margin-top: 16px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: min(760px, 95vw);
  width: 760px;
  padding: 28px;
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 100px #0c302d22;
}
dialog::backdrop {
  background: #15332b66;
  backdrop-filter: blur(3px);
}
dialog .grid {
  margin-bottom: 20px;
}
.full {
  grid-column: 1/-1;
}
.checks {
  border: 1px solid var(--line);
  padding: 12px;
  max-height: 180px;
  overflow: auto;
  border-radius: 8px;
  display: grid;
  gap: 9px;
}
pre {
  background: #f7f8f5;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
a {
  color: var(--accent);
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #183c30;
  color: white;
  border-radius: 10px;
  z-index: 100;
  max-width: 90vw;
  font-size: 13px;
  white-space: pre-wrap;
}
.toast.error {
  background: #8c3f31;
}
.loading {
  color: var(--muted);
  padding: 30px 0;
}
.nowrap {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .grid,
  .metrics {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  h1 {
    font-size: 24px;
  }
  .toolbar label {
    min-width: 130px;
  }
  dialog {
    padding: 20px;
  }
  .metric strong {
    font-size: 28px;
  }
  .row {
    gap: 8px;
  }
}
