* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f4f6f8;
  color: #17202a;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
.shell { max-width: 1180px; margin: 0 auto; padding: 24px; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand h1 { margin: 0; font-size: 24px; }
.brand span { color: #6b7280; font-size: 13px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.card h2, .card h3 { margin: 0 0 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { color: #4b5563; font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  font-size: 14px;
}
textarea { min-height: 80px; resize: vertical; }
button {
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
button.secondary { background: #4b5563; }
button.danger { background: #dc2626; }
button.ghost { background: #eef2ff; color: #1d4ed8; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 14px;
}
.notice.error { background: #fef2f2; color: #b91c1c; }
.hidden { display: none !important; }
.metric {
  border-left: 4px solid #2563eb;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
}
.metric span { color: #6b7280; font-size: 12px; }
.metric strong { display: block; margin-top: 8px; font-size: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 9px; text-align: left; vertical-align: top; }
th { color: #4b5563; background: #f9fafb; font-weight: 700; }
.tag { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-size: 12px; }
.tag.warn { background: #fff7ed; color: #c2410c; }
.tag.ok { background: #ecfdf5; color: #047857; }
.code {
  padding: 12px;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
@media (max-width: 760px) {
  .shell { padding: 14px; }
  .top { align-items: flex-start; flex-direction: column; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}
