/* ===== 用户管理 ===== */
.um-toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: flex-end; }
.um-toolbar .form-group { margin: 0; }
.um-list-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }
.um-list-toolbar > input[type="search"] { width: min(360px, 100%); box-sizing: border-box; }
.um-list-toolbar > select { min-width: 130px; }
.um-page-size-label { display: inline-flex; align-items: center; gap: 7px; color: #94a3b8; font-size: 12px; }
.um-page-size-label .um-input { min-width: 76px; }
.um-list-summary { margin-left: auto; color: #94a3b8; font-size: 12px; }
.um-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.um-pagination button, .um-user-toggle { padding: 6px 11px; border: 1px solid #243449; border-radius: 7px; background: #0b1220; color: #cbd5e1; cursor: pointer; }
.um-pagination button:hover:not(:disabled), .um-user-toggle:hover { border-color: #22d3ee; color: #22d3ee; }
.um-pagination button.active { border-color: #0891b2; background: rgba(34,211,238,.12); color: #67e8f9; }
.um-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.um-user-toggle { margin-right: 2px; padding: 4px 10px; font-size: 12px; }
body.light .um-list-summary, body.light .um-page-size-label { color: #64748b; }
body.light .um-pagination button, body.light .um-user-toggle { border-color: #cbd5e1; background: #fff; color: #475569; }
body.light .um-pagination button.active { border-color: #0284c7; background: #e0f2fe; color: #0369a1; }
@media (max-width: 640px) {
  .um-list-toolbar { align-items: stretch; }
  .um-list-toolbar > input[type="search"], .um-list-toolbar > select { width: 100%; max-width: none; }
  .um-list-summary { width: 100%; margin-left: 0; }
}
.um-user-card { border: 1px solid #1e293b; border-radius: 10px; padding: 16px; margin-bottom: 14px; background: #0d1526; }
.um-map-center-setting { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.um-map-center-setting .um-perm-title { margin: 0; }
.um-city-picker { position: relative; width: 220px; max-width: 100%; }
.um-city-picker > .um-input { box-sizing: border-box; width: 100%; }
.um-city-options { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 4px; border: 1px solid #243449; border-radius: 8px; background: #0d1526; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.um-city-options[hidden] { display: none; }
.um-city-option { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #cbd5e1; text-align: left; cursor: pointer; }
.um-city-option:hover, .um-city-option:focus { outline: none; background: rgba(34,211,238,.14); color: #67e8f9; }
.um-city-custom-option { border-top: 1px solid #243449; color: #67e8f9; }
.um-city-empty { padding: 9px 10px; color: #94a3b8; font-size: 12px; }
.um-city-coordinates { display: flex; gap: 8px; flex-wrap: wrap; }
.um-city-coordinates .um-input { width: 130px; }
body.light .um-city-options { border-color: #cbd5e1; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.16); }
body.light .um-city-option { color: #334155; }
body.light .um-city-option:hover, body.light .um-city-option:focus { background: #e0f2fe; color: #0369a1; }
body.light .um-city-custom-option { border-color: #cbd5e1; color: #0369a1; }
@media (max-width: 640px) {
  .um-map-center-setting { align-items: stretch; flex-direction: column; }
  .um-city-picker { width: 100%; }
  .um-city-coordinates .um-input { box-sizing: border-box; flex: 1 1 120px; min-width: 0; }
}
body.light .um-user-card { border-color: #dbe4f0; background: #f8fafc; }
.um-user-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.um-user-head .um-name { font-size: 15px; font-weight: 700; color: #e2e8f0; }
body.light .um-user-head .um-name { color: #0f172a; }
.um-badge { font-size: 11px; padding: 2px 10px; border-radius: 20px; background: rgba(34,211,238,.15); color: #22d3ee; border: 1px solid rgba(34,211,238,.35); }
body.light .um-badge { background: rgba(2,132,199,.1); color: #0891b2; border-color: rgba(2,132,199,.3); }
.um-badge.off { background: rgba(248,113,113,.12); color: #f87171; border-color: rgba(248,113,113,.35); }
body.light .um-badge.off { background: rgba(220,38,38,.08); color: #dc2626; border-color: rgba(220,38,38,.3); }
.um-perm-block { margin-top: 10px; }
.um-perm-title { font-size: 12px; color: #94a3b8; margin-bottom: 6px; letter-spacing: .5px; }
body.light .um-perm-title { color: #64748b; }
.um-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.um-checks label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #cbd5e1; padding: 5px 11px; border: 1px solid #243449; border-radius: 7px; cursor: pointer; user-select: none; background: #0b1220; }
body.light .um-checks label { color: #334155; border-color: #e2e8f0; background: #fff; }
.um-checks label:has(input:checked) { border-color: #22d3ee; color: #22d3ee; background: rgba(34,211,238,.08); }
body.light .um-checks label:has(input:checked) { border-color: #0891b2; color: #0891b2; background: rgba(2,132,199,.06); }
.um-mod-group { margin-bottom: 12px; }
.um-grp-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #e2e8f0; cursor: pointer; user-select: none; margin-bottom: 6px; }
body.light .um-grp-label { color: #1e293b; }
.um-sub-checks { margin-left: 22px; }
.um-checks label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.um-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.um-actions button { padding: 7px 18px; border-radius: 7px; font-size: 13px; cursor: pointer; border: 1px solid #243449; background: #1e293b; color: #cbd5e1; transition: all .2s; }
body.light .um-actions button { border-color: #cbd5e1; background: #fff; color: #475569; }
.um-actions .um-save { background: linear-gradient(135deg, #0891b2, #22d3ee); color: #04222b; border: none; font-weight: 700; }
body.light .um-actions .um-save { color: #fff; background: linear-gradient(135deg, #0284c7, #22d3ee); }
.um-actions button:hover { border-color: #22d3ee; color: #22d3ee; }
body.light .um-actions button:hover { border-color: #0891b2; color: #0891b2; }
.um-actions .um-save:hover { color: #04222b; }
body.light .um-actions .um-save:hover { color: #fff; }
.um-toolbar label { font-size: 12px; color: #94a3b8; display: block; margin-bottom: 6px; }
body.light .um-toolbar label { color: #64748b; }
.um-input { padding: 8px 12px; border: 1px solid #243449; border-radius: 8px; font-size: 13px; background: #0b1220; color: #e2e8f0; outline: none; }
body.light .um-input { background: #fff; border-color: #cbd5e1; color: #0f172a; }
.um-input:focus { border-color: #22d3ee; }
body.light .um-input:focus { border-color: #0891b2; }
.um-create-btn { padding: 9px 22px; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; background: linear-gradient(135deg, #0891b2, #22d3ee); color: #04222b; }
.um-create-btn:disabled { opacity: .6; cursor: not-allowed; }
/* 配置管理 */
.cfg-section { border: 1px solid #1e293b; border-radius: 10px; padding: 16px; margin-bottom: 18px; background: #0d1526; }
body.light .cfg-section { border-color: #dbe4f0; background: #f8fafc; }
.game-edit-dialog { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(760px, calc(100vw - 32px)); max-height: min(90vh, 760px); margin: 0; padding: 0; color: #e2e8f0; background: #0d1526; border: 1px solid #334155; border-radius: 12px; box-shadow: 0 24px 72px rgba(0,0,0,.45); }
.game-edit-dialog::backdrop { background: rgba(2, 6, 23, .72); backdrop-filter: blur(2px); }
.game-edit-dialog-head, .game-edit-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.game-edit-dialog-head { border-bottom: 1px solid #1e293b; }
.game-edit-dialog-head h3 { margin: 0; font-size: 16px; }
.game-edit-dialog-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; overflow: auto; }
.game-edit-dialog-body .form-group { min-width: 0; }
.game-edit-dialog-body .um-input { box-sizing: border-box; width: 100%; }
.game-edit-dialog-actions { justify-content: flex-end; border-top: 1px solid #1e293b; }
body.light .game-edit-dialog { color: #1e293b; background: #fff; border-color: #cbd5e1; }
body.light .game-edit-dialog-head, body.light .game-edit-dialog-actions { border-color: #e2e8f0; }
@media (max-width: 600px) { .game-edit-dialog-body { grid-template-columns: minmax(0, 1fr); } }
.cfg-title { font-size: 15px; font-weight: 700; color: #e2e8f0; margin-bottom: 12px; }
body.light .cfg-title { color: #0f172a; }
.cfg-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed #243449; }
body.light .cfg-form { border-bottom-color: #e2e8f0; }
.cfg-form .form-group { margin: 0; }
.cfg-form label { font-size: 12px; color: #94a3b8; display: block; margin-bottom: 6px; }
body.light .cfg-form label { color: #64748b; }
.cfg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cfg-table th, .cfg-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #1e293b; color: #cbd5e1; vertical-align: middle; }
body.light .cfg-table th, body.light .cfg-table td { border-bottom-color: #e2e8f0; color: #334155; }
.cfg-table th { color: #94a3b8; font-size: 12px; white-space: nowrap; }
body.light .cfg-table th { color: #64748b; }
.cfg-table td.mono { font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }
.cfg-team-row td { background: #0b1220; color: #22d3ee; font-weight: 700; font-size: 13px; }
body.light .cfg-team-row td { background: #e0f2fe; color: #0369a1; }
.cfg-op { padding: 4px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; border: 1px solid #243449; background: #1e293b; color: #cbd5e1; margin-right: 6px; }
body.light .cfg-op { border-color: #cbd5e1; background: #fff; color: #475569; }
.cfg-op:hover { border-color: #22d3ee; color: #22d3ee; }
body.light .cfg-op:hover { border-color: #0891b2; color: #0891b2; }
.cfg-op.danger:hover { border-color: #f87171; color: #f87171; }
body.light .cfg-op.danger:hover { border-color: #dc2626; color: #dc2626; }
.cfg-editing { font-size: 12px; color: #fbbf24; margin-left: 8px; }
select.um-input { cursor: pointer; }
/* 配置管理子 tab */
.cfg-subtabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; border-bottom: 1px solid #1e293b; padding-bottom: 10px; }
body.light .cfg-subtabs { border-bottom-color: #e2e8f0; }
.cfg-subtab { padding: 8px 22px; border-radius: 8px; font-size: 13px; cursor: pointer; border: 1px solid #243449; background: #0b1220; color: #94a3b8; transition: all .2s; }
body.light .cfg-subtab { border-color: #cbd5e1; background: #fff; color: #64748b; }
.cfg-subtab.active { background: linear-gradient(135deg, #0891b2, #22d3ee); color: #04222b; border: none; font-weight: 700; }
body.light .cfg-subtab.active { color: #fff; background: linear-gradient(135deg, #0284c7, #22d3ee); }
.cfg-subtab:hover { border-color: #22d3ee; color: #22d3ee; }
body.light .cfg-subtab:hover { border-color: #0891b2; color: #0891b2; }
.cfg-subtab.active:hover { color: #04222b; }
body.light .cfg-subtab.active:hover { color: #fff; }
.cfg-sub { display: none; }
.cfg-sub.active { display: block; }
