* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1d2733;
  background: #f3f6f8;
}
a { color: #29428f; text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.side {
  width: 240px;
  background: #14275c;
  color: #fff;
  padding: 18px 14px;
  flex-shrink: 0;
}
.brand { margin-bottom: 14px; text-align: center; }
.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 8px 8px 4px;
}
.brand small { display: block; font-size: 12px; font-weight: 400; color: #c5d7ee; margin-top: 8px; letter-spacing: 0.12em; }
.side a {
  display: block;
  color: #e8eef3;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 6px;
}
.side a.on, .side a:hover { background: #243e86; }
.main { flex: 1; padding: 22px 28px 40px; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 12px; }
.user { color: #5c6b7a; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.card, .panel {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 40, 64, 0.06);
}
.card b { display: block; font-size: 28px; margin-top: 6px; }
.card span { color: #6b7c8a; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e6edf2; vertical-align: top; }
th { color: #5d7182; font-weight: 600; background: #f7fafc; }
.low { background: #fff6f4; }
.msg { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.msg.ok { background: #e7f6ee; color: #0d6e4f; }
.msg.err { background: #fdecec; color: #a12626; }
.form label { display: block; font-size: 13px; color: #526373; margin: 8px 0 4px; }
input, select, button, textarea {
  font-family: inherit;
  font-size: 14px;
}
input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d5e0e8;
  border-radius: 8px;
  background: #fff;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  border: 0;
  background: #29428f;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  width: auto;
}
.btn:hover { background: #3454ad; }
.btn.gray { background: #5d7182; }
.btn.red { background: #b42318; }
.btn.line { background: #fff; color: #29428f; border: 1px solid #29428f; }
.btn.line:hover { background: #eef3fb; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-top: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.st-wait { background: #fff4d6; color: #8a5a00; }
.st-picked { background: #e7f0ff; color: #1d4e89; }
.st-sent { background: #efe7ff; color: #5b3d99; }
.st-run { background: #e5f7ef; color: #0d6e4f; }
.st-done { background: #d9f5e5; color: #0b6b3a; }
.st-bad { background: #ffe1e1; color: #a12626; }
.st-stop { background: #eee; color: #666; }
.filters a { margin-right: 8px; }
.filters .on { font-weight: 700; }
.guest {
  background: #070b14;
}
.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 28px 16px;
  background:
    radial-gradient(ellipse 55% 42% at 50% 18%, rgba(45, 155, 207, 0.35), transparent 62%),
    radial-gradient(ellipse 70% 48% at 50% 100%, rgba(41, 66, 143, 0.72), transparent 70%),
    linear-gradient(180deg, #05070d 0%, #0c1733 48%, #16357a 100%);
}
.cover-arc {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  border: 16px solid transparent;
  border-top-color: rgba(45, 155, 207, 0.45);
  border-right-color: rgba(41, 66, 143, 0.35);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cover-inner {
  position: relative;
  width: 460px;
  max-width: 100%;
}
.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 26px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #2d9bcf, #29428f);
}
.cover-logo {
  width: 100%;
  height: auto;
  display: block;
}
.cover-sub {
  margin: 12px 0 14px;
  padding-top: 12px;
  border-top: 1px solid #e3eaf3;
  text-align: center;
  color: #29428f;
  font-size: 13px;
  letter-spacing: 0.24em;
}
.login-card label { display: block; font-size: 13px; color: #526373; margin: 8px 0 4px; }
.login-card .btn { width: 100%; padding: 10px 14px; }
.login-card input:focus {
  outline: none;
  border-color: #2d9bcf;
  box-shadow: 0 0 0 3px rgba(45, 155, 207, 0.22);
}
.hint { color: #5d7182; font-size: 13px; }
.print-only { display: none; }
.line-table input, .line-table select { width: 100%; }
@media (max-width: 900px) {
  .layout { display: block; }
  .side { width: auto; }
  .cards, .grid2, .row { grid-template-columns: 1fr; }
}
@media print {
  .side, .top, .actions, .msg, .no-print { display: none !important; }
  .print-only { display: block; }
  .print-brand img { width: 280px; height: auto; }
  .main { padding: 0; }
  body { background: #fff; }
}
