/* GE 网关管理 — 大控件、清晰排版，无 CDN */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
}
html, body {
  margin: 0;
  padding: 0;
  background: #0c1016;
  color: #e4eaf2;
  font: 15px/1.55 "Segoe UI", "Microsoft YaHei UI", sans-serif;
}
a { color: #6eb6ff; text-decoration: none; }
a:hover { color: #9eceff; }

.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(180deg, #121a26 0%, #0f1520 100%);
  border-right: 1px solid #243044;
  padding: 14px 10px 18px;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 8px;
}

/* 折叠组：标题 + 子菜单同一块卡片，下滑展开 */
.nav-block {
  border-radius: 10px;
  background: rgba(18, 26, 38, 0.85);
  border: 1px solid #2a3548;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-block:hover { border-color: #354760; }
.nav-block.is-open {
  border-color: #3a5068;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.nav-block:has(.nav-link.active) {
  border-color: rgba(74, 158, 255, 0.38);
  background: rgba(22, 32, 48, 0.95);
}

.nav-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9aadc4;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-block-head:hover { color: #d8e4f2; background: rgba(74, 158, 255, 0.06); }
.nav-block.is-open > .nav-block-head {
  color: #e8f0fa;
  border-bottom: 1px solid #2a3548;
  background: rgba(74, 158, 255, 0.05);
}
.nav-block:has(.nav-link.active) > .nav-block-head { color: #f0f6ff; }

/* 右侧细线 chevron，非 ▶ 字符 */
.nav-block-head::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #6a8098;
  border-bottom: 1.5px solid #6a8098;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.nav-block.is-open > .nav-block-head::after {
  transform: rotate(-135deg) translateY(2px);
  border-color: #8eb8e8;
}

.nav-block-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.nav-block.is-open > .nav-block-body { grid-template-rows: 1fr; }

.nav-block-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 6px;
}
.nav-block.is-open > .nav-block-body > .nav-block-inner {
  padding: 6px 6px 8px;
}

.nav-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #243044;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin: 1px 0;
  color: #aebdd0;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: rgba(74, 158, 255, 0.1);
  color: #eef4fc;
}
.nav-link.active {
  background: rgba(74, 158, 255, 0.2);
  color: #f4f8ff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #4a9eff;
}

.nav-link-monitor .nav-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ec99a;
  box-shadow: 0 0 0 0 rgba(110, 201, 154, 0.55);
  animation: nav-live-pulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
.nav-link-monitor.active .nav-live-dot {
  background: #9ef0c0;
  box-shadow: 0 0 8px rgba(158, 240, 192, 0.75);
}
@keyframes nav-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 201, 154, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(110, 201, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 201, 154, 0); }
}

.nav-exit {
  color: #d8a080 !important;
}
.nav-exit:hover { color: #f0c0a8 !important; }
.nav-exit.active {
  box-shadow: inset 3px 0 0 #d08060;
  background: rgba(208, 128, 96, 0.16);
  color: #ffd0b8 !important;
}

.brand { font-size: 18px; font-weight: 700; color: #5ca8ff; margin-bottom: 24px; }

.main {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 24px 32px;
  overflow: auto;
  max-width: none;
}
.main-fluid { max-width: none; }
.main-standalone { max-width: 480px; margin: 0 auto; padding-top: 60px; }

.page-title { font-size: 22px; font-weight: 600; color: #f2f6fc; margin: 0 0 8px; }
.page-desc { color: #8fa3b8; margin: 0 0 20px; font-size: 14px; }

.flash-bar { margin-bottom: 16px; font-size: 15px; }

.status-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.status-pill {
  background: #121a26;
  border: 1px solid #2a3548;
  border-radius: 8px;
  padding: 14px 16px;
}
.status-pill .k { color: #8fa3b8; font-size: 13px; margin-bottom: 4px; }
.status-pill .v { color: #e8f2ff; font-size: 16px; font-weight: 600; }
.status-pill.ok .v { color: #7ddea0; }
.status-pill.warn .v { color: #e8c547; }
.status-pill.bad .v { color: #f08080; }
.proxy-active-on { color: #7ddea0; font-weight: 600; }
.proxy-listen-err { color: #f08080; font-weight: 600; cursor: help; text-decoration: underline dotted; }
.mt-2 { margin-top: 8px; }

.card {
  background: #151c28;
  border: 1px solid #2a3548;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.card-title { font-size: 16px; font-weight: 600; color: #dce8f8; margin: 0 0 14px; }

.help-box {
  background: #0f1622;
  border-left: 4px solid #4a9eff;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #b8c8dc;
  font-size: 14px;
  line-height: 1.65;
}
.help-box strong { color: #e8f0ff; }
.help-box .flow { font-family: Consolas, monospace; color: #7ec8ff; margin: 8px 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-label { color: #9eb2c8; font-size: 14px; margin-bottom: 6px; }
.stat-value { color: #f0f6ff; font-size: 30px; font-weight: 700; }

.log-table td { font-size: 14px; vertical-align: top; }
.log-time { color: #8fa3b8; white-space: nowrap; width: 150px; }
.log-cat { color: #7ec8ff; width: 90px; }
.log-msg { color: #dce6f2; }
.log-warn .log-msg { color: #f0c080; }

code, .mono {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 14px;
  color: #7ec8ff;
  background: #0a0e14;
  padding: 3px 8px;
  border-radius: 4px;
  word-break: break-all;
}

.col-machine .machine-id-line {
  font-size: 12px;
  color: #dce6f2;
  line-height: 1.45;
  word-break: break-all;
}
.col-machine .machine-ip-line {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  padding: 2px 8px;
}
.col-machine .machine-ip-missing {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: #8a9099;
}

.table-wrap { overflow-x: auto; margin-top: 8px; }
table.data-table { width: 100%; border-collapse: collapse; color: #dce6f2; font-size: 15px; }
table.data-table th, table.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #243044;
  text-align: left;
}
table.data-table th { color: #9eb2c8; font-weight: 600; background: #121820; }

label, .field-label {
  display: block;
  color: #b8c8dc;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}
.field-hint { color: #7a8fa6; font-size: 13px; margin: -4px 0 10px; }

/* 统一编辑框（含无 type、WebView2 默认白底覆盖） */
.main input:not([type=checkbox]):not([type=hidden]):not([type=radio]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
.main textarea,
.main select,
.card input:not([type=checkbox]):not([type=hidden]):not([type=radio]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
.card textarea,
.card select,
.main-standalone input:not([type=checkbox]):not([type=hidden]):not([type=radio]):not([type=submit]):not([type=button]),
.main-standalone textarea,
.main-standalone select {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  margin-bottom: 0;
  background-color: #0a0e14;
  border: 1px solid #3a4d66;
  border-radius: 8px;
  color: #f0f4fa;
  font-size: 15px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.field-grid > div > input,
.field-grid > div > select,
.field-grid > div > textarea,
.form-row > div > input,
.form-row > div > select,
.form-row > div > textarea {
  margin-bottom: 0;
}
.field-grid > div,
.form-row > div {
  margin-bottom: 16px;
}
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
  margin-bottom: 0;
}
.card > form > textarea,
.main > form > textarea {
  margin-bottom: 16px;
}
.card > form > input:not([type=hidden]):not(:last-child),
.card > form > select:not(:last-child),
.main-standalone .card > form > input:not([type=hidden]),
.main-standalone .card > form > select {
  margin-bottom: 16px;
}
.login-wrap .card { max-width: 400px; }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239eb2c8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select option {
  background: #151c28;
  color: #f0f4fa;
}
.main input:not([type=checkbox]):not([type=hidden]):focus,
.main textarea:focus,
.main select:focus,
.card input:not([type=checkbox]):not([type=hidden]):focus,
.card textarea:focus,
.card select:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}
input[readonly] { opacity: 0.85; cursor: default; }
input::placeholder,
textarea::placeholder {
  color: #6a7f96;
  opacity: 1;
}
.form-inline { display: inline; }
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.form-row .field-grow { flex: 1 1 200px; min-width: 160px; }
.form-row .field-sm { flex: 0 1 140px; min-width: 120px; }
.form-row .field-xs { flex: 0 0 auto; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px 20px;
}
.field-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.field-grid .span-2 { grid-column: span 2; }
.field-grid .span-all { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .field-grid, .field-grid.cols-3 { grid-template-columns: 1fr; }
  .field-grid .span-2, .field-grid .span-all { grid-column: 1; }
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
button, .btn {
  min-height: 42px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  background: #2d6cdf;
  color: #fff;
}
button:hover, .btn:hover { background: #3a7cef; }
.btn-secondary { background: #2a3548; color: #dce6f2; }
.btn-danger { background: #9a3a3a; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 14px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 15px; }
.alert-ok { background: #1a3d2e; color: #8fdfb0; border: 1px solid #2d6b4a; }
.alert-err { background: #3d1a1a; color: #f0a8a8; border: 1px solid #6b2d2d; }
.alert-info { background: #1a2a3d; color: #9ec8ff; border: 1px solid #2d4a6b; }
.alert-warn { background: #3d3218; color: #f0d080; border: 1px solid #6b5a2d; }

.hint { color: #8fa3b8; font-size: 14px; }
.url-preview { font-size: 14px; color: #9ec8ff; word-break: break-all; }

.proxy-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
  font-size: 15px;
}
.proxy-box {
  background: #0f1622;
  border: 1px solid #3a4d66;
  border-radius: 8px;
  padding: 12px 18px;
  text-align: center;
}
.proxy-arrow { color: #5ca8ff; font-size: 20px; }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }

.monitor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 16px;
}
.live-badge { font-size: 14px; font-weight: 600; }
.live-on { color: #7ddea0; }
.live-err { color: #f08080; }
.live-off { color: #f0a080; }
.live-paused { color: #f0d080; }
.monitor-filter { color: #9eb2c8; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.monitor-filter input { width: auto; min-height: auto; margin: 0; }

.monitor-feed-card { padding-bottom: 12px; }
.monitor-feed {
  max-height: 520px;
  overflow-y: auto;
  background: #0a0e14;
  border: 1px solid #243044;
  border-radius: 8px;
  padding: 8px 0;
}
.monitor-empty { color: #7a8fa6; padding: 24px 18px; text-align: center; }
.monitor-row {
  display: grid;
  grid-template-columns: 150px 72px 108px 88px 1fr;
  gap: 10px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #1a2434;
  font-size: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .monitor-row { grid-template-columns: 1fr; gap: 4px; }
}
.evt-time { color: #8fa3b8; font-family: Consolas, monospace; }
.evt-level { font-weight: 600; text-transform: uppercase; font-size: 12px; }
.evt-cat { color: #7ec8ff; }
.evt-kind { color: #6a8499; font-size: 11px; font-family: Consolas, monospace; }
.evt-msg { color: #e8f0f8; word-break: break-word; }
.evt-ip { color: #8fa3b8; font-size: 12px; }
.evt-info .evt-level { color: #8fdfb0; }
.evt-warn .evt-level { color: #f0c080; }
.evt-warn .evt-msg { color: #f0d8b0; }
.evt-alert .evt-level { color: #ff9090; }
.evt-alert .evt-msg { color: #ffc8c8; }
.row-banned td { color: #f0a080; }
.monitor-promo .btn { display: inline-block; text-decoration: none; }

/* 登录器公告管理 */
.notice-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.notice-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.notice-stat-pill {
  font-size: 13px;
  color: #9eb2c8;
  background: #121a26;
  border: 1px solid #2a3548;
  border-radius: 999px;
  padding: 6px 14px;
}
.notice-stat-pill strong { color: #e8f2ff; }
.notice-stat-on strong { color: #6ec0a0; }
.notice-stat-pin strong { color: #e8c547; }
.notice-empty-card {
  text-align: center;
  padding: 36px 24px;
}
.notice-empty-card .btn { margin-top: 12px; }
.notice-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.notice-admin-item {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  background: #151c28;
  border: 1px solid #2a3548;
  border-radius: 10px;
  padding: 16px 18px;
}
.notice-admin-item-pinned {
  border-color: rgba(232, 197, 71, 0.45);
  background: linear-gradient(135deg, #1a1c22 0%, #151c28 100%);
}
.notice-admin-item-off { opacity: 0.72; }
.notice-admin-preview .notice-launcher-card { margin: 0; }
.notice-admin-meta { min-width: 0; }
.notice-admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.notice-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.notice-badge-pin { background: rgba(232, 197, 71, 0.18); color: #e8c547; }
.notice-badge-on { background: rgba(110, 192, 160, 0.15); color: #6ec0a0; }
.notice-badge-off { background: rgba(154, 163, 181, 0.12); color: #9aa3b5; }
.notice-badge-sort { background: rgba(126, 200, 255, 0.1); color: #9eceff; }
.notice-admin-body-preview {
  margin: 0 0 10px;
  font-size: 13px;
  color: #8fa3b8;
  line-height: 1.5;
  word-break: break-word;
}
.notice-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.notice-admin-actions .inline-form { margin: 0; }
.notice-help-card { margin-bottom: 0; }
.notice-help-list {
  margin: 0;
  padding-left: 20px;
  color: #b8c8dc;
  font-size: 14px;
  line-height: 1.7;
}
.notice-help-list li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .notice-admin-item { grid-template-columns: 1fr; }
}

.notice-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1100px) {
  .notice-edit-grid { grid-template-columns: 1fr; }
  .notice-edit-preview-wrap { order: -1; }
}
.tag-color-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tag-color-picker {
  width: 52px !important;
  min-width: 52px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 4px !important;
  cursor: pointer;
}
.tag-color-hex {
  flex: 1;
  font-family: Consolas, monospace !important;
}
.tag-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-color-swatch {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.tag-color-swatch span { text-shadow: 0 1px 2px rgba(0,0,0,0.45); }

.notice-launcher-card {
  position: relative;
  padding: 12px 12px 12px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(48, 50, 56, 0.92), rgba(28, 30, 34, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.notice-launcher-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #9a9ea6, #5a5e66);
}
.notice-launcher-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  color: #fff;
  border: 1px solid transparent;
}
.notice-launcher-title {
  font-size: 13px;
  line-height: 1.45;
  color: #f0f2f6;
  padding-right: 52px;
}
.notice-launcher-time {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(180, 186, 196, 0.75);
}
.notice-preview-card .hint { margin-bottom: 12px; }

.admin-modal[hidden] { display: none !important; }
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.admin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #1e2128;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f0f2f6;
}
.admin-modal-sub {
  padding: 8px 16px 0;
  font-size: 11px;
  color: #9aa3b5;
  word-break: break-all;
}
.admin-modal-body {
  padding: 12px 16px 16px;
  overflow: auto;
}
.cheat-hit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.cheat-hit-table th,
.cheat-hit-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}
.cheat-hit-table th {
  color: #9aa3b5;
  font-weight: 600;
  position: sticky;
  top: 0;
  background: #1e2128;
}
.cheat-hit-table td code {
  font-size: 10px;
  color: #d8dee8;
}
.cheat-hit-killed-yes { color: #6ec0a0; }
.cheat-hit-killed-no { color: #f0a0a8; }

/* 机器状态 — 紧凑表格 + 检索 */
.sessions-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.sessions-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.sessions-filters { width: 100%; }
.sessions-search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  min-height: 36px;
  padding: 8px 12px;
  background: #0a0e14;
  border: 1px solid #3a4d66;
  border-radius: 8px;
  color: #f0f4fa;
  font-size: 14px;
}
.sessions-filter-select {
  min-width: 140px;
  min-height: 36px;
  padding: 8px 12px;
  background: #0a0e14;
  border: 1px solid #3a4d66;
  border-radius: 8px;
  color: #f0f4fa;
  font-size: 14px;
}
.sessions-count {
  margin-left: auto;
  font-size: 13px;
  color: #9eb2c8;
  font-weight: 600;
}
.sessions-card { padding: 0; overflow: hidden; }
.sessions-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 220px);
}
.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #dce6f2;
  table-layout: fixed;
}
.sessions-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #121820;
  color: #9eb2c8;
  font-weight: 600;
  padding: 10px 8px;
  border-bottom: 1px solid #243044;
  text-align: left;
  white-space: nowrap;
}
.sessions-table tbody td {
  padding: 7px 8px;
  border-bottom: 1px solid #1e2838;
  vertical-align: middle;
}
.sessions-table .col-mid { width: 16%; }
.sessions-table .col-on { width: 8%; }
.sessions-table .col-ge { width: 5%; }
.sessions-table .col-ln { width: 5%; }
.sessions-table .col-cmp { width: 12%; }
.sessions-table .col-cht { width: 8%; }
.sessions-table .col-prx { width: 6%; }
.sessions-table .col-rej { width: 8%; }
.sessions-table .col-ban { width: 6%; }
.sessions-table .col-act { width: 10%; }
.sessions-row.row-online { background: rgba(110, 192, 160, 0.04); }
.sessions-row.row-banned { background: rgba(240, 160, 168, 0.06); }
.sessions-row:hover { background: rgba(74, 158, 255, 0.06); }
.mid-primary {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  color: #dce6f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mid-ip {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  padding: 1px 6px;
}
.mid-ip-missing { font-size: 11px; color: #8a9099; }
.cell-sub { font-size: 11px; color: #8a9099; margin-top: 2px; }
.col-cmp span { display: inline-block; margin-right: 6px; white-space: nowrap; }
.col-cht .btn-xs { margin-left: 4px; vertical-align: middle; }
.col-act .inline-form { display: inline-block; margin: 0 4px 0 0; }
.btn-xs {
  font-size: 11px;
  padding: 2px 8px;
  min-height: 24px;
  line-height: 1.2;
}
.text-ok { color: #6ec0a0 !important; }
.text-bad { color: #f0a0a8 !important; }
.text-muted { color: #9aa3b5 !important; }
.text-warn { color: #e8c547 !important; }
.admin-modal-panel-wide { width: min(1100px, 96vw); }
.cheat-hit-modal-hint { margin: 0 0 10px; }
.cheat-hit-table-wrap { overflow: auto; max-height: 60vh; }
.cheat-hit-summary-line {
  display: inline-block;
  margin-top: 6px;
  max-width: 100%;
  word-break: break-all;
}

/* 管理页可折叠分区（补丁配置等） */
.admin-fold {
  border: 1px solid #2a3548;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #151c28;
}
.admin-fold > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #dce8f8;
  list-style: none;
  user-select: none;
}
.admin-fold > summary::-webkit-details-marker { display: none; }
.admin-fold > summary::before {
  content: '▸ ';
  color: #5ca8ff;
  font-size: 14px;
}
.admin-fold[open] > summary::before { content: '▾ '; }
.admin-fold > summary:hover { background: rgba(74, 158, 255, 0.06); }
.admin-fold-body {
  padding: 0 16px 16px;
  border-top: 1px solid #243044;
}
.admin-fold-body > .card {
  margin-top: 16px;
  margin-bottom: 0;
}
.admin-fold-body > .card + .card { margin-top: 14px; }
.admin-fold-hint {
  margin: 12px 0 0;
  padding: 0 2px;
  color: #8fa3b8;
  font-size: 13px;
  line-height: 1.55;
}
