/* ============================================================
   管理后台
   ============================================================ */
body.admin-body { background: var(--bg); overflow: hidden; }

/* ---------------- 登录 ---------------- */
.login-page {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-side {
  position: relative; overflow: hidden;
  background: var(--brand-grad);
  color: #fff; padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-side::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); top: -160px; right: -180px;
}
.login-side::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); bottom: -120px; left: -60px;
}
.login-side-inner { position: relative; z-index: 1; }
.login-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.login-logo .mark {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .2);
  display: grid; place-items: center; backdrop-filter: blur(4px);
}
.login-hero { position: relative; z-index: 1; margin-top: auto; }
.login-hero h1 { font-size: 34px; line-height: 1.3; font-weight: 700; letter-spacing: -.5px; }
.login-hero p { margin-top: 14px; font-size: 15px; opacity: .82; line-height: 1.8; max-width: 380px; }
.login-feats { display: flex; gap: 26px; margin-top: 36px; }
.login-feat .n { font-size: 22px; font-weight: 700; }
.login-feat .t { font-size: 13px; opacity: .78; }
.login-form-wrap { display: grid; place-items: center; padding: 40px; }
.login-form { width: 100%; max-width: 348px; }
.login-form h2 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.login-form .sub { color: var(--ink-3); margin: 8px 0 28px; font-size: 14px; }
.login-form .field-label { font-size: 13px; }
.login-form .input { height: 44px; }

@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-side { display: none; }
}

/* ---------------- 框架 ---------------- */
.admin { display: flex; height: 100vh; background: var(--bg); }

.sidebar {
  width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand-grad);
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px rgba(47, 91, 255, .28);
  flex: none;
}
.brand .name { font-size: 15px; font-weight: 700; letter-spacing: -.2px; line-height: 1.2; }
.brand .ver { font-size: 11px; color: var(--ink-4); font-weight: 400; }

.nav-group-title {
  font-size: 11px; color: var(--ink-4); font-weight: 500; letter-spacing: .4px;
  padding: 12px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 10px; border-radius: 9px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  transition: all .15s; margin-bottom: 2px; cursor: pointer;
}
.nav-item:hover { background: #f6f8fc; color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-dark); }
.nav-item svg { opacity: .8; flex: none; }
.nav-item.active svg { opacity: 1; }

.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none;
}
.user-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.user-role { font-size: 11px; color: var(--ink-4); }

.main { flex: 1; overflow-y: auto; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 60px; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245, 246, 249, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.crumb b { color: var(--ink); font-weight: 600; font-size: 15px; }
.crumb a:hover { color: var(--brand); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.content { padding: 22px 26px 60px; max-width: 1320px; }

/* ---------------- 页面头 ---------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.page-title { font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.page-desc { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------------- 统计卡 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.stat-label { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.6px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 400; color: var(--ink-4); margin-left: 3px; letter-spacing: 0; }
.stat-foot { font-size: 12px; color: var(--ink-4); margin-top: 4px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line);
  border-bottom: none; border-radius: var(--r-md) var(--r-md) 0 0;
}
.toolbar .input, .toolbar .select { height: 36px; width: auto; min-width: 150px; }
.toolbar .search { position: relative; }
.toolbar .search .input { padding-left: 34px; width: 230px; }
.toolbar .search svg { position: absolute; left: 11px; top: 10px; color: var(--ink-4); }
.toolbar .spacer { flex: 1; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; }
.table-card.standalone { border-radius: var(--r-md); }

.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3);
}
.pager { display: flex; align-items: center; gap: 6px; }
.pager button {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px;
}
.pager button:hover:not(:disabled) { border-color: #c9d2e3; }
.pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 列表单元 ---------------- */
.act-cell { display: flex; gap: 12px; align-items: flex-start; }
.act-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background-size: cover; background-position: center;
}
.act-name { font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 3px; }
.act-name:hover { color: var(--brand); }
.act-meta { font-size: 12px; color: var(--ink-4); display: flex; gap: 8px; align-items: center; }

.progress-mini { width: 92px; }
.progress-mini .num { font-size: 12px; margin-bottom: 4px; display: flex; justify-content: space-between; }

.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.row-actions .btn-link { font-size: 13px; }
.row-actions .btn-link.danger { color: var(--red); }

/* ---------------- 选项卡 ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-color: var(--brand); }

/* ---------------- 表单页 ---------------- */
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
@media (max-width: 1080px) { .form-layout { grid-template-columns: 1fr; } }

.section-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 16px; }
.section-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 8px;
}
.section-head h3 { font-size: 14.5px; font-weight: 600; }
.section-head .desc { font-size: 12px; color: var(--ink-4); margin-left: auto; }
.section-body { padding: 18px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill {
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; font-size: 13px; color: var(--ink-2);
  cursor: pointer; transition: all .15s; background: #fff;
}
.radio-pill:hover { border-color: #c9d2e3; }
.radio-pill.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.radio-pill input { display: none; }

.rule-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line-2);
}
.rule-row:last-child { border-bottom: none; }
.rule-title { font-size: 14px; font-weight: 500; }
.rule-desc { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

.sticky-actions {
  position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px;
  display: flex; gap: 10px; justify-content: flex-end; z-index: 10;
}

.side-tips { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.side-tips h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--ink-2); }
.side-tips ul { list-style: none; padding: 0; }
.side-tips li { font-size: 12.5px; color: var(--ink-3); line-height: 1.85; padding-left: 14px; position: relative; }
.side-tips li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #c6cede; }

/* ---------------- 富文本 ---------------- */
.editor { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.editor-bar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 6px; border-bottom: 1px solid var(--line-2); background: #fafbfc;
}
.editor-bar button {
  width: 30px; height: 30px; border-radius: 6px; color: var(--ink-2);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.editor-bar button:hover { background: #eef1f6; }
.editor-bar button.active { background: var(--brand-soft); color: var(--brand); }
.editor-bar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.editor-area {
  min-height: 220px; padding: 14px 16px; outline: none; font-size: 14px; line-height: 1.8; color: var(--ink-2);
}
.editor-area:empty::before { content: attr(data-ph); color: var(--ink-4); }
.editor-area img { border-radius: 8px; margin: 8px 0; max-width: 100%; }
.editor-area h2 { font-size: 16px; margin: 12px 0 6px; color: var(--ink); }
.editor-area h3 { font-size: 15px; margin: 10px 0 6px; color: var(--ink); }
.editor-area p { margin: 6px 0; }
.editor-area ul, .editor-area ol { padding-left: 1.4em; }
.editor-area table { border-collapse: collapse; width: 100%; }
.editor-area td, .editor-area th { border: 1px solid var(--line); padding: 6px 8px; }

/* ---------------- 详情页 ---------------- */
.detail-hero {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; margin-bottom: 16px;
}
.detail-hero h2 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta svg { opacity: .55; }

.chart-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 980px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.chart-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.chart-title .small { font-weight: 400; color: var(--ink-4); }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 132px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-fill { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--brand-grad); min-height: 3px; transition: height .6s ease; position: relative; }
.bar-fill span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar-label { font-size: 11px; color: var(--ink-4); white-space: nowrap; }

.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { width: 116px; height: 116px; border-radius: 50%; position: relative; flex: none; }
.donut::after {
  content: ""; position: absolute; inset: 22px; background: #fff; border-radius: 50%;
}
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; }
.donut-center .n { font-size: 20px; font-weight: 700; line-height: 1; }
.donut-center .t { font-size: 11px; color: var(--ink-4); margin-top: 3px; }
.legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend-item .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 分段进度 */
.seg-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #eef0f5; }
.seg-bar i { height: 100%; }

/* ---------------- 核验页 ---------------- */
.checkin-wrap { max-width: 620px; margin: 0 auto; }
.checkin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.checkin-title { font-size: 20px; font-weight: 700; }
.checkin-sub { color: var(--ink-3); font-size: 13px; margin: 6px 0 22px; }
.checkin-input { height: 52px; font-size: 16px; border-radius: 12px; }
.checkin-result { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ticket {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; animation: fadeUp .25s ease;
}
.ticket-head {
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #f7f9ff, #fdfdff); border-bottom: 1px dashed var(--line);
}
.ticket-body { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ticket-item .k { font-size: 11.5px; color: var(--ink-4); }
.ticket-item .v { font-size: 14px; font-weight: 500; margin-top: 1px; }
.ticket-foot { padding: 12px 18px 16px; }
@media (max-width: 520px) { .ticket-body { grid-template-columns: 1fr 1fr; } }

/* ---------------- 二维码 ---------------- */
.qr-box { text-align: center; }
.qr-img { width: 240px; height: 240px; margin: 4px auto 14px; border-radius: 12px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.qr-url {
  font-size: 12px; color: var(--ink-3); word-break: break-all; background: #f7f8fb;
  padding: 8px 10px; border-radius: 8px; margin-bottom: 12px;
}

/* ---------------- 提示条 ---------------- */
.alert {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.7;
  margin-bottom: 16px;
}
.alert svg { flex: none; margin-top: 2px; }
.alert-warn { background: var(--amber-soft); border: 1px solid #fde3b8; color: #8a5a12; }
.alert-info { background: #f4f7ff; border: 1px solid #e3eaff; color: #3552a8; }

/* ---------------- 报名表单配置 ---------------- */
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: #fff; }
.fb-row.is-off { background: #fafbfc; }
.fb-row.is-off .fb-label { color: var(--ink-4); }
.fb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-no {
  width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft); color: var(--brand);
  font-size: 12px; display: grid; place-items: center; flex: none; font-variant-numeric: tabular-nums;
}
.fb-label { width: 148px; height: 34px; font-weight: 500; }
.fb-type { width: 118px; height: 34px; flex: none; }
.fb-tools { margin-left: auto; display: flex; gap: 2px; }
.fb-tools .icon-btn { width: 26px; height: 26px; font-size: 13px; }
.fb-tools .icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.fb-extra {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2);
  display: flex; flex-direction: column; gap: 8px;
}
.fb-line { display: flex; align-items: center; gap: 8px; }
.fb-k { font-size: 12px; color: var(--ink-4); width: 62px; flex: none; }
.fb-line .textarea { flex: 1; }
.fb-line .input { flex: 1; min-width: 0; }
.fb-line .input.fb-num { flex: none; }
.mini-check {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px;
  color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.mini-check input { accent-color: var(--brand); }

/* ---------------- v1.2：初始密码提醒 ---------------- */
.pwd-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 0 28px 4px; padding: 12px 16px;
  background: linear-gradient(90deg, #fffbeb, #fff8e6);
  border: 1px solid #fde68a; border-radius: var(--r-md);
}
.pwd-banner-ico {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: #fef3c7; color: #b45309;
}
.pwd-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pwd-banner-txt b { font-size: 13.5px; color: #92400e; font-weight: 600; }
.pwd-banner-txt span { font-size: 12.5px; color: #a16207; }

/* ---------------- v1.3：场次编辑 ---------------- */
.ss-list { display: flex; flex-direction: column; gap: 10px; }
.ss-row {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fcfdff; padding: 12px 12px 10px;
}
.ss-top { display: flex; align-items: center; gap: 10px; }
.ss-no {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
}
.ss-top .input { flex: 1; min-width: 0; }
.ss-cap { display: flex; align-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--ink-3); }
.ss-cap .input { width: 88px; }
.ss-tools { display: flex; gap: 2px; flex: none; }
.ss-tools .icon-btn { width: 26px; height: 26px; font-size: 12px; }
.ss-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 10px; margin-top: 10px;
}
.ss-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); }
.ss-f.ss-wide { grid-column: span 4; }
.ss-f .input { height: 34px; font-size: 13px; }
.ss-note {
  margin-top: 8px; font-size: 12px; color: #b54708;
  background: var(--amber-soft); border-radius: 6px; padding: 5px 8px;
}
.ss-total {
  margin-top: 12px; font-size: 13px; color: var(--ink-3);
  background: #f7f9fc; border-radius: 8px; padding: 9px 12px;
}
.ss-total b { color: var(--ink); }
@media (max-width: 900px) {
  .ss-grid { grid-template-columns: repeat(2, 1fr); }
  .ss-f.ss-wide { grid-column: span 2; }
}

/* 场次进度卡片（活动详情） */
.sess-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.sess-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 14px 14px 12px;
}
.sess-card.is-off { background: #fafbfc; }
.sess-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sess-card-top .n {
  font-size: 11px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 6px; padding: 2px 6px;
}
.sess-card-top .t { font-size: 14px; font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; margin-top: 3px; }
.sess-meta svg { flex: none; margin-top: 1px; opacity: .7; }
.sess-card .progress { height: 6px; margin-top: 10px; }
.sess-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: 12px; color: var(--ink-4);
}

/* ============================================================
   数据总览（驾驶舱 v1.6）
   ============================================================ */

/* 横向占比条（活动状态 / 类型分布） */
.dv-rows { display: flex; flex-direction: column; gap: 13px; padding-top: 4px; }
.dv-rows-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 28px; }
.dv-row-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px;
}
.dv-row-head b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dv-bar { height: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.dv-bar i { display: block; height: 100%; border-radius: 4px; transition: width .5s ease; }

/* 报名排行 */
.dv-top { display: flex; flex-direction: column; gap: 2px; }
.dv-top-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 8px; text-decoration: none; color: var(--ink-2);
  transition: background .15s;
}
.dv-top-item:hover { background: var(--brand-soft); }
.dv-rank {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: var(--line-2);
  font-variant-numeric: tabular-nums;
}
.dv-rank.hot { background: var(--brand); color: #fff; }
.dv-top-name {
  flex: 1; min-width: 0; font-size: 13.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dv-top-num { flex: none; font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dv-top-num small { font-weight: 400; color: var(--ink-4); }

/* 即将开始的场次 */
.dv-sess { display: flex; flex-direction: column; gap: 2px; }
.dv-sess-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 8px; border-radius: 8px; text-decoration: none; color: inherit;
  transition: background .15s;
}
.dv-sess-item:hover { background: var(--brand-soft); }
.dv-sess-time {
  flex: none; min-width: 88px; font-size: 12px; font-weight: 600;
  color: var(--brand); font-variant-numeric: tabular-nums; padding-top: 1px;
}
.dv-sess-main { min-width: 0; flex: 1; }
.dv-sess-name {
  font-size: 13.5px; color: var(--ink); margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dv-sess-meta {
  font-size: 12px; color: var(--ink-4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.dv-empty { font-size: 13px; color: var(--ink-4); padding: 22px 8px; text-align: center; }

@media (max-width: 900px) {
  .dv-rows-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   v1.7 人员管理 + 多人核验
   ============================================================ */

/* 人员列表：头像 + 姓名/账号 */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-ava {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: var(--green-soft); color: var(--green);
}
.user-ava.is-admin { background: var(--brand-soft); color: var(--brand); }

/* 弹窗内的说明块（新增人员） */
.ub-alert {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--brand-soft); border-radius: 10px; padding: 11px 13px;
  font-size: 12.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 16px;
}
.ub-alert svg { flex: none; margin-top: 2px; color: var(--brand); }
.ub-alert b { color: var(--ink); }

/* 页面底部的使用说明 */
.ub-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md);
  background: #f7f8fb; border: 1px dashed var(--line);
  font-size: 12.5px; line-height: 1.75; color: var(--ink-3);
}
.ub-note svg { flex: none; margin-top: 2px; color: var(--ink-4); }
.ub-note b { color: var(--ink); }

/* 一次性初始密码 */
.pwd-once {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
}
.pwd-once-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #b54708; margin-bottom: 8px;
}
.pwd-once-row { display: flex; align-items: center; gap: 10px; }
.pwd-once-row code {
  flex: 1; font-size: 18px; font-weight: 600; letter-spacing: 1.5px;
  background: #fff; border: 1px dashed #fcd34d; border-radius: 8px;
  padding: 9px 12px; color: var(--ink); user-select: all;
}

/* 核验页：当前核验员身份条 */
.ck-id {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 12px; font-size: 13px; color: var(--ink-2);
}
.ck-id b { color: var(--ink); }
.ck-id-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.ck-id-role {
  font-size: 11.5px; color: var(--brand); background: var(--brand-soft);
  border-radius: 20px; padding: 1px 8px;
}

/* 核验页：现场动态 */
.ck-team {
  margin-top: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px 18px;
}
.ck-team-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.ck-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.ck-op {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f7f8fb; border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 10px; font-size: 12.5px; color: var(--ink-2);
}
.ck-op i { width: 6px; height: 6px; border-radius: 50%; background: #c7cdd8; }
.ck-op i.on { background: var(--green); }
.ck-op b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ck-recent {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-4); line-height: 1.6;
}

@media (max-width: 640px) {
  .ck-id { font-size: 12px; flex-wrap: wrap; }
  .ck-id span:last-child { display: none; }
}

/* ---------------- 页面设置（v1.9） ---------------- */
.logo-preview {
  width: 168px; height: 84px; padding: 10px;
  border: 1px dashed var(--line); border-radius: 12px; background: #fafbfc;
  display: grid; place-items: center; color: var(--ink-4); font-size: 12px;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* 手机样机：让管理员不用真机也能看到 logo 与页脚的位置关系 */
.phone-mock { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.pm-hero {
  position: relative; height: 96px; padding: 0 12px 10px;
  background: linear-gradient(135deg, #3a63ff, #6d8bff);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.pm-logo {
  position: absolute; top: 10px; left: 10px; height: 24px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: rgba(255, 255, 255, .95);
}
.pm-logo img { display: block; max-height: 16px; max-width: 92px; object-fit: contain; }
.pm-title { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.pm-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.pm-line { height: 7px; border-radius: 4px; background: #eef1f6; }
.pm-line.short { width: 62%; }
.pm-foot {
  padding: 8px 10px 12px; background: #fff; text-align: center;
  color: var(--ink-4); font-size: 10px; line-height: 1.85; word-break: break-all;
}
.pm-foot-empty { opacity: .7; }
.pm-dot { margin: 0 4px; opacity: .6; }
