:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #142033;
  background: #eef3f9;
  line-height: 1.5;
}
a { color: #0c4dad; }
.bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 22px;
  background: #0b2f6b;
  color: #fff;
}
.bar strong { font-size: 18px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.bar a { color: #fff; text-decoration: none; }
.bar a.on { text-decoration: underline; text-underline-offset: 4px; }
main { max-width: 1080px; margin: 0 auto; padding: 22px; }
.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(16, 42, 84, 0.06);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards a { text-decoration: none; color: inherit; }
.cards strong { display: block; font-size: 28px; margin-top: 6px; }
h1 { margin: 0 0 14px; font-size: 26px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e4ebf4; vertical-align: top; }
th { font-size: 13px; color: #5c6d84; font-weight: 600; }
.muted { color: #5c6d84; font-size: 13px; }
.flash, .error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
}
.flash { background: #e7f6ee; color: #14653a; }
.error { background: #fdecea; color: #9d2218; }
label { display: grid; gap: 6px; margin: 0 0 12px; font-size: 14px; }
input, textarea {
  width: 100%;
  border: 1px solid #c9d5e6;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #142033;
  background: #fff;
}
textarea { min-height: 280px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
button, .btn {
  border: 0;
  border-radius: 10px;
  background: #0c4dad;
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.ghost, .btn.ghost { background: #e7eef8; color: #16315f; }
button.danger { background: #fdecea; color: #9d2218; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login .card { width: min(420px, 100%); }
.unread td { font-weight: 700; }
@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  .bar { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; }
}
