/* ============================================================
   员工接龙与进度看板 · Design System
   浅色企业控制台风格：钢蓝主色 + 琥珀强调 + 高信息密度
   ============================================================ */
:root {
  --brand: #17497c;
  --brand-600: #1d5a96;
  --brand-500: #2b74bc;
  --brand-050: #eaf2fa;
  --brand-100: #d6e6f5;

  --ink: #101c28;
  --ink-2: #2b3a49;
  --muted: #64748b;
  --muted-2: #8a99ab;
  --line: #e2e8f0;
  --line-strong: #cfd8e3;

  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;

  --ok: #1b7a54;
  --ok-bg: #e8f5ee;
  --warn: #a8690f;
  --warn-bg: #fdf3e2;
  --danger: #b03a3f;
  --danger-bg: #fbecec;
  --accent: #c9873b;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(16, 28, 40, .05), 0 1px 3px rgba(16, 28, 40, .04);
  --shadow-2: 0 4px 12px rgba(16, 28, 40, .08), 0 1px 3px rgba(16, 28, 40, .05);
  --shadow-3: 0 18px 50px rgba(16, 28, 40, .18);

  --sidebar-w: 232px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd6e1; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b6c2d1; }

.num, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* 图标默认尺寸（各处按需覆盖） */
svg { width: 15px; height: 15px; flex: none; }
.ring svg { width: 148px; height: 148px; }
.stat .label svg { width: 14px; height: 14px; }

/* ---------------- 布局 ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #12395f 0%, #0e2e4d 100%);
  color: #d7e3ef; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  background: linear-gradient(145deg, #3f8fd4, #1d5a96);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 6px rgba(0,0,0,.22);
  letter-spacing: -.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-size: 14.5px; color: #fff; font-weight: 600; letter-spacing: .01em; }
.brand-text span { font-size: 11px; color: #8fb0cd; letter-spacing: .04em; }

.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-group { font-size: 10.5px; letter-spacing: .12em; color: #6f8dab; padding: 14px 10px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px;
  color: #c6d6e5; cursor: pointer; border: 0; background: none; text-align: left; width: 100%;
  font-size: 13.5px; transition: background .14s, color .14s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav-item.on { background: rgba(255,255,255,.13); color: #fff; box-shadow: inset 2px 0 0 #6fb2ec; }
.nav-item svg { width: 17px; height: 17px; opacity: .82; flex: 0 0 17px; }
.nav-item.on svg { opacity: 1; }
.nav-badge { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.16); padding: 1px 6px; border-radius: 20px; }

.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.who { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; display: grid; place-items: center;
  background: linear-gradient(145deg, #4d94d1, #2b6fa8); color: #fff; font-size: 12px; font-weight: 600;
}
.who-info { min-width: 0; }
.who-info b { display: block; font-size: 13px; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-info span { font-size: 11px; color: #8fb0cd; }
.icon-btn {
  border: 0; background: none; color: #9fbad3; cursor: pointer; padding: 6px; border-radius: 6px; display: grid; place-items: center;
}
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex: 0 0 58px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumb b { color: var(--ink); font-weight: 600; font-size: 15px; }
.crumb .sep { color: var(--line-strong); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.page { padding: 22px 24px 60px; max-width: 1560px; width: 100%; }
.menu-toggle { display: none; }

/* ---------------- 通用组件 ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card-head {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background .14s, border-color .14s, color .14s, box-shadow .14s; white-space: nowrap;
}
.btn:hover { background: #f7f9fb; border-color: #bcc9d8; }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
.btn.primary {
  background: linear-gradient(180deg, var(--brand-600), var(--brand)); border-color: #123f6b; color: #fff;
  box-shadow: 0 1px 2px rgba(23,73,124,.28), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn.primary:hover { background: linear-gradient(180deg, #2468a8, #1a5187); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #eef2f7; }
.btn.danger { color: var(--danger); border-color: #e8c3c4; background: #fff; }
.btn.danger:hover { background: var(--danger-bg); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn.sm svg { width: 13px; height: 13px; }
.btn.block { width: 100%; }
.btn.big { height: 42px; font-size: 14.5px; padding: 0 22px; border-radius: 9px; }

.input, .select, textarea.input {
  height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0 10px; background: var(--surface); width: 100%; transition: border-color .14s, box-shadow .14s;
}
textarea.input { height: auto; padding: 9px 10px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, textarea.input:focus {
  outline: 0; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(43,116,188,.13);
}
.input::placeholder { color: var(--muted-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 11.5px; color: var(--muted); }
.field .err { font-size: 11.5px; color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px;
  border-radius: 20px; font-size: 11.5px; font-weight: 500; background: #eef2f7; color: #46586c; white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--brand-050); color: var(--brand-600); }
.badge.dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .input, .toolbar .select { width: auto; min-width: 130px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted-2); }
.search-wrap .input { padding-left: 30px; min-width: 210px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .03em; color: var(--muted);
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
table.tbl td { padding: 10px 14px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
table.tbl tbody tr:hover { background: #f8fafc; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl .right { text-align: right; }
table.tbl .center { text-align: center; }
.cell-strong { font-weight: 500; }
.cell-sub { font-size: 11.5px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }

.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pager .pages { display: flex; gap: 4px; margin-left: auto; }
.pager button {
  min-width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--ink-2);
}
.pager button:hover:not(:disabled) { background: #f1f5f9; }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; position: relative; overflow: hidden; box-shadow: var(--shadow-1);
}
.stat::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-100); }
.stat.k-joined::after { background: var(--ok); }
.stat.k-pending::after { background: var(--accent); }
.stat.k-rate::after { background: var(--brand-500); }
.stat .label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.stat .value { font-size: 27px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; line-height: 1.15; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.stat .foot { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* 进度条 */
.bar { height: 7px; border-radius: 20px; background: #e9eef4; overflow: hidden; position: relative; }
.bar > i {
  display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #3f8fd4, #1d5a96);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.bar.ok > i { background: linear-gradient(90deg, #45b07f, #1b7a54); }
.bar.warn > i { background: linear-gradient(90deg, #e0a557, #c9873b); }
.bar.low > i { background: linear-gradient(90deg, #d98585, #b03a3f); }

/* 空状态 */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--line-strong); margin-bottom: 10px; }
.empty b { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; font-size: 13.5px; }
.empty p { font-size: 12.5px; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 6px; overflow-x: auto; }
.tab {
  border: 0; background: none; padding: 10px 14px; cursor: pointer; font-size: 13.5px; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500;
}
.tab:hover { color: var(--ink-2); }
.tab.on { color: var(--brand-600); border-bottom-color: var(--brand-600); }

/* Modal / Drawer */
.overlay {
  position: fixed; inset: 0; background: rgba(16,28,40,.42); backdrop-filter: blur(2px);
  z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
  animation: pop .18s cubic-bezier(.2,.8,.3,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99) } to { opacity: 1; transform: none } }
.modal.wide { max-width: 860px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

.drawer { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: flex-end; }
.drawer .overlay-bg { position: absolute; inset: 0; background: rgba(16,28,40,.38); }
.drawer-panel {
  position: relative; width: 100%; max-width: 520px; background: var(--surface); height: 100%;
  box-shadow: -12px 0 40px rgba(16,28,40,.16); display: flex; flex-direction: column;
  animation: slide .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes slide { from { transform: translateX(24px); opacity: .6 } to { transform: none; opacity: 1 } }

/* Toast */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand-500);
  border-radius: 8px; padding: 10px 14px; box-shadow: var(--shadow-2); font-size: 13px;
  min-width: 240px; max-width: 380px; animation: pop .18s ease; display: flex; gap: 8px; align-items: flex-start;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--accent); }
.toast b { font-weight: 600; }
.toast .close { margin-left: auto; cursor: pointer; color: var(--muted-2); border: 0; background: none; }

/* 登录页 */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art {
  background: linear-gradient(160deg, #123a61 0%, #0d2b47 55%, #0a2338 100%);
  color: #cfe0ef; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-art::before {
  content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(69,144,205,.34), transparent 62%);
  right: -220px; top: -180px;
}
.auth-art::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 78%);
}
.auth-art > * { position: relative; z-index: 1; }
.auth-art h1 { font-size: 30px; line-height: 1.35; color: #fff; letter-spacing: -.02em; font-weight: 600; }
.auth-art .lead { margin-top: 14px; font-size: 14px; color: #a9c6dd; max-width: 420px; line-height: 1.75; }
.auth-feats { display: flex; flex-direction: column; gap: 13px; margin-top: 40px; }
.auth-feat { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: #b9d1e4; }
.auth-feat i {
  width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.1); display: grid; place-items: center;
  flex: 0 0 22px; font-style: normal; font-size: 11px; color: #8fc0e6;
}
.auth-form-side { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 372px; }
.auth-card h2 { font-size: 21px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.auth-foot { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.notice {
  background: var(--warn-bg); border: 1px solid #f0ddbd; color: #7a4e0d; border-radius: 8px;
  padding: 9px 12px; font-size: 12px; line-height: 1.65;
}
.notice.info { background: var(--brand-050); border-color: var(--brand-100); color: #1a4a78; }
.notice.err { background: var(--danger-bg); border-color: #eec9ca; color: #8c2c30; }

/* 环形图 */
.ring { position: relative; width: 148px; height: 148px; flex: 0 0 148px; }
.ring svg { transform: rotate(-90deg); }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .center b { font-size: 26px; letter-spacing: -.02em; display: block; line-height: 1.1; }
.ring .center span { font-size: 11.5px; color: var(--muted); }

/* 部室/班组行 */
.scope-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed #edf1f6; }
.scope-row:last-child { border-bottom: 0; }
.scope-name { width: 160px; flex: 0 0 160px; font-size: 13px; }
.scope-bar { flex: 1; min-width: 80px; }
.scope-num { width: 108px; flex: 0 0 108px; text-align: right; font-size: 12.5px; color: var(--muted); }
.scope-pct { width: 58px; flex: 0 0 58px; text-align: right; font-weight: 600; font-size: 13px; }
.scope-row.clickable { cursor: pointer; border-radius: 7px; padding-left: 8px; padding-right: 8px; }
.scope-row.clickable:hover { background: #f6f9fc; }

/* 条形图 */
.chart-bars { display: flex; flex-direction: column; gap: 11px; }
.cbar { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 12px; }
.cbar .n { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbar .track { height: 20px; background: #f0f3f7; border-radius: 5px; overflow: hidden; position: relative; }
.cbar .track > i {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #4a94d3, #1d5a96); transition: width .55s cubic-bezier(.4,0,.2,1);
}
.cbar .v { font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* 明细/日志 */
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #eef1f5; font-size: 12.5px; }
.tl-item:last-child { border-bottom: 0; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); margin-top: 6px; flex: 0 0 7px; }
.tl-main { flex: 1; min-width: 0; }
.tl-main b { font-weight: 500; }
.tl-time { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; }

.mono-box {
  background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  font-family: var(--mono); font-size: 12px; line-height: 1.75; white-space: pre-wrap; word-break: break-all;
  max-height: 320px; overflow: auto; color: var(--ink-2);
}
.hr { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.sm { gap: 10px; }

/* 接龙页 */
.join-wrap { min-height: 100vh; background: var(--bg); padding: 28px 16px 60px; }
.join-card { max-width: 720px; margin: 0 auto; }
.join-head { background: linear-gradient(160deg, #17497c, #0f3055); color: #fff; padding: 26px 28px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.join-head .tag { font-size: 11.5px; color: #a6c5de; letter-spacing: .06em; }
.join-head h1 { font-size: 21px; margin-top: 8px; line-height: 1.45; }
.join-body { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.join-sec { padding: 20px 28px; border-bottom: 1px solid var(--line); }
.join-sec:last-child { border-bottom: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.join-sec h4 { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; }
.prose { font-size: 14px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.idcard { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.idcard > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.idcard .k { font-size: 11.5px; color: var(--muted); }
.idcard .v { font-size: 14px; font-weight: 500; margin-top: 2px; }

.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: inline-block; }
.qr-box img { display: block; width: 168px; height: 168px; image-rendering: pixelated; }

/* 移动端 */
@media (max-width: 980px) {
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: 12px 0 40px rgba(16,28,40,.2);
  }
  .sidebar.open { transform: none; }
  .menu-toggle { display: grid; }
  .page { padding: 16px 14px 60px; }
  .topbar { padding: 0 14px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cbar { grid-template-columns: 100px 1fr 42px; }
  .scope-name { width: 110px; flex-basis: 110px; }
  .scope-num { width: 84px; flex-basis: 84px; }
  .modal { max-height: 92vh; }
}
@media (min-width: 981px) { .scrim { display: none; } }
.scrim { position: fixed; inset: 0; background: rgba(16,28,40,.4); z-index: 55; }
