* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0f1420;
  color: #e6e9ef;
}
button { cursor: pointer; font-size: 14px; border: none; border-radius: 6px; padding: 8px 14px; background: #2a3142; color: #e6e9ef; }
button:hover { background: #353d50; }
button.primary { background: #f0b90b; color: #1a1a1a; font-weight: 600; width: 100%; }
button.primary:hover { background: #ffce3a; }
button.danger { background: #c0392b; }
input, select {
  width: 100%; padding: 10px 12px; margin: 8px 0; border-radius: 6px;
  border: 1px solid #2a3142; background: #161c28; color: #e6e9ef; font-size: 14px;
}
.msg { margin-top: 10px; font-size: 13px; min-height: 18px; }
.msg.err { color: #ff6b6b; }
.msg.ok { color: #51cf66; }
.hint { font-size: 12px; color: #7a8295; text-align: center; }

/* 登录 */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 340px; background: #161c28; padding: 28px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.auth-card h1 { text-align: center; color: #f0b90b; margin: 0 0 18px; font-size: 20px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs button { flex: 1; }
.tabs button.active { background: #f0b90b; color: #1a1a1a; font-weight: 600; }

/* 布局 */
.topbar { height: 54px; background: #161c28; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #2a3142; }
.brand { color: #f0b90b; font-weight: 700; }
.user { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.user button { padding: 6px 10px; }
.side { width: 160px; position: fixed; top: 54px; bottom: 0; background: #131820; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.side .nav { text-align: left; background: transparent; }
.side .nav.active { background: #2a3142; color: #f0b90b; }
.content { margin-left: 160px; padding: 18px; }
.panel { animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 卡片/表格 */
.card { background: #161c28; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.card h3 { margin: 0 0 12px; font-size: 15px; color: #f0b90b; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 120px; background: #1c2330; border-radius: 8px; padding: 14px; }
.stat .num { font-size: 24px; font-weight: 700; }
.stat .lbl { font-size: 12px; color: #7a8295; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #232a38; }
th { color: #7a8295; font-weight: 500; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.tag.on { background: #1e3a25; color: #51cf66; }
.tag.off { background: #3a1e1e; color: #ff6b6b; }
.tag.filled { background: #1e3a25; color: #51cf66; }
.tag.failed { background: #3a1e1e; color: #ff6b6b; }
.tag.skipped { background: #3a341e; color: #ffd43b; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; margin: 0; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { width: 420px; max-width: 92vw; background: #161c28; padding: 20px; border-radius: 12px; }
.modal h3 { margin-top: 0; color: #f0b90b; }
.actions button { margin-right: 6px; margin-top: 4px; }
.small { font-size: 12px; color: #7a8295; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
