:root {
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  color: #172033;
  background: #f4f6fa;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  min-height: 64px; padding: 0 5%; display: flex; align-items: center;
  justify-content: space-between; background: #152238; color: white;
}
.brand { font-weight: 700; font-size: 20px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a, button.link { color: white; text-decoration: none; }
nav form { margin: 0; }
button.link { background: transparent; padding: 0; }
main { width: min(1180px, 92%); margin: 32px auto; }
h1 { margin-top: 0; }
.card {
  background: white; border-radius: 12px; padding: 22px;
  box-shadow: 0 4px 18px rgba(20, 35, 60, .06); margin-bottom: 22px;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stats .card { display: flex; flex-direction: column; margin: 0; }
.stats b { font-size: 32px; color: #1768e5; }
.stats span { color: #687386; margin-top: 6px; }
.stats .warning b { color: #d97706; }
.grid-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #526074; font-size: 14px; }
input, select {
  width: 100%; padding: 10px 12px; border: 1px solid #d6dce7;
  border-radius: 7px; font: inherit; background: white;
}
textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d6dce7;
  border-radius: 7px; font: inherit; resize: vertical;
}
button {
  border: 0; border-radius: 7px; padding: 11px 16px; cursor: pointer;
  background: #1768e5; color: white; font: inherit; white-space: nowrap;
}
button.secondary { background: #526074; }
button.danger { background: #bd2525; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #edf0f5; text-align: left; }
th { color: #687386; font-size: 13px; }
.renew-form { display: flex; gap: 7px; }
.renew-form input { width: 85px; }
.flash { padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; }
.flash.success { background: #e8f8ef; color: #176b3a; }
.flash.error { background: #fdecec; color: #a32929; }
.login { width: min(420px, 100%); margin: 80px auto; }
.title-row, .reminder, .actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reminder pre { white-space: pre-wrap; background: #f5f7fb; padding: 14px; border-radius: 8px; }
.actions form { margin: 0; }
.search-form { display: flex; gap: 10px; align-items: center; }
.search-form input { max-width: 440px; }
.search-form a { color: #1768e5; }
.copy-source {
  position: fixed; left: -9999px; top: 0; width: 1px; height: 1px;
}
.copy-button.copied { background: #18864b; }
.check-label { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; }
.check-label input { width: auto; }
.table-actions { display: flex; gap: 8px; }
.table-actions form { margin: 0; }
.bulk-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.hint { color: #687386; }
.status-healthy { color: #18864b; }
.status-failed { color: #bd2525; }
.status-unknown { color: #687386; }
.empty { text-align: center; color: #687386; padding: 50px; }
@media (max-width: 800px) {
  header, nav { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .stats, .grid-form { grid-template-columns: 1fr 1fr; }
  table { display: block; overflow-x: auto; }
  .reminder, .title-row { align-items: stretch; flex-direction: column; }
}
@media (max-width: 500px) {
  .stats, .grid-form { grid-template-columns: 1fr; }
}
