:root {
  --hs-blue: #315fc4;
  --hs-bg: #f5f7fa;
  --hs-text: #273348;
  --el-color-primary: #315fc4;
  --el-color-primary-light-3: #6f8fd6;
  --el-color-primary-light-5: #98afe2;
  --el-color-primary-light-7: #c1cfed;
  --el-color-primary-light-8: #d6dff3;
  --el-color-primary-light-9: #eaeff9;
  --el-color-primary-dark-2: #284fa7;
  --el-border-radius-base: 8px;
  --el-text-color-primary: #273348;
  --el-font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--hs-bg); color: var(--hs-text); font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
#app { height: 100%; }
.boot { display: grid; place-items: center; height: 100%; color: #64748b; }

.shell { height: 100%; }
.aside { background: #fff; border-right: 1px solid #e5e7eb; transition: width .2s; overflow-x: hidden; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 16px; color: var(--hs-text); }
.brand-text span { font-size: 12px; color: #64748b; }
.logo { width: 34px; height: 34px; border-radius: 50%; flex: none; display: block; }
.fb-chip { margin: 0 12px 8px; padding: 6px 10px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 12px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fb-chip.ok { background: #ecfdf5; color: #047857; }
.fb-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.menu { border-right: none; flex: 1; }
.menu-badge { margin-left: 8px; display: inline-flex; }
.header { display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e5e7eb; height: 56px; }
.header h3 { margin: 0; font-size: 17px; }
.user-chip { cursor: pointer; display: inline-flex; align-items: center; outline: none; }
.main { padding: 16px; }
.page { min-width: 0; }

.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.gap { gap: 8px; }
.row.wrap { flex-wrap: wrap; gap: 8px; }
.mb { margin-bottom: 12px; }
.mt { margin-top: 12px; }
.ml { margin-left: 6px; }
.muted { color: #64748b; }
.small { font-size: 12px; }
.pre { white-space: pre-wrap; }
.error-text { color: #dc2626; }
.link { color: var(--hs-blue); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
.tag-pick { margin: 2px 4px 2px 0; cursor: pointer; }

.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 16px; min-width: 110px; }
.stat span { display: block; color: #64748b; font-size: 12px; }
.stat b { font-size: 22px; }
.stat.ok b { color: #059669; }
.stat.bad b { color: #dc2626; }
.stat.warn b { color: #d97706; }
.stat.wide { flex: 1; min-width: 240px; }

.bulk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: #eaeff9; border: 1px solid #c1cfed; border-radius: 8px; padding: 8px 12px; }
.delay-input { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.delay-input .el-input-number { width: 90px; }
.column-pick { display: grid; grid-template-columns: 1fr 1fr; }
.action-list { display: flex; flex-direction: column; align-items: flex-start; }
.action-list .el-radio { margin: 4px 0; height: auto; white-space: normal; }

.guard { max-width: 640px; margin: 40px auto; background: #fff; border-radius: 12px; padding: 28px 32px; border: 1px solid #e5e7eb; }
.guard h2 { margin-top: 0; }
.guard code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; }

.bm-scroll { max-height: calc(100vh - 290px); overflow: auto; }
.bm-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.bm-item:hover { background: #f1f5f9; }
.bm-item.on { background: #d6dff3; }
.expand-box { padding: 8px 24px; }
.notice-item { border-top: 1px solid #f1f5f9; padding: 10px 0; }

.login { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 400px; background: #fff; border: 1px solid #e6eaf0; border-radius: 12px; padding: 36px 32px 28px; box-shadow: 0 8px 30px rgba(39, 51, 72, .06); }
.login-head { text-align: center; margin-bottom: 24px; }
.login-head img { width: 64px; height: 64px; border-radius: 50%; }
.login-head h1 { font-size: 20px; margin: 14px 0 4px; color: var(--hs-text); }
.login-head p { margin: 0; color: #64748b; }
.login-tip { text-align: center; margin: 16px 0 0; }
.login-tabs { margin-bottom: 8px; }
.code-row { display: flex; gap: 8px; width: 100%; }
.code-row .el-button { flex: none; width: 120px; }
.challenge { display: flex; justify-content: center; margin-bottom: 12px; min-height: 0; }
.challenge:empty { margin-bottom: 0; }
.login-foot { margin-top: 24px; color: #94a3b8; font-size: 12px; text-align: center; }
