* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #303133;
}
.muted { color: #909399; font-size: 13px; font-weight: normal; }
.error { color: #f56c6c; font-size: 13px; margin: 12px 0 0; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 360px; max-width: 100%; }
.login-card h2 { margin: 0 0 16px; font-size: 20px; text-align: center; }
.full { width: 100%; }

.layout { min-height: 100vh; }
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  padding: 0 16px;
}
.brand { font-size: 16px; margin-right: 8px; white-space: nowrap; }
.nav { border-bottom: none !important; flex: none; }
.spacer { flex: 1; }

.el-main { padding: 16px 16px 32px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.toolbar h2 { margin: 0; font-size: 17px; flex: 1; white-space: nowrap; }
.inline-form { margin-bottom: 4px; }
.inline-form .el-form-item { margin-right: 10px; }
.codes-box { margin: 12px 0; }
.codes-box pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-all; font-size: 13px; }
code { font-size: 12px; word-break: break-all; }
.pager { margin-top: 12px; justify-content: flex-end; flex-wrap: wrap; }

.quota-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.quota-card { cursor: pointer; }
.quota-card.active { border-color: #409eff; }
.quota-card.empty { opacity: .6; }
.quota-title { font-weight: 600; margin-bottom: 8px; }
.quota-num { font-size: 26px; font-weight: 600; color: #409eff; }
.quota-card.empty .quota-num { color: #909399; }
.quota-sub { color: #909399; font-size: 12px; margin-top: 6px; line-height: 1.6; }
.issue-card { max-width: 560px; }
.sub-title { margin: 20px 0 10px; font-size: 15px; }

@media (max-width: 640px) {
  .brand { display: none; }
  .el-main { padding: 12px 8px 24px; }
}
