:root {
  --sidebar-w: 228px;
  --page-bg: #edf1f7;
  --header-h: 52px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --border: #dde4ee;
  --border-soft: #eef2f7;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0284c7;
  --accent-soft: #e0f2fe;
  --online: #22c55e;
  --sidebar-bg: #0c1222;
  --sidebar-hover: #151d32;
  --sidebar-active: #1a2440;
  --ref-bg: #0b1220;
  --ref-panel: #111827;
  --ref-border: #1f2937;
  --ref-muted: #64748b;
  --ref-text: #e2e8f0;
  --ref-accent: #22c55e;
  --ref-phone-w: 300px;
  --ref-rail-w: 100px;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: "Inter", "Noto Sans SC", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.ui-mono {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-variant-numeric: tabular-nums;
}

/* ── Admin shell ── */
.admin-shell { display: flex; height: 100%; overflow: hidden; }
.admin-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0b1530 0%, #070d1a 100%);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s ease;
  border-right: 1px solid rgba(96, 165, 250, 0.12);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}
.admin-shell.sidebar-collapsed .admin-sidebar { width: 64px; }
.admin-shell.sidebar-collapsed .nav-label,
.admin-shell.sidebar-collapsed .logo-text-wrap,
.admin-shell.sidebar-collapsed .sidebar-svc,
.admin-shell.sidebar-collapsed .nav-group-label { display: none; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.28));
}
.logo-img--collapsed {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  font-size: 15px;
}
.logo-text { font-weight: 700; color: #f8fafc; font-size: 15px; letter-spacing: 0.02em; }
.logo-text-wrap { display: flex; flex-direction: column; min-width: 0; gap: 0; }
.logo-sub { display: block; font-size: 10px; color: #64748b; font-weight: 500; margin-top: 2px; }

.sidebar-nav { flex: 1; overflow: auto; padding: 8px; }
.nav-group-label {
  font-size: 11px; text-transform: uppercase;
  padding: 8px 12px 4px; color: #64748b;
}
.sidebar-nav .nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  cursor: pointer; margin-bottom: 3px;
  transition: background 0.15s, color 0.15s;
  position: relative;
  font-size: 13px;
}
.sidebar-nav .nav-item:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.sidebar-nav .nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 500;
}
.sidebar-nav .nav-item.active::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}
.sidebar-footer {
  padding: 14px 16px; font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}
.sidebar-svc {
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-svc-row {
  display: flex; align-items: center; gap: 6px; color: #94a3b8;
}
.sidebar-svc-meta { font-size: 10px; color: #64748b; font-family: ui-monospace, monospace; }
.status-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--online);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-online 2s infinite;
}
@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.admin-header {
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #dbeafe;
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-titles { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.header-crumb {
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: 11px; color: #94a3b8; line-height: 1.3;
}
.crumb-sep { margin: 0 6px; color: #cbd5e1; user-select: none; }
.crumb-current { color: var(--text-muted); font-weight: 500; }
.header-title {
  margin: 0; font-size: 16px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.25;
}
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: #f8fafc; border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.header-stat-pill--online { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.header-user-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: #334155;
  background: #fff; border: 1px solid var(--border);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ui-version-badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe;
  font-family: ui-monospace, monospace;
}
.header-fold-btn { flex-shrink: 0; }

.admin-body {
  flex: 1; overflow: auto; padding: 18px 20px 24px; min-height: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.06), transparent),
    var(--page-bg);
}
.admin-body--device { padding: 0; overflow: hidden; background: var(--page-bg); min-height: 0; height: 100%; display: flex; flex-direction: column; }

.tab-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 6px 16px 0;
  flex-shrink: 0;
}
.tab-bar .el-tabs__header { margin: 0; }
.tab-bar .el-tabs__nav-wrap::after { display: none; }
.tab-bar .el-tabs__item {
  font-size: 12px; padding: 0 12px !important; height: 36px; line-height: 36px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: background 0.12s;
  max-width: 200px;
  overflow: visible;
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle;
}
.tab-bar .el-tabs__item.is-closable {
  padding-right: 8px !important;
  gap: 4px;
}
.tab-bar .el-tabs__item .is-icon-close {
  position: static !important;
  transform: none !important;
  margin: 0 0 0 2px !important;
  flex-shrink: 0;
  align-self: center;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}
.tab-bar .el-tabs__item .el-tabs__label {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  line-height: 1.2;
}
.tab-bar .el-tabs__item.is-active { font-weight: 600; }
.tab-bar .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  background: var(--page-bg);
  border-bottom-color: var(--page-bg);
}

/* ── Home / list pages ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 16px;
}
.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px; margin-bottom: 12px;
}
@media (max-width: 1400px) {
  .home-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .home-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-stat-card {
  min-height: 96px; padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}
.home-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}
.home-stat-card .stat-num { font-size: 28px; letter-spacing: -0.02em; }
.home-stat-card .stat-label { font-size: 13px; margin-top: 4px; }
.home-stat-card .stat-sub { font-size: 11px; opacity: 0.85; margin-top: 2px; line-height: 1.35; }
.android-mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .android-mini-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.android-mini-stat {
  min-height: 84px; padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.android-mini-stat .stat-num { font-size: 24px; }
.android-mini-stat .stat-label { font-size: 12px; margin-top: 4px; }
.home-quick-row {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 12px; padding: 0 2px;
}
.home-quick-link {
  border: 0; background: none; padding: 0;
  font-size: 13px; color: #2563eb; cursor: pointer;
}
.home-quick-link:hover { text-decoration: underline; }
.home-quick-link--on { font-weight: 600; text-decoration: underline; }
.home-panel { margin-bottom: 0; }
.home-filter-block {
  padding: 14px 20px; border-bottom: 1px solid #f1f5f9;
  display: flex; flex-direction: column; gap: 12px;
}
.home-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.home-filter-row--fields { gap: 10px; }
.home-filter-label {
  font-size: 13px; color: #64748b; min-width: 56px; flex-shrink: 0;
}
.home-preset-btn {
  border: 1px solid #e2e8f0; border-radius: 6px;
  background: #fff; color: #334155;
  padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.home-preset-btn:hover { border-color: #93c5fd; color: #2563eb; }
.home-preset-btn--on {
  background: #2563eb; border-color: #2563eb; color: #fff;
}
.home-agent-table {
  --el-table-header-bg-color: #fafafa;
  --el-table-header-text-color: #64748b;
  font-size: 12px;
}
.stat-card {
  border-radius: 14px; padding: 18px; color: #fff;
  position: relative; overflow: hidden; min-height: 100px;
}
.stat-card .stat-num { font-size: 32px; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.stat-card .stat-sub { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.stat-card.c-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card.c-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.stat-card.c-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-card.c-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-card.c-slate { background: linear-gradient(135deg, #64748b, #475569); }
.stat-card.c-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-bg-icon { position: absolute; right: 12px; top: 12px; font-size: 48px; opacity: 0.2; }

.content-panel {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}
.panel-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.panel-head-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.panel-body { padding: 16px 20px; }
.panel-body.flush { padding: 0; }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 20px; background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.filter-bar--android { padding-top: 10px; }
.filter-bar-spacer { flex: 1; min-width: 8px; }
.android-quick-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 20px 0; background: #fff;
}
.android-quick-pill {
  border: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; color: #334155;
  padding: 5px 12px; font-size: 12px; cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.android-quick-pill:hover { border-color: #93c5fd; color: #2563eb; }
.android-quick-pill--on {
  background: #2563eb; border-color: #2563eb; color: #fff;
}
.android-quick-pill--on .android-quick-count { color: rgba(255,255,255,0.85); }
.android-quick-count {
  margin-left: 4px; font-size: 11px; color: #64748b; font-variant-numeric: tabular-nums;
}
.android-adv-panel {
  padding: 12px 20px; background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.android-adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.android-adv-tags {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e2e8f0;
}
.android-adv-label {
  font-size: 12px; color: #64748b; flex-shrink: 0;
}
.android-tag-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 20px; background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.android-tag-label {
  font-size: 12px; color: #64748b; margin-right: 4px; flex-shrink: 0;
}
.android-quick-pill--sm { padding: 3px 10px; font-size: 11px; }
.android-table-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: #fff; border-bottom: 1px solid #f1f5f9;
}
.android-toolbar-left, .android-toolbar-right {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.android-toolbar-left .wb-muted { font-size: 12px; }
.empty-wrap { padding: 32px; }

/* ── Modals ── */
.meta-modal-root {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 3000; padding: 16px;
}
.meta-modal {
  background: #fff; border-radius: 16px;
  max-width: 480px; width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
.meta-modal-wide { max-width: 640px; }
.meta-modal-xl { max-width: min(96vw, 1180px); width: 96vw; }
.meta-modal-head, .meta-modal-foot {
  padding: 12px 16px; border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
}
.meta-modal-foot {
  border-bottom: 0; border-top: 1px solid #f1f5f9;
  justify-content: flex-end; gap: 8px;
}
.meta-modal-body { padding: 16px; }
.meta-modal-close {
  border: 0; background: transparent;
  font-size: 20px; cursor: pointer; color: #64748b;
}
.tag-dialog-id {
  font-family: monospace; font-size: 12px;
  color: #64748b; margin-bottom: 8px;
}
.ref-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.ref-block-card {
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
}
.ref-block-card strong { display: block; font-size: 14px; color: #0f172a; }
.ref-block-card small { display: block; margin-top: 4px; color: #64748b; font-size: 12px; }
.ref-block-card:hover { border-color: #2563eb; background: #f8fbff; }

/* ── Fake lock modal ── */
.fake-lock-modal { max-width: 680px; }
.fake-lock-body { display: flex; flex-direction: column; gap: 16px; }
.fake-lock-intro { margin: 0; }
.fake-lock-section { display: flex; flex-direction: column; gap: 8px; }
.fake-lock-section-title {
  font-size: 12px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.fake-lock-type-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.fake-lock-type-card {
  text-align: left; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.fake-lock-type-card strong { display: block; font-size: 14px; color: #0f172a; }
.fake-lock-type-card small { display: block; margin-top: 4px; color: #64748b; font-size: 11px; line-height: 1.35; }
.fake-lock-type-card:hover { border-color: #93c5fd; background: #f8fbff; }
.fake-lock-type-card.active {
  border-color: #2563eb; background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.fake-lock-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fake-lock-field { display: flex; flex-direction: column; gap: 6px; }
.fake-lock-field > span { font-size: 13px; color: #334155; font-weight: 500; }
.fake-lock-bg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fake-lock-bg-hint { margin: 0; font-size: 12px; color: #64748b; line-height: 1.45; }
.fake-lock-bg-hint strong { color: #334155; font-weight: 600; }
.fake-lock-wallpaper-preview {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid #e2e8f0; max-height: 120px; background: #0f172a;
}
.fake-lock-wallpaper-preview img {
  display: block; width: 100%; height: 120px; object-fit: cover; opacity: 0.92;
}
.fake-lock-wallpaper-preview span {
  position: absolute; left: 8px; bottom: 8px; font-size: 11px; color: #fff;
  background: rgba(15, 23, 42, 0.55); padding: 2px 8px; border-radius: 999px;
}
.fake-lock-wallpaper-empty {
  font-size: 12px; color: #94a3b8; padding: 10px 12px;
  border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc;
}
.fake-lock-foot { gap: 8px; }
@media (max-width: 560px) {
  .fake-lock-type-grid, .fake-lock-field-grid { grid-template-columns: 1fr; }
}

.ref-clip-modal { max-width: 420px; }
.ref-clip-modal-body textarea {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; line-height: 1.45;
  color: #0f172a; background: #fff; resize: vertical; min-height: 120px;
}
.ref-clip-modal-body textarea:focus {
  outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.ref-clip-hint {
  margin: 8px 0 0; font-size: 11px; color: #94a3b8; line-height: 1.4;
}
.ref-clip-modal-foot { gap: 8px; }
.ref-clip-spacer { flex: 1; }
.ref-clip-link {
  border: 0; background: transparent; color: #64748b;
  font-size: 12px; cursor: pointer; padding: 0;
}
.ref-clip-link:hover:not(:disabled) { color: #2563eb; }
.ref-clip-link:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Device console (ref-console) ── */
.ref-console {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; height: 100%;
  background: var(--ref-bg); color: var(--ref-text);
}

.ref-topbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 14px;
  background: var(--ref-panel);
  border-bottom: 1px solid var(--ref-border);
  align-items: center; flex-shrink: 0;
}
.ref-pill {
  background: #1f2937; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; white-space: nowrap;
}
.ref-pill--title { font-weight: 600; color: #f8fafc; }
.ref-pill--dim { color: var(--ref-muted); }
.ref-topbar-actions {
  margin-left: auto;
  display: flex; gap: 6px; flex-shrink: 0;
}
.ref-top-btn {
  border: 1px solid #374151; border-radius: 8px;
  padding: 5px 12px; font-size: 12px; cursor: pointer;
  background: #1f2937; color: #e2e8f0;
}
.ref-top-btn--primary {
  background: #2563eb; border-color: #2563eb; color: #fff;
}
.ref-top-btn:hover { filter: brightness(1.08); }

.ref-main {
  display: flex;
  flex: 1; min-height: 0; overflow: hidden;
}
.ref-mirror-mode-label {
  flex: 1;
  font-size: 13px;
  color: #94a3b8;
  padding: 6px 0;
}

/* Left: phone preview — column widens with viewport height, shell fills vertical space */
.ref-left {
  width: min(420px, calc((100vh - 100px) * 9 / 16 + 36px));
  min-width: 280px;
  max-width: 420px;
  border-right: 1px solid var(--ref-border);
  display: flex; flex-direction: column;
  padding: 8px 10px 10px; gap: 4px;
  flex-shrink: 0;
  min-height: 0;
  background: rgba(13, 21, 38, 0.6);
}
.ref-phone-shell {
  flex: 1 1 0;
  min-height: 100px;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #374151;
  position: relative;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  align-self: center;
}
.ref-phone-screen {
  position: absolute; inset: 0;
  background: #0a0a0a;
}
.ref-cast-img, .ref-cast-mirror {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
/* Right panel — light theme (matches screenshot) */
.ref-panel--light {
  background: #fff; color: #0f172a;
  border-left: 1px solid #e2e8f0;
  padding: 12px 16px 16px;
  overflow: hidden;
}
.ref-panel--light .wb-action-bar { border-bottom-color: #f1f5f9; }
.ref-panel--light .wb-tabs .el-tabs__item { color: #64748b; }
.ref-panel--light .wb-tabs .el-tabs__item.is-active { color: #2563eb; }
.ref-panel--light .wb-tab-body { flex: 1; overflow: auto; min-height: 0; }
.file-entry-name { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 12px; }
.file-entry-name.is-dir { color: #0369a1; font-weight: 600; }
.file-entry-name.is-dir::before { content: "▸ "; opacity: 0.55; }
.file-entry-name:not(.is-dir)::before { content: "· "; opacity: 0.35; }
.ref-rail-item--on { background: #1e3a5f; outline: 1px solid #2563eb; }
.ref-rail-check { font-size: 10px; color: #22c55e; margin-top: 2px; }
.sys-fields { display: flex; flex-direction: column; gap: 0; }
.sys-field {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.sys-field span { color: #64748b; flex-shrink: 0; min-width: 72px; }
.sys-field b { text-align: right; word-break: break-all; color: #0f172a; font-weight: 500; }
.ref-cast-status {
  position: absolute; pointer-events: none;
  top: 6px; bottom: auto; left: 8px; right: 8px;
  font-size: 11px; color: #cbd5e1; background: rgba(0,0,0,0.35);
  padding: 2px 6px; border-radius: 4px;
}

.ref-cast-mirror--live, .ref-cast-img--live {
  outline: 2px solid var(--ref-accent);
  outline-offset: -2px;
}
.ref-phone-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--ref-muted); font-size: 13px; gap: 8px;
}
.ref-phone-icon {
  width: 48px; height: 48px; border-radius: 12px;
  border: 2px dashed #374151;
}
.ref-phone-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #94a3b8; font-size: 13px;
}
.ref-phone-screen--manual-unlock,
.ref-phone-screen--touch,
.ref-phone-screen--pattern-unlock { cursor: crosshair; touch-action: none; }
.ref-phone-screen--pattern-unlock .a11y-mirror-pattern-dot { pointer-events: none; }
.a11y-mirror-pattern-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}
.a11y-mirror-pattern-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  pointer-events: none;
}
.a11y-mirror-pattern-dot-ring {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.95);
  background: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}
.a11y-mirror-pattern-dot--overlay .a11y-mirror-pattern-dot-ring {
  border-width: 2.5px;
  background: rgba(56, 189, 248, 0.35);
}
.mirror-trail-layer {
  position: absolute; inset: 0; z-index: 60; pointer-events: none; overflow: visible; display: none;
}
.mirror-trail-layer svg { width: 100%; height: 100%; display: block; }
.mirror-trail-dot {
  fill: #38bdf8; stroke: #fff; stroke-width: 0.35; pointer-events: none;
}
.mirror-trail-dot--last { fill: #fbbf24; stroke: #fff; stroke-width: 0.45; }
.mirror-trail-head { pointer-events: none; }
.ref-pattern-mirror-hint {
  position: absolute; left: 0; right: 0; top: 0; z-index: 12;
  padding: 6px 8px; font-size: 11px; line-height: 1.35;
  color: #e8f4ff; background: linear-gradient(180deg, rgba(8, 30, 58, 0.92), rgba(8, 30, 58, 0.55));
  pointer-events: none; text-align: center;
}
.ref-pattern-mirror-hint strong { display: block; margin-top: 2px; color: #7dd3fc; letter-spacing: 0.04em; }
.ref-pattern-mirror-hint em { display: block; margin-top: 2px; font-style: normal; color: #fbbf24; font-size: 10px; }
.ref-pattern-draw-overlay {
  position: absolute; inset: 0; z-index: 11; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.ref-phone-tip--pattern { color: #7dd3fc; }
.ref-phone-screen--touch .a11y-mirror-block--text { pointer-events: none; }

.ref-phone-tip {
  margin: 6px 0 0; font-size: 11px; color: #94a3b8; text-align: center;
}

.ref-phone-bar {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: nowrap; flex-shrink: 0;
  margin-top: 2px;
}
.ref-select {
  flex: 1; min-width: 0;
  border: 1px solid #374151; border-radius: 8px;
  padding: 6px 8px; font-size: 11px;
  background: #1f2937; color: #e2e8f0;
}
.ref-btn {
  border: 0; border-radius: 8px;
  padding: 6px 10px; font-size: 12px;
  cursor: pointer; background: #374151; color: #fff;
  white-space: nowrap; flex-shrink: 0;
}
.ref-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ref-btn--start { background: #16a34a; }
.ref-btn--stop { background: #dc2626; }
.ref-btn--save { background: #2563eb; width: 100%; margin-top: 6px; }
.ref-nav {
  display: flex; gap: 4px; margin-left: auto; flex-shrink: 0;
}
.ref-nav--cast {
  justify-content: center; width: 100%; margin-left: 0;
  flex-shrink: 0;
  padding-top: 2px;
  gap: 6px;
}
.ref-nav-coord {
  margin-right: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: #94a3b8;
  white-space: nowrap;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-nav-coord--muted { color: #6e7681; }
.ref-nav button {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid #374151; background: #1f2937;
  color: #cbd5e1; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ref-nav-clip { color: #60a5fa !important; }
.ref-nav-clip:hover { background: #1e3a5f !important; border-color: #2563eb !important; }
.ref-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.ref-nav button:not(:disabled):hover { background: #374151; }

.ref-dock {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--ref-muted);
  padding: 4px 2px; flex-shrink: 0; flex-wrap: wrap;
}
.ref-dock-item {
  padding: 2px 6px; border-radius: 4px;
  background: #1f2937; cursor: default;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
}
.ref-dock-item--on { background: #2563eb; color: #fff; }
.ref-dock-xy { margin-left: auto; font-family: monospace; white-space: nowrap; }

/* Rail sidebar */
.ref-rail {
  width: var(--ref-rail-w); min-width: var(--ref-rail-w);
  border-right: 1px solid var(--ref-border);
  display: flex; flex-direction: column;
  background: #0d1526; flex-shrink: 0;
  max-height: 100%;
}
.ref-rail-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 4px 0;
}
.ref-rail-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; width: 100%; border: 0;
  background: transparent; color: #cbd5e1;
  padding: 10px 4px; font-size: 10px; cursor: pointer;
  transition: background 0.12s;
}
.ref-rail-item:hover { background: #1f2937; }
.ref-rail-item--0 .ref-rail-icon { color: #a78bfa; }
.ref-rail-item--1 .ref-rail-icon { color: #fbbf24; }
.ref-rail-item--2 .ref-rail-icon { color: #94a3b8; }
.ref-rail-item--3 .ref-rail-icon { color: #f472b6; }
.ref-rail-item--4 .ref-rail-icon { color: #34d399; background: #064e3b; border-radius: 6px; padding: 2px; }
.ref-rail-item--5 .ref-rail-icon { color: #60a5fa; }
.ref-rail-icon { font-size: 19px; line-height: 1; }
.ref-rail-label { text-align: center; line-height: 1.2; font-size: 10px; }
.ref-rail-remark {
  border-top: 1px solid var(--ref-border);
  padding: 8px 6px; flex-shrink: 0;
}
.ref-rail-remark-title {
  font-size: 10px; color: var(--ref-muted); margin-bottom: 4px;
}
.ref-rail-remark textarea {
  width: 100%; border: 1px solid #374151; border-radius: 6px;
  background: #1f2937; color: #e2e8f0; font-size: 10px;
  padding: 4px; resize: none;
}

/* Right panel */
.ref-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ref-actions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px; border-bottom: 1px solid var(--ref-border);
  flex-shrink: 0;
}
.ref-action-btn {
  border: 0; border-radius: 8px;
  padding: 6px 10px; font-size: 12px;
  cursor: pointer; background: #374151; color: #fff;
}
.ref-action-btn--primary { background: #2563eb; }
.ref-action-btn--danger { background: #dc2626; }
.ref-action-btn--warning { background: #d97706; }
.ref-action-btn--success { background: #16a34a; }
.ref-action-btn--info { background: #0891b2; }
.ref-action-btn--purple { background: #7c3aed; }
.ref-action-btn--default { background: #374151; }
.ref-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ref-tabs {
  display: flex; gap: 2px; padding: 6px 12px;
  border-bottom: 1px solid var(--ref-border);
  overflow-x: auto; flex-shrink: 0;
}
.ref-tab {
  border: 0; background: transparent; color: #94a3b8;
  padding: 6px 10px; border-radius: 8px;
  cursor: pointer; font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.ref-tab:hover { color: #e2e8f0; background: #1f2937; }
.ref-tab.active { background: #1f2937; color: #fff; font-weight: 600; }
.ref-tab-badge {
  background: #374151; border-radius: 999px;
  padding: 1px 6px; font-size: 10px; color: #fbbf24;
}
.ref-tab.active .ref-tab-badge { background: #2563eb; color: #fff; }

.ref-panel-body {
  padding: 12px; overflow: auto; flex: 1;
}
.ref-subbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.ref-sub-btn {
  border: 1px solid #374151; border-radius: 8px;
  padding: 5px 12px; font-size: 12px; cursor: pointer;
  background: #1f2937; color: #e2e8f0;
}
.ref-sub-btn--primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.ref-sub-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ref-url {
  flex: 1; min-width: 120px;
  border: 1px solid #374151; border-radius: 8px;
  padding: 5px 10px; font-size: 12px;
  background: #1f2937; color: #e2e8f0;
}

.ref-fields { display: flex; flex-direction: column; }
.ref-field {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--ref-border);
  font-size: 12px;
}
.ref-field span { color: var(--ref-muted); flex-shrink: 0; }
.ref-field b { text-align: right; word-break: break-all; }
.ref-field--highlight b { color: var(--ref-accent); }
.ref-field--subhead {
  font-weight: 600; color: #94a3b8;
  border-bottom: 0; padding-top: 10px;
}

.ref-perm {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--ref-border);
  font-size: 12px;
}
.ref-perm-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #64748b;
}
.ref-perm-dot.on { background: #22c55e; }
.ref-perm-dot.off { background: #ef4444; }
.ref-perm-dot.unknown { background: #64748b; }
.ref-perm-name { flex: 1; }
.ref-perm-state { color: var(--ref-muted); font-size: 11px; }
.ref-perm-apply {
  border: 0; border-radius: 6px; padding: 3px 8px;
  font-size: 11px; cursor: pointer;
  background: #2563eb; color: #fff;
}

.ref-empty {
  padding: 48px 16px; text-align: center;
  color: var(--ref-muted); font-size: 13px;
}
.ref-muted { color: var(--ref-muted); font-size: 12px; }
.device-id-short { font-family: monospace; font-size: 12px; }

/* Device list table — match production visual style */
.dt-table-wrap {
  padding: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dt-table-wrap .dt-table { width: 100%; min-width: 980px; }
.dt-table {
  --el-table-header-bg-color: #fafafa;
  --el-table-header-text-color: #64748b;
  --el-table-row-hover-bg-color: #f8fafc;
  --el-table-border-color: #f1f5f9;
  font-size: 12px;
}
.dt-table .el-table__cell {
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.35;
}
.dt-table .el-table__header th {
  font-weight: 500;
  font-size: 12px;
  padding: 6px 8px;
}
.dt-table .el-table__body tr > td.el-table__cell { height: 34px; }
.dt-table .el-checkbox { height: 14px; }
.dt-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; vertical-align: middle;
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}
.dt-status-dot--off { background: #cbd5e1; box-shadow: none; }
.dt-android-id {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px; color: #334155;
  letter-spacing: -0.02em;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  cursor: default;
}
.dt-cell-stack { display: flex; flex-direction: column; gap: 0; line-height: 1.3; }
.dt-cell-main { color: #0f172a; font-size: 12px; }
.dt-cell-sub { color: #94a3b8; font-size: 11px; }
.dt-staff-unassigned { color: #2563eb; }
.staff-code-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.staff-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 600; color: #0f172a;
}
.staff-code-sub { font-size: 11px; color: #94a3b8; }
.staff-form-hint { margin: 0; font-size: 12px; color: #64748b; line-height: 1.5; }
.staff-client-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.staff-panel { overflow: hidden; }
.staff-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid #f1f5f9;
}
.staff-batch-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 20px; background: #fafafa; border-bottom: 1px solid #f1f5f9;
}
.staff-batch-count { font-size: 12px; color: #64748b; margin-right: 4px; }
.staff-user-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #475569; }
.staff-pill-tag { border-radius: 999px; }
.staff-device-badge {
  display: inline-block; min-width: 42px; padding: 2px 10px; border-radius: 999px;
  background: #ecfdf5; color: #059669; font-size: 12px; font-weight: 600;
}
.staff-act-row { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.staff-act {
  border: 0; background: none; padding: 0; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.staff-act:hover { text-decoration: underline; }
.staff-act--edit, .staff-act--login { color: #2563eb; }
.staff-act--pwd, .staff-act--unlock { color: #ea580c; }
.staff-act--key, .staff-act--list, .staff-act--assign { color: #16a34a; }
.staff-table-foot {
  display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid #f1f5f9;
}
.staff-device-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px;
}
.staff-device-modal-body { padding-top: 4px; }
.staff-device-modal-foot {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 8px;
}
.staff-device-modal-foot--end { justify-content: flex-end; }
.staff-device-pick { font-size: 12px; color: #64748b; }
.staff-device-table { --el-table-header-bg-color: #fafafa; font-size: 12px; }
.staff-net-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 600;
}
.staff-batt { font-size: 12px; font-weight: 600; }
.staff-batt--ok { color: #16a34a; }
.staff-batt--mid { color: #d97706; }
.staff-batt--low { color: #dc2626; }
.staff-acc { font-size: 12px; font-weight: 600; }
.staff-acc--on { color: #16a34a; }
.staff-acc--off { color: #dc2626; }
.staff-client-toolbar .el-input { flex: 1; min-width: 180px; }

.builder-panel { overflow: hidden; }
.builder-tabs { --el-tabs-header-height: 44px; }
.builder-tabs > .el-tabs__header { margin: 0; padding: 0 16px; background: #fff; border-bottom: 1px solid #f1f5f9; }
.builder-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid #f1f5f9;
}
.builder-agent-label { font-size: 13px; color: #64748b; }
.builder-agent-label em { font-style: normal; color: #0f172a; font-weight: 600; margin-left: 4px; }
.builder-status-pills { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.builder-pill {
  border: 1px solid #bfdbfe; border-radius: 6px; background: #fff; color: #2563eb;
  padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.builder-pill--on { background: #2563eb; border-color: #2563eb; color: #fff; }
.builder-hint { margin: 0; padding: 10px 20px; font-size: 12px; color: #94a3b8; line-height: 1.5; background: #fafafa; border-bottom: 1px solid #f1f5f9; }
.builder-action-bar { display: flex; gap: 8px; padding: 12px 20px; border-bottom: 1px solid #f1f5f9; }
.builder-table { --el-table-header-bg-color: #fafafa; font-size: 12px; }
.build-icon {
  display: inline-flex; width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
  align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.build-icon-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; display: block; margin: 0 auto; }
.build-copy-link { margin-left: 6px; border: 0; background: none; color: #2563eb; cursor: pointer; font-size: 12px; }
.build-link { color: #2563eb; text-decoration: none; font-size: 12px; }
.build-link:hover { text-decoration: underline; }
.build-status {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid;
}
.build-status--ok { color: #16a34a; border-color: #86efac; background: #f0fdf4; }
.build-status--run { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
.build-status--fail { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }
.builder-wizard-layout { display: grid; grid-template-columns: 200px 1fr; gap: 0; min-height: 520px; }
.builder-side { border-right: 1px solid #f1f5f9; padding: 16px; background: #fafafa; }
.builder-side-block { margin-bottom: 20px; }
.builder-side-block h4 { margin: 0 0 8px; font-size: 13px; color: #334155; }
.builder-side-block p { margin: 0; font-size: 12px; color: #64748b; }
.builder-side-muted { font-size: 12px; color: #94a3b8; margin: 0 0 12px; }
.builder-icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.builder-icon-grid-main { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; max-width: 560px; }
.builder-icon-item {
  aspect-ratio: 1; border: 2px solid #e2e8f0; border-radius: 10px; background: #fff;
  padding: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.builder-icon-item.active { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.builder-icon-item img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.builder-icon-id { font-size: 10px; color: #94a3b8; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.build-icon-step { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.builder-icon-placeholder {
  aspect-ratio: 1; border-radius: 8px; background: #e2e8f0; color: #64748b;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.builder-main { padding: 16px 20px 20px; }
.build-step-body { max-width: 760px; margin: 20px auto 0; min-height: 280px; }
.build-step-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.build-inline-field { display: flex; gap: 8px; width: 100%; }
.build-inline-field .el-input { flex: 1; }
.build-form-grid { max-width: 720px; }
.build-config-section { margin-bottom: 16px; }
.build-config-section:last-child { margin-bottom: 0; }
.build-config-title { margin: 0 0 8px; font-size: 13px; color: #334155; font-weight: 600; }
.build-config-dl {
  display: grid; grid-template-columns: 100px 1fr; gap: 6px 12px; margin: 0;
  font-size: 12px; line-height: 1.5;
}
.build-config-dl dt { color: #64748b; margin: 0; }
.build-config-dl dd { margin: 0; color: #0f172a; word-break: break-all; }
@media (max-width: 900px) {
  .builder-wizard-layout { grid-template-columns: 1fr; }
  .builder-side { border-right: 0; border-bottom: 1px solid #f1f5f9; }
}
.dt-region { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dt-dash { color: #cbd5e1; font-size: 12px; }
.dt-badge {
  display: inline-block; min-width: 32px; text-align: center;
  padding: 0 6px; border-radius: 4px;
  font-size: 11px; line-height: 18px; white-space: nowrap;
}
.dt-badge--ok { background: #dcfce7; color: #16a34a; }
.dt-badge--bad { background: #fee2e2; color: #dc2626; }
.dt-badge--screen-on { background: #dcfce7; color: #16a34a; }
.dt-badge--screen-off { background: #f1f5f9; color: #64748b; }
.dt-badge--wallet { background: #ffedd5; color: #ea580c; min-width: 28px; }
.dt-remark-empty {
  color: #cbd5e1; cursor: pointer; font-size: 12px;
}
.dt-remark-empty:hover { color: #2563eb; }
.dt-remark-text {
  color: #334155; cursor: pointer; font-size: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-remark-text:hover { color: #2563eb; }
.dt-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.dt-act {
  border: 0; background: none; padding: 0;
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.dt-act--detail { color: #2563eb; }
.dt-act--tag { color: #16a34a; }
.dt-act--assign { color: #ea580c; }
.dt-act:hover { text-decoration: underline; }

/* Capture tables inside dark panel */
.ref-panel-body .el-table {
  --el-table-bg-color: #111827;
  --el-table-tr-bg-color: #111827;
  --el-table-header-bg-color: #0f172a;
  --el-table-row-hover-bg-color: #1f2937;
  --el-table-border-color: #1f2937;
  --el-table-text-color: #e2e8f0;
  --el-table-header-text-color: #94a3b8;
}

/* Manual unlock modal — 不挡左侧投屏，投屏上可逐格点击 */
.ref-manual-unlock-root {
  pointer-events: none;
  background: transparent;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 52px 14px 14px;
}
.ref-manual-unlock-root .ref-manual-modal {
  pointer-events: auto;
  max-width: min(92vw, 380px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.ref-manual-modal .ref-pin-pad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; max-width: 240px; margin: 12px auto 0;
}
.ref-pin-key {
  padding: 12px; border: 1px solid #e2e8f0;
  border-radius: 8px; background: #f8fafc;
  cursor: pointer; font-size: 16px;
}
.ref-pattern-board-wrap { margin-top: 8px; text-align: center; }
.ref-pattern-board-empty {
  max-width: 280px; margin: 0 auto; padding: 28px 16px;
  border: 1px dashed #cbd5e1; border-radius: 14px;
  background: #f8fafc; color: #64748b; font-size: 13px; line-height: 1.6;
}
.ref-pattern-board {
  position: relative;
  margin: 0 auto;
  background: #0b1220; border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  touch-action: none; user-select: none; overflow: hidden;
}
.ref-pattern-board--mirror { box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12); }
.ref-pattern-board-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2; display: block;
}
.ref-pattern-dots {
  position: absolute; inset: 0; z-index: 1;
}
.ref-pattern-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(71, 85, 105, 0.85);
  border: 2px solid #94a3b8; box-sizing: border-box;
  cursor: pointer;
}
.ref-pattern-dot em {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-style: normal; font-size: 8px; font-weight: 700; color: #e2e8f0;
  pointer-events: none;
}
.ref-pattern-dot.on {
  background: rgba(59, 130, 246, 0.92); border-color: #93c5fd;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.22);
}
.ref-pattern-seq { margin: 10px 0 0; font-size: 12px; color: #64748b; }
.ref-lock-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 10px;
}
.ref-lock-chips-label {
  font-size: 11px; font-weight: 600; color: #64748b; margin-right: 2px;
}
.ref-lock-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px;
  border: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; cursor: pointer; color: #334155;
}
.ref-lock-chip em {
  font-style: normal; font-size: 10px; color: #64748b;
}
.ref-lock-chip strong {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  font-family: ui-monospace, Consolas, monospace;
}
.ref-lock-chip-best {
  font-size: 10px; color: #2563eb; background: #eff6ff;
  border-radius: 999px; padding: 0 5px; height: 16px; line-height: 16px;
}
.ref-lock-chip:hover { border-color: #2563eb; }
.ref-lock-chip.on {
  border-color: #2563eb; background: #2563eb; color: #fff;
}
.ref-lock-chip.on em, .ref-lock-chip.on .ref-lock-chip-best { color: #dbeafe; background: transparent; }

/* Cast mode picker */
.cast-mode-modal .cast-mode-card {
  border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px; margin-bottom: 8px; cursor: pointer;
  transition: border-color 0.15s;
}
.cast-mode-modal .cast-mode-card:hover { border-color: #2563eb; }
.cast-mode-modal .cast-mode-card.selected {
  border-color: #2563eb; background: #eff6ff;
}
.cast-mode-card-title { font-weight: 600; font-size: 14px; }
.cast-mode-card-desc { font-size: 12px; color: #64748b; margin-top: 4px; }
.cast-mode-card-meta { font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* Cast blocked hint */
.ref-cast-hint {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 16px; text-align: center;
  background: rgba(0,0,0,0.72); color: #e2e8f0; font-size: 13px;
}
.ref-cast-hint-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* 无障碍线框镜像：少框、统一色、可点 */
.a11y-mirror-layout { position: absolute; inset: 0; display: flex; }
.a11y-mirror-viewport, .a11y-mirror-scaler {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.a11y-mirror-stage {
  position: relative; width: 100%; height: 100%;
  background: #0b1220; overflow: hidden;
}
.a11y-mirror-block {
  position: absolute; box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
}
.a11y-mirror-block--input {
  border-color: rgba(250, 204, 21, 0.85);
  background: rgba(250, 204, 21, 0.12);
}
.a11y-mirror-block--tap {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(14, 165, 233, 0.1);
}
.a11y-mirror-block--ime {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(16, 185, 129, 0.14);
  border-radius: 4px;
}
.a11y-mirror-block--input .a11y-mirror-block-label,
.a11y-mirror-block--ime .a11y-mirror-block-label {
  font-size: 12px; font-weight: 600;
}
.a11y-mirror-block--text {
  border-color: rgba(148, 163, 184, 0.32);
  background: transparent;
  pointer-events: none;
}
.a11y-mirror-block--lite {
  background: transparent !important;
  border-style: dashed;
  border-width: 1px;
  pointer-events: none;
}
.a11y-mirror-block--readable {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1px 2px;
  overflow: hidden;
}
.a11y-mirror-block--lite:hover {
  background: rgba(56, 189, 248, 0.06) !important;
  border-color: rgba(56, 189, 248, 0.55);
}
.a11y-mirror-block:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.22);
  z-index: 40 !important;
}
.a11y-mirror-block--lite:hover,
.a11y-mirror-block--text:hover {
  z-index: 12 !important;
}
.a11y-mirror-block--tap:hover,
.a11y-mirror-block--input:hover,
.a11y-mirror-block--ime:hover {
  z-index: 40 !important;
}
.a11y-mirror-block--pattern {
  border-color: #fbbf24; background: rgba(251, 191, 36, 0.16); border-radius: 50%;
}
.a11y-mirror-block-label {
  display: block; max-width: 100%; padding: 1px 4px;
  font-size: 10px; line-height: 1.25; color: #f8fafc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.a11y-mirror-block-label--xs { font-size: 8px; padding: 1px 3px; line-height: 1.2; }
.a11y-mirror-block-label--sm { font-size: 9px; padding: 1px 3px; }
.a11y-mirror-block-label--chip {
  position: absolute;
  left: 0; top: 0;
  max-width: min(94%, 148px);
  white-space: normal;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0 0 5px 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-top: none;
  border-left: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.a11y-mirror-block--readable .a11y-mirror-block-label:not(.a11y-mirror-block-label--chip) {
  white-space: normal;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  padding: 2px 4px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 3px;
  max-height: 100%;
}
.a11y-mirror-content-gap {
  position: absolute; left: 0; z-index: 1; pointer-events: none;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.04);
  border-radius: 6px;
}
.a11y-mirror-content-gap-label {
  position: absolute; left: 6px; top: 6px;
  font-size: 9px; line-height: 1.3; color: rgba(148, 163, 184, 0.85);
  pointer-events: none;
}
.a11y-mirror-content-gap-label span { font-size: 8px; opacity: 0.85; }
.a11y-mirror-focus {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 20;
  font-size: 11px; color: #fde68a; pointer-events: none;
}
.a11y-mirror-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: #94a3b8; font-size: 13px; text-align: center;
}
.a11y-mirror-empty small { font-size: 12px; color: #64748b; }
.a11y-mirror-bar { font-size: 11px; color: #cbd5e1; }

/* Apps grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px; padding: 4px 0; max-height: 520px; overflow: auto;
}
.apps-grid-tile {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 8px; border-radius: 12px;
  background: #1f2937; border: 1px solid #374151;
  transition: background 0.15s;
}
.apps-grid-tile:hover { background: #273449; border-color: #475569; }
.apps-grid-tile--pay { border-color: #b45309; box-shadow: inset 0 0 0 1px rgba(245,158,11,0.25); }
.apps-grid-icon-wrap { position: relative; width: 52px; height: 52px; margin-bottom: 6px; }
.apps-grid-icon, .apps-grid-icon-ph {
  width: 52px; height: 52px; border-radius: 12px; object-fit: cover; display: block;
}
.apps-grid-icon-ph { background: #334155; }
.apps-grid-pay-badge {
  position: absolute; right: -4px; bottom: -4px;
  min-width: 18px; height: 18px; border-radius: 6px; padding: 0 4px;
  background: #f59e0b; color: #111; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.apps-grid-inject-badge {
  position: absolute; right: -4px; bottom: -4px;
  min-width: 18px; height: 18px; border-radius: 6px; padding: 0 4px;
  background: #64748b; color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.apps-grid-name {
  width: 100%; font-size: 12px; font-weight: 600; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e2e8f0;
}
.apps-grid-ver { font-size: 10px; color: #94a3b8; text-align: center; margin-top: 2px; }
.apps-grid-actions { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.apps-grid-actions .ref-sub-btn { padding: 2px 8px; font-size: 11px; }

/* ── 安卓控制台 · 设备详情（浅色，对齐截图） ── */
.wb-console { display: flex; flex-direction: column; min-height: 0; border: none; }
.wb-status-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid #f1f5f9; background: #fff;
}
.wb-status-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.wb-body { display: flex; flex: 1; min-height: 0; gap: 12px; padding: 12px 16px 16px; background: #fff; }
.wb-cast-side { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.wb-phone-shell {
  background: #0f172a; border-radius: 12px; overflow: hidden;
  border: 2px solid #334155; aspect-ratio: 9/16; max-height: 420px;
}
.wb-phone-screen { position: relative; height: 100%; min-height: 320px; background: #111; }
.wb-cast-img, .wb-cast-mirror { width: 100%; height: 100%; object-fit: contain; display: block; position: absolute; inset: 0; }
.wb-cast-status { position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none; }
.wb-phone-placeholder, .wb-cast-hint {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: #94a3b8; font-size: 12px; text-align: center; padding: 12px;
  background: rgba(0,0,0,0.5); z-index: 3;
}
.wb-phone-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-rail-mini { display: flex; flex-wrap: wrap; gap: 4px; }
.wb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wb-action-bar {
  display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.wb-tabs { margin-top: 4px; }
.wb-tabs .el-tabs__header { margin: 0; }
.wb-tab-badge { margin-left: 4px; vertical-align: middle; }
.wb-tab-body { padding: 12px 0; min-height: 200px; }
.wb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.wb-muted { font-size: 12px; color: #64748b; margin-left: auto; }
.wb-empty { padding: 48px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
.wb-cast-img--live, .wb-cast-mirror--live { outline: 2px solid #22c55e; }
.ref-cast-mirror--live, .ref-cast-img--live { outline: 2px solid #22c55e; }

.apps-grid--light .apps-grid-tile {
  background: #fff; border: 1px solid #e2e8f0;
}
.apps-grid--light .apps-grid-tile:hover { background: #f8fafc; border-color: #cbd5e1; }
.apps-grid--light .apps-grid-tile--pay { border-color: #f59e0b; box-shadow: inset 0 0 0 1px rgba(245,158,11,0.2); }
.apps-grid--light .apps-grid-name { color: #0f172a; }
.apps-grid--light .apps-grid-icon-ph { background: #e2e8f0; }
.apps-grid-pack { font-size: 10px; color: #64748b; text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.apps-grid-meta { display: flex; gap: 6px; font-size: 10px; color: #94a3b8; justify-content: center; margin-top: 2px; }
.apps-grid--light .apps-grid-pay-badge { width: auto; padding: 0 5px; border-radius: 6px; font-size: 9px; }
.apps-grid--light .apps-grid-inject-badge { width: auto; padding: 0 5px; border-radius: 6px; font-size: 9px; }

/* ── 全局列表页 polish ── */
.admin-shell .el-table {
  --el-table-border-color: var(--border-soft);
  --el-table-header-bg-color: #f8fafc;
  --el-table-header-text-color: var(--text-muted);
  font-size: 12px;
}
.admin-shell .el-table th.el-table__cell {
  font-weight: 600;
}
.admin-shell .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: #fafbfc;
}
.admin-shell .el-tag {
  border-radius: 6px;
}
.panel-head--tabs { border-bottom: none; padding-bottom: 10px; }
.staff-panel .panel-head + .staff-toolbar { border-top: none; }
.builder-panel > .panel-head { border-bottom: 1px solid var(--border-soft); }
.builder-panel .builder-tabs > .el-tabs__header { margin: 0; padding: 0 16px; }

/* neo 主题 · 外部插件 */
#nprogress .bar { background: linear-gradient(90deg, #6366f1, #8b5cf6) !important; height: 3px !important; }
#nprogress .peg { box-shadow: 0 0 12px #6366f1, 0 0 6px #8b5cf6 !important; }

.admin-shell--neo {
  --neo-bg: #ececf1;
  --neo-surface: #ffffff;
  --neo-accent: #6366f1;
  --neo-accent-2: #8b5cf6;
  --neo-text: #18181b;
  --neo-muted: #71717a;
  --neo-border: rgba(0, 0, 0, 0.06);
  --neo-radius: 20px;
  --el-color-primary: #6366f1;
  --el-border-radius-base: 10px;
  --el-border-radius-small: 8px;
  --sidebar-w: 252px;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.admin-shell--neo {
  background:
    radial-gradient(ellipse 120% 80% at 0% -10%, rgba(99, 102, 241, 0.14), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(139, 92, 246, 0.1), transparent 45%),
    var(--neo-bg);
}

/* ── 浅色玻璃侧栏 ── */
.admin-shell--neo .admin-sidebar {
  width: var(--sidebar-w);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-right: 1px solid var(--neo-border);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
  color: var(--neo-muted);
}
.admin-shell--neo .sidebar-brand {
  padding: 20px 18px;
  border-bottom: 1px solid var(--neo-border);
}
.admin-shell--neo .logo-icon {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  color: #fff;
}
.admin-shell--neo .logo-text { color: var(--neo-text); font-size: 16px; }
.admin-shell--neo .logo-sub { color: var(--neo-muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-shell--neo .nav-group-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #a1a1aa; padding: 14px 14px 6px;
}
.admin-shell--neo .sidebar-nav { padding: 8px 10px; }
.admin-shell--neo .sidebar-nav .nav-item {
  padding: 10px 12px; border-radius: 12px; margin-bottom: 4px;
  color: #52525b; font-weight: 500;
}
.admin-shell--neo .sidebar-nav .nav-item::before { display: none; }
.admin-shell--neo .sidebar-nav .nav-item:hover {
  background: rgba(99, 102, 241, 0.08); color: var(--neo-accent);
}
.admin-shell--neo .sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.1));
  color: var(--neo-accent);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}
.admin-shell--neo .nav-icon-wrap {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(99, 102, 241, 0.08); flex-shrink: 0;
}
.admin-shell--neo .nav-item.active .nav-icon-wrap {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.admin-shell--neo .sidebar-footer {
  padding: 12px; border-top: 1px solid var(--neo-border);
  background: rgba(250, 250, 250, 0.6);
}
.admin-shell--neo .sidebar-collapse-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 1px solid var(--neo-border); border-radius: 10px;
  background: #fff; color: #52525b; padding: 8px 10px;
  font-size: 12px; cursor: pointer; margin-bottom: 10px;
  transition: border-color 0.15s, color 0.15s;
}
.admin-shell--neo .sidebar-collapse-btn:hover { border-color: #c4b5fd; color: var(--neo-accent); }
.admin-shell--neo .sidebar-svc-meta { color: #a1a1aa; }

/* ── 浮动主画布 ── */
.admin-shell--neo .admin-main {
  margin: 12px 12px 12px 0;
  border-radius: var(--neo-radius);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
  overflow: hidden;
}
.admin-shell--neo .admin-header {
  height: 58px; padding: 0 22px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--neo-border);
  box-shadow: none;
}
.admin-shell--neo .header-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.admin-shell--neo .header-crumb { font-size: 11px; color: #a1a1aa; }
.admin-shell--neo .crumb-current { color: var(--neo-muted); }
.admin-shell--neo .header-stat-pill {
  background: #fff; border: 1px solid var(--neo-border);
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.admin-shell--neo .header-stat-pill--online {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-color: #bbf7d0; color: #15803d;
}
.admin-shell--neo .header-refresh-btn {
  border: 1px solid var(--neo-border) !important;
  background: #fff !important;
}

/* ── 胶囊 Tab ── */
.admin-shell--neo .tab-bar {
  background: transparent; border: none;
  padding: 10px 18px 0;
}
.admin-shell--neo .tab-bar .el-tabs--card > .el-tabs__header {
  border: none; background: rgba(244, 244, 245, 0.9);
  border-radius: 999px; padding: 4px; display: inline-flex;
}
.admin-shell--neo .tab-bar .el-tabs__nav { border: none !important; }
.admin-shell--neo .tab-bar .el-tabs__item {
  border: none !important; border-radius: 999px !important;
  height: 32px !important; line-height: 32px !important;
  padding: 0 14px !important; font-size: 12px !important;
  color: #71717a !important; transition: all 0.18s ease;
}
.admin-shell--neo .tab-bar .el-tabs__item.is-active {
  background: #fff !important;
  color: var(--neo-accent) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
}

.admin-shell--neo .admin-body {
  padding: 20px 22px 28px;
  background: transparent;
}

/* ── Hero ── */
.admin-shell--neo .page-hero {
  margin-bottom: 18px; min-height: 120px;
}
.admin-shell--neo .page-hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 24px; flex-wrap: wrap;
}
.admin-shell--neo .page-hero-particles {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.85;
}
.admin-shell--neo .page-hero-kicker {
  margin: 0 0 6px; font-size: 12px; font-weight: 600;
  color: var(--neo-accent); letter-spacing: 0.04em;
}
.admin-shell--neo .page-hero-title {
  margin: 0; font-size: 26px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--neo-text);
}
.admin-shell--neo .page-hero-desc { margin: 6px 0 0; font-size: 13px; color: var(--neo-muted); }
.admin-shell--neo .page-hero-metrics { display: flex; gap: 12px; }
.admin-shell--neo .hero-metric {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.85); border: 1px solid var(--neo-border);
  min-width: 88px;
}
.admin-shell--neo .hero-metric--live {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(255,255,255,0.9));
  border-color: #bbf7d0;
}
.admin-shell--neo .hero-metric-label { font-size: 11px; color: var(--neo-muted); }
.admin-shell--neo .hero-metric-value { font-size: 22px; font-weight: 800; color: var(--neo-text); }
.admin-shell--neo .page-hero--compact .page-hero-inner { padding: 18px 22px; }
.admin-shell--neo .android-spark-chart { width: 200px; height: 64px; flex-shrink: 0; }

/* ── Bento 统计卡 ── */
.admin-shell--neo .bento-grid {
  display: grid; gap: 14px; margin-bottom: 18px;
}
.admin-shell--neo .bento-grid--home {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.admin-shell--neo .bento-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1400px) {
  .admin-shell--neo .bento-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .admin-shell--neo .bento-grid--home,
  .admin-shell--neo .bento-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.admin-shell--neo .bento-card {
  background: var(--neo-surface);
  border: 1px solid var(--neo-border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-shell--neo .bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
}
.admin-shell--neo .bento-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.admin-shell--neo .bento-card-icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-shell--neo .bento-card-icon--dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.admin-shell--neo .bento-card-trend {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #22c55e;
  background: #f0fdf4; padding: 2px 8px; border-radius: 999px;
}
.admin-shell--neo .bento-card-num {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--neo-text); line-height: 1.1;
}
.admin-shell--neo .bento-card-label { font-size: 13px; font-weight: 600; color: #3f3f46; margin-top: 4px; }
.admin-shell--neo .bento-card-sub { font-size: 11px; color: var(--neo-muted); margin-top: 2px; }

.admin-shell--neo .bento-card--blue .bento-card-icon { background: #eef2ff; color: #6366f1; }
.admin-shell--neo .bento-card--blue .bento-card-icon--dot { background: #6366f1; }
.admin-shell--neo .bento-card--green .bento-card-icon { background: #ecfdf5; color: #16a34a; }
.admin-shell--neo .bento-card--green .bento-card-icon--dot { background: #22c55e; }
.admin-shell--neo .bento-card--purple .bento-card-icon { background: #faf5ff; color: #9333ea; }
.admin-shell--neo .bento-card--purple .bento-card-icon--dot { background: #a855f7; }
.admin-shell--neo .bento-card--pink .bento-card-icon { background: #fdf2f8; color: #db2777; }
.admin-shell--neo .bento-card--pink .bento-card-icon--dot { background: #ec4899; }
.admin-shell--neo .bento-card--amber .bento-card-icon { background: #fffbeb; color: #d97706; }
.admin-shell--neo .bento-card--amber .bento-card-icon--dot { background: #f59e0b; }
.admin-shell--neo .bento-card--slate .bento-card-icon { background: #f4f4f5; color: #52525b; }
.admin-shell--neo .bento-card--slate .bento-card-icon--dot { background: #71717a; }
.admin-shell--neo .bento-card--violet .bento-card-icon { background: #f5f3ff; color: #7c3aed; }
.admin-shell--neo .bento-card--violet .bento-card-icon--dot { background: #8b5cf6; }

/* ── ECharts 面板 ── */
.admin-shell--neo .neo-charts-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px;
}
@media (max-width: 1100px) {
  .admin-shell--neo .neo-charts-row { grid-template-columns: 1fr; }
}
.admin-shell--neo .neo-chart-panel { margin-bottom: 0; }
.admin-shell--neo .neo-chart { height: 260px; padding: 0 8px 12px; }

/* ── 分段筛选 chips ── */
.admin-shell--neo .seg-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
  padding: 6px; background: rgba(244,244,245,0.9); border-radius: 14px;
  width: fit-content; max-width: 100%;
}
.admin-shell--neo .seg-chip {
  border: none; background: transparent; border-radius: 10px;
  padding: 8px 14px; font-size: 12px; font-weight: 500;
  color: #52525b; cursor: pointer; transition: all 0.15s;
}
.admin-shell--neo .seg-chip:hover { color: var(--neo-accent); }
.admin-shell--neo .seg-chip--on {
  background: #fff; color: var(--neo-accent); font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}
.admin-shell--neo .seg-count {
  margin-left: 4px; font-size: 11px; opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

/* ── 内容面板升级 ── */
.admin-shell--neo .content-panel {
  border-radius: 16px;
  border: 1px solid var(--neo-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  background: var(--neo-surface);
}
.admin-shell--neo .panel-head {
  background: linear-gradient(180deg, #fff, #fafafa);
  border-bottom: 1px solid var(--neo-border);
}
.admin-shell--neo .panel-head h3 { font-size: 14px; font-weight: 700; }
.admin-shell--neo .filter-bar { background: #fafafa; }
.admin-shell--neo .android-quick-pill {
  border-radius: 10px; border-color: var(--neo-border);
}
.admin-shell--neo .android-quick-pill--on {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
}
.admin-shell--neo .home-preset-btn--on {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
}

.admin-shell--neo .el-button--primary {
  background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
  border: none !important;
}
.admin-shell--neo .el-button--primary:hover {
  filter: brightness(1.05);
}

.admin-shell.sidebar-collapsed.admin-shell--neo .admin-sidebar { width: 72px; }
.admin-shell.sidebar-collapsed.admin-shell--neo .nav-icon-wrap { margin: 0 auto; }

/* ops 主题 */
#nprogress .bar {
  background: linear-gradient(90deg, #2563eb, #6366f1) !important;
  height: 2px !important;
}

.admin-shell--ops {
  --ops-bg: #edf1f7;
  --ops-surface: #fff;
  --ops-border: #dde4ee;
  --ops-text: #1e293b;
  --ops-muted: #64748b;
  --ops-accent: #0284c7;
  --ops-accent-soft: #e0f2fe;
  --sidebar-w: 220px;
  --header-h: 50px;
  --el-color-primary: #0284c7;
}

.admin-shell--ops {
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(99, 102, 241, 0.06), transparent 50%),
    var(--ops-bg);
}

/* 侧栏 · 深色渐变 + 激活光晕 */
.admin-shell--ops .admin-sidebar {
  width: var(--sidebar-w);
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(56, 189, 248, 0.08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 50%, #0b1220 100%);
  border-right: 1px solid rgba(56, 189, 248, 0.1);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.14);
  color: #94a3b8;
}
.admin-shell--ops .sidebar-brand {
  padding: 14px 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-shell--ops .logo-text { color: #f1f5f9; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.admin-shell--ops .logo-sub { color: #64748b; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-shell--ops .logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  font-size: 14px;
}
.admin-shell--ops .logo-text { color: #f8fafc; font-size: 14px; font-weight: 700; }
.admin-shell--ops .logo-sub { color: #64748b; font-size: 10px; }
.admin-shell--ops .nav-group-label {
  font-size: 10px; padding: 10px 12px 4px; color: #475569;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.admin-shell--ops .sidebar-nav { padding: 6px 8px; }
.admin-shell--ops .sidebar-nav .nav-item {
  padding: 9px 10px; border-radius: 10px; font-size: 13px; margin-bottom: 3px;
  gap: 10px;
}
.admin-shell--ops .sidebar-nav .nav-item::before { display: none; }
.admin-shell--ops .sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.06); color: #e2e8f0;
}
.admin-shell--ops .sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.28), rgba(56, 189, 248, 0.12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.admin-shell--ops .sidebar-footer {
  padding: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}
.admin-shell--ops .sidebar-collapse-btn {
  padding: 7px 10px; margin-bottom: 8px; font-size: 11px;
  background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8; border-radius: 8px;
}
.admin-shell--ops .sidebar-collapse-btn:hover { color: #e2e8f0; border-color: rgba(96, 165, 250, 0.4); }
.admin-shell--ops .status-dot { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3); }

/* 主区 */
.admin-shell--ops .admin-main {
  margin: 0; border-radius: 0; border: none;
  background: transparent; box-shadow: none;
}
.admin-shell--ops .admin-header {
  height: var(--header-h);
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ops-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.admin-shell--ops .header-refresh-btn {
  border: 1px solid var(--ops-border) !important;
  background: #fff !important;
  color: #64748b !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.admin-shell--ops .header-refresh-btn:hover {
  color: var(--ops-accent) !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}
.admin-shell--ops .header-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.admin-shell--ops .header-crumb { color: #94a3b8; }
.admin-shell--ops .header-stat-pill {
  padding: 4px 10px; font-size: 11px; font-weight: 600;
  background: #f8fafc; border: 1px solid var(--ops-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.admin-shell--ops .header-stat-pill--online {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border-color: #bbf7d0; color: #15803d;
}
.admin-shell--ops .pulse-dot { animation: pulse-online 2.5s infinite; }

/* Tab · 圆角胶囊 */
.admin-shell--ops .tab-bar {
  padding: 8px 14px 0;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--ops-border);
}
.admin-shell--ops .tab-bar .el-tabs--card > .el-tabs__header {
  background: #eef2f6; border-radius: 999px; padding: 3px; border: none;
  display: inline-flex;
}
.admin-shell--ops .tab-bar .el-tabs__nav { border: none !important; }
.admin-shell--ops .tab-bar .el-tabs__item {
  height: 30px !important; line-height: normal !important;
  border: none !important; border-radius: 999px !important;
  color: #64748b !important; padding: 0 10px !important;
  font-size: 12px !important; box-shadow: none !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
}
.admin-shell--ops .tab-bar .el-tabs__item.is-closable {
  padding-right: 8px !important;
  gap: 3px;
}
.admin-shell--ops .tab-bar .el-tabs__item .is-icon-close {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  align-self: center;
}
.admin-shell--ops .tab-bar .el-tabs__item.is-active {
  color: var(--ops-accent) !important;
  background: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.14) !important;
}

.admin-shell--ops .admin-body {
  padding: 16px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.admin-shell--ops .admin-body::-webkit-scrollbar { width: 8px; height: 8px; }
.admin-shell--ops .admin-body::-webkit-scrollbar-thumb {
  background: #cbd5e1; border-radius: 999px;
}
.admin-shell--ops .admin-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 横幅 · 轻量渐变 */
.admin-shell--ops .ops-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px; padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid #bae6fd;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 55%, #f8fafc 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
}
.admin-shell--ops .ops-banner--sm { padding: 12px 16px; }
.admin-shell--ops .ops-banner-title {
  margin: 0; font-size: 17px; font-weight: 700; color: #1e293b;
  letter-spacing: -0.02em;
}
.admin-shell--ops .ops-banner-sub {
  margin: 4px 0 0; font-size: 12px; color: #64748b;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.admin-shell--ops .ops-banner-sub strong { color: #0369a1; font-weight: 700; }
.admin-shell--ops .ops-banner-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}
.admin-shell--ops .ops-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* 统计条 · 图标 + 色块 */
.admin-shell--ops .ops-stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.admin-shell--ops .ops-stat-strip--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1200px) {
  .admin-shell--ops .ops-stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .admin-shell--ops .ops-stat-strip,
  .admin-shell--ops .ops-stat-strip--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.admin-shell--ops .ops-stat-item {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 11px;
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  min-height: 64px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative; overflow: hidden;
}
.admin-shell--ops .ops-stat-item::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--ops-accent); opacity: 0.85;
}
.admin-shell--ops .ops-stat--blue::after { background: #2563eb; }
.admin-shell--ops .ops-stat--green::after { background: #22c55e; }
.admin-shell--ops .ops-stat--violet::after { background: #8b5cf6; }
.admin-shell--ops .ops-stat--amber::after { background: #f59e0b; }
.admin-shell--ops .ops-stat--pink::after { background: #ec4899; }
.admin-shell--ops .ops-stat--purple::after { background: #a855f7; }
.admin-shell--ops .ops-stat--slate::after { background: #64748b; }

.admin-shell--ops .ops-stat--blue { background: linear-gradient(135deg, #fff 70%, #eff6ff 100%); }
.admin-shell--ops .ops-stat--green { background: linear-gradient(135deg, #fff 70%, #ecfdf5 100%); }
.admin-shell--ops .ops-stat--violet { background: linear-gradient(135deg, #fff 70%, #f5f3ff 100%); }
.admin-shell--ops .ops-stat--amber { background: linear-gradient(135deg, #fff 70%, #fffbeb 100%); }
.admin-shell--ops .ops-stat--pink { background: linear-gradient(135deg, #fff 70%, #fdf2f8 100%); }
.admin-shell--ops .ops-stat--purple { background: linear-gradient(135deg, #fff 70%, #faf5ff 100%); }
.admin-shell--ops .ops-stat--slate { background: linear-gradient(135deg, #fff 70%, #f8fafc 100%); }

.admin-shell--ops .ops-stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, 0.1); color: #2563eb; flex-shrink: 0;
  font-size: 18px;
}
.admin-shell--ops .ops-stat--green .ops-stat-icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.admin-shell--ops .ops-stat--violet .ops-stat-icon { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.admin-shell--ops .ops-stat--amber .ops-stat-icon { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.admin-shell--ops .ops-stat--pink .ops-stat-icon { background: rgba(236, 72, 153, 0.12); color: #db2777; }
.admin-shell--ops .ops-stat--purple .ops-stat-icon { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.admin-shell--ops .ops-stat--slate .ops-stat-icon { background: rgba(100, 116, 139, 0.12); color: #475569; }

.admin-shell--ops .ops-stat-body { display: flex; flex-direction: column; min-width: 0; }
.admin-shell--ops .ops-stat-item--btn {
  cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  font: inherit; width: 100%; text-align: left;
}
.admin-shell--ops .ops-stat-item--btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
  border-color: #93c5fd;
}
.admin-shell--ops .ops-stat-item--on {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), 0 6px 16px rgba(37, 99, 235, 0.12);
}
.admin-shell--ops .ops-stat-val {
  font-size: 21px; font-weight: 800; line-height: 1.15; color: var(--ops-text);
  letter-spacing: -0.02em;
}
.admin-shell--ops .ops-stat-lbl {
  font-size: 11px; color: var(--ops-muted); margin-top: 2px;
}

/* 快捷筛选 */
.admin-shell--ops .ops-quick-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 10px 12px;
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.admin-shell--ops .ops-quick-label { font-size: 12px; color: var(--ops-muted); font-weight: 600; }
.admin-shell--ops .ops-quick-btn {
  border: 1px solid var(--ops-border); background: #f8fafc; border-radius: 8px;
  padding: 5px 11px; font-size: 12px; color: #334155; cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.admin-shell--ops .ops-quick-btn:hover { border-color: #93c5fd; background: #eff6ff; }
.admin-shell--ops .ops-quick-btn em { font-style: normal; margin-left: 4px; color: #94a3b8; font-size: 11px; }
.admin-shell--ops .ops-quick-btn--on {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-color: transparent; color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.admin-shell--ops .ops-quick-btn--on em { color: rgba(255,255,255,.85); }
.admin-shell--ops .ops-quick-spacer { flex: 1; min-width: 8px; }
.admin-shell--ops .ops-quick-link {
  border: none; background: none; color: #0284c7; font-size: 12px; font-weight: 600; cursor: pointer;
}
.admin-shell--ops .ops-quick-link:hover { text-decoration: underline; }

/* 面板 */
.admin-shell--ops .content-panel {
  border-radius: 12px;
  border-color: var(--ops-border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.admin-shell--ops .content-panel:hover {
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
}
.admin-shell--ops .panel-head--lite {
  padding: 10px 14px;
  background: linear-gradient(180deg, #fafbfc, #f4f6f8);
  border-bottom: 1px solid var(--ops-border);
}
.admin-shell--ops .panel-head--lite h3 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--ops-text);
  display: flex; align-items: center; gap: 6px;
}
.admin-shell--ops .panel-head-icon { color: var(--ops-accent); font-size: 16px; }
.admin-shell--ops .home-filter-block--compact {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}
.admin-shell--ops .home-preset-btn--on {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: transparent; color: #fff;
}

/* 安卓 sticky 筛选 */
.admin-shell--ops .android-panel { overflow: visible; }
.admin-shell--ops .ops-sticky-bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--ops-surface);
  border-bottom: 1px solid var(--ops-border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.admin-shell--ops .android-quick-row--dense { padding: 10px 12px 6px; gap: 6px; }
.admin-shell--ops .filter-bar--dense { padding: 8px 12px 10px; background: #f8fafc; }
.admin-shell--ops .ops-result-count { font-size: 12px; color: var(--ops-muted); font-weight: 600; }
.admin-shell--ops .android-quick-pill--on {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.admin-shell--ops .el-button--primary {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.24);
}
.admin-shell--ops .el-button--primary:hover { filter: brightness(1.05); }
.admin-shell--ops .el-table th.el-table__cell {
  background: #f8fafc !important;
  color: #475569;
  font-weight: 600;
  font-size: 12px;
}
.admin-shell--ops .el-table .el-table__cell { padding: 6px 10px; font-size: 12px; }
.admin-shell--ops .el-table__body tr:hover > td.el-table__cell {
  background: #f0f9ff !important;
}
.admin-shell--ops .dt-table .el-table__body tr > td.el-table__cell { height: 34px; }

.admin-shell.sidebar-collapsed.admin-shell--ops .admin-sidebar { width: 60px; }

/* 设备控制页 */
.admin-shell--ops .admin-body--device {
  padding: 0;
  background: #0f1419;
  overflow: hidden;
}

.ref-console {
  --ref-bg: #0f1419;
  --ref-panel: #161b22;
  --ref-border: #2d333b;
  --ref-muted: #8b949e;
  --ref-text: #e6edf3;
  --ref-accent: #3fb950;
  --ref-rail-w: 100px;
  background: var(--ref-bg);
  height: 100%;
  min-height: 0;
}

.ref-device-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #161b22, #13171d);
  border-bottom: 1px solid var(--ref-border);
  flex-shrink: 0;
}
.ref-device-bar-main {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0;
}
.ref-device-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #6b7280; flex-shrink: 0;
}
.ref-device-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.ref-device-model { font-size: 14px; color: #f0f6fc; font-weight: 600; white-space: nowrap; }
.ref-device-id {
  font-family: ui-monospace, monospace; font-size: 11px;
  color: #8b949e; background: #21262d; padding: 2px 8px; border-radius: 6px;
  max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ref-device-meta { font-size: 12px; color: var(--ref-muted); white-space: nowrap; }
.ref-device-bar-actions { display: flex; gap: 4px; flex-shrink: 0; }
.ref-device-bar-actions .el-button { color: #8b949e !important; }
.ref-device-bar-actions .el-button:hover { color: #e6edf3 !important; }

.ref-left {
  background: linear-gradient(180deg, #13171d 0%, #0d1117 100%);
  gap: 4px;
  padding: 8px 10px 10px;
}
.ref-left-head {
  font-size: 11px; font-weight: 600; color: #8b949e;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0; padding-left: 2px;
  flex-shrink: 0;
}
.ref-phone-shell {
  border-radius: 18px;
  border-color: #30363d;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.ref-phone-tip {
  flex-shrink: 0;
  margin: 2px 0 0;
  line-height: 1.3;
}
.ref-phone-placeholder { gap: 10px; }
.ref-phone-ph-icon { font-size: 40px !important; color: #484f58; opacity: 0.8; }
.ref-phone-placeholder p { margin: 0; font-size: 12px; color: #6e7681; }
.ref-select { border-color: #30363d; background: #21262d; border-radius: 8px; }
.ref-btn { border-radius: 8px; font-weight: 600; }
.ref-btn--start { background: linear-gradient(180deg, #2ea043, #238636); }
.ref-btn--stop { background: linear-gradient(180deg, #f85149, #da3633); }
.ref-nav--cast { justify-content: center; width: 100%; margin-left: 0; }
.ref-nav button {
  border-radius: 8px; border-color: #30363d; background: #21262d;
  transition: background 0.12s, border-color 0.12s;
}
.ref-nav button:not(:disabled):hover { background: #30363d; border-color: #484f58; }

.ref-rail {
  width: var(--ref-rail-w); min-width: var(--ref-rail-w);
  background: #161b22;
}
.ref-rail-title {
  font-size: 10px; font-weight: 700; color: #6e7681;
  text-align: center; padding: 8px 4px 6px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid #21262d;
  flex-shrink: 0;
}
.ref-rail-item {
  border-radius: 10px; margin: 1px 4px; width: calc(100% - 8px);
  padding: 8px 2px;
}
.ref-rail-item:hover { background: #21262d; }
.ref-rail-item--on {
  background: #1f2d3d !important;
  outline: 1px solid #388bfd;
  box-shadow: 0 0 0 1px rgba(56, 139, 253, 0.15);
}
.ref-rail-icon { font-size: 18px; }
.ref-rail-label { font-size: 10px; color: #8b949e; line-height: 1.2; }
.ref-rail-item--on .ref-rail-label { color: #e6edf3; }
.ref-rail-remark { background: #13171d; border-top: 1px solid var(--ref-border); }
.ref-rail-remark textarea {
  border-color: #30363d; background: #0d1117; border-radius: 8px;
  font-size: 11px; padding: 6px;
}
.ref-btn--save {
  background: linear-gradient(180deg, #388bfd, #2563eb);
  border-radius: 8px; margin-top: 8px;
}

.ref-panel--light {
  background: #f6f8fa;
  border-left: none;
  padding: 0;
  display: flex; flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.ref-panel--light .wb-action-bar {
  display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #d0d7de;
  margin: 0;
  flex-shrink: 0;
}
.wb-action-bar-label {
  font-size: 11px; font-weight: 700; color: #656d76;
  letter-spacing: 0.04em; text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 7px;
  min-width: 56px;
}
.wb-action-btns {
  display: flex; flex-wrap: wrap; gap: 6px;
  flex: 1; min-width: 0;
}
.wb-action-btns .el-button {
  margin: 0 !important;
  border-radius: 8px !important;
  font-weight: 500;
  font-size: 12px !important;
  padding: 7px 12px !important;
  height: auto !important;
}

.wb-tabs--device {
  background: #fff;
  padding: 0 12px;
  border-bottom: 1px solid #d0d7de;
  flex-shrink: 0;
}
.wb-tabs--device .el-tabs__header { margin: 0; }
.wb-tabs--device .el-tabs__nav-wrap { overflow: hidden; }
.wb-tabs--device .el-tabs__item {
  height: 36px; font-size: 12px; font-weight: 500; color: #656d76;
  padding: 0 14px !important;
}
.wb-tabs--device .el-tabs__item.is-active { color: #0969da; font-weight: 600; }
.wb-tabs--device .el-tabs__active-bar { background: #0969da; height: 2px; }

.ref-panel--light .wb-tab-body {
  padding: 12px 14px 16px;
  flex: 1; overflow: auto; min-height: 0;
  background: #f6f8fa;
}

.wb-toolbar--card {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  gap: 8px;
}
.wb-toolbar--card .wb-muted { margin-left: 0; }

.wb-sys-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.wb-sys-card {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(27, 31, 36, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.wb-sys-card-title {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #1f2328;
  display: flex; align-items: baseline; gap: 8px;
  flex-shrink: 0;
}
.wb-sys-card-title small { font-size: 11px; font-weight: 500; color: #656d76; }
.wb-sys-card .sys-fields--grid { flex: 1; }

.sys-fields--grid .sys-field {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 12px;
  align-items: start;
  line-height: 1.4;
}
.sys-fields--grid .sys-field:last-child { border-bottom: none; }
.sys-fields--grid .sys-field span { color: #656d76; min-width: 0; }
.sys-fields--grid .sys-field b {
  text-align: left; color: #1f2328; font-weight: 500;
  word-break: break-all;
}

.wb-empty--sm { padding: 24px 12px; font-size: 12px; }

.ref-cast-mirror--live, .ref-cast-img--live {
  outline: 2px solid #3fb950;
  outline-offset: -2px;
}

@media (max-width: 1100px) {
  .wb-sys-grid { grid-template-columns: 1fr; }
  .ref-main { flex-direction: column; overflow-y: auto; overflow-x: hidden; }
  .ref-left {
    width: 100%; min-width: 0; max-width: none;
    border-right: none; border-bottom: 1px solid var(--ref-border);
  }
  .ref-phone-shell {
    width: min(100%, 400px);
    max-height: min(52vh, 560px);
    height: auto;
    margin: 0 auto;
  }
  .ref-rail {
    width: 100%; min-width: 0; flex-direction: row; max-height: none;
    border-right: none; border-bottom: 1px solid var(--ref-border);
  }
  .ref-rail-title { display: none; }
  .ref-rail-scroll {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden; flex: 1; padding: 6px 4px;
  }
  .ref-rail-item { width: 68px; min-width: 68px; flex-shrink: 0; margin: 0; }
  .ref-rail-remark { display: none; }
  .ref-panel { min-height: 360px; }
}

/* 响应式 */
@media (min-width: 1440px) {
  .dt-table-wrap .dt-table { min-width: 100%; }
  .admin-shell--ops .admin-body { padding: 14px 20px 20px; }
}

@media (max-width: 1280px) {
  .admin-shell--ops .admin-body { padding: 10px 12px 14px; }
  .admin-shell--ops .ops-banner,
  .admin-shell--ops .ops-banner--sm { padding: 10px 14px; }
  .header-stat-pill:not(.header-stat-pill--online) { display: none; }
}

@media (max-width: 992px) {
  :root { --sidebar-w: 200px; }
  .admin-header { padding: 0 12px; }
  .header-title { font-size: 15px; }
  .android-table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .android-toolbar-left,
  .android-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .android-toolbar-right .el-pagination {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .admin-shell--ops .filter-bar--dense {
    padding: 8px 10px 10px;
  }
  .admin-shell--ops .filter-bar--dense .filter-bar-spacer { display: none; }
  .admin-shell--ops .ops-sticky-bar .filter-bar--dense .el-input {
    flex: 1 1 100%;
    min-width: 0 !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .admin-shell--ops .admin-body { padding: 8px 8px 12px; }
  .admin-shell--ops .ops-banner-title { font-size: 15px; }
  .admin-shell--ops .ops-stat-item { min-height: 56px; padding: 10px 12px; }
  .admin-shell--ops .ops-stat-val { font-size: 18px; }
  .admin-shell--ops .ops-stat-icon { width: 32px; height: 32px; font-size: 16px; }
  .android-quick-row--dense { padding: 8px 10px 4px !important; }
  .admin-shell--ops .filter-bar--dense {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-shell--ops .filter-bar--dense .el-button { width: 100%; margin-left: 0 !important; }
  .ui-version-badge { display: none; }
  .tab-bar { padding: 6px 8px 0; overflow-x: auto; }
  .dt-table-wrap .dt-table { min-width: 880px; }
  .ref-phone-shell { width: min(100%, 280px); max-height: min(46vh, 440px); }
  .wb-action-btns { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .header-crumb { display: none; }
  .admin-shell--ops .ops-quick-spacer { display: none; }
  .admin-shell--ops .ops-quick-bar { gap: 6px; }
}

/* ── 快捷控制侧栏 v2（单列 · 撑满高度 · 无滚动） ── */
.ref-rail--v2 {
  width: 128px;
  min-width: 128px;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  background: linear-gradient(180deg, #1a2332 0%, #121820 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}
.ref-rail--v2 .ref-rail-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: 4px 3px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ref-rail--v2 .ref-rail-scroll .el-tooltip__trigger {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.ref-rail--v2 .ref-rail-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 0;
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 2px 5px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  gap: 7px;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.ref-rail--v2 .ref-rail-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.12);
}
.ref-rail--v2 .ref-rail-item:active {
  transform: scale(0.98);
}
.ref-rail--v2 .ref-rail-item--on {
  background: rgba(56, 139, 253, 0.14) !important;
  border-color: rgba(56, 139, 253, 0.4) !important;
}
.ref-rail--v2 .ref-rail-item--on .ref-rail-label {
  color: #fff;
  font-weight: 600;
}
.ref-rail--v2 .ref-rail-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 72%, 40px);
  height: clamp(28px, 72%, 40px);
  border-radius: 8px;
  margin: 0;
  color: #fff;
  flex-shrink: 0;
  align-self: center;
}
.ref-rail--v2 .ref-rail-item--on .ref-rail-icon-wrap {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.ref-rail--v2 .ref-rail-icon {
  font-size: clamp(14px, 2.4vh, 18px);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-rail--v2 .ref-rail-label {
  flex: 1;
  min-width: 0;
  font-size: clamp(12px, 1.7vh, 14px);
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1;
  display: flex;
  align-items: center;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-rail--v2 .ref-rail-active-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  border: 1px solid #1a2332;
}
.ref-rail--v2 .ref-rail-item--accent-violet .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #a78bfa, #6366f1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.ref-rail--v2 .ref-rail-item--accent-amber .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
.ref-rail--v2 .ref-rail-item--accent-sky .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}
.ref-rail--v2 .ref-rail-item--accent-rose .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #fb7185, #e11d48);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.32);
}
.ref-rail--v2 .ref-rail-item--accent-emerald .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #34d399, #059669);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}
.ref-rail--v2 .ref-rail-item--accent-blue .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.ref-rail--v2 .ref-rail-item--accent-slate .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #64748b, #334155);
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.4);
}
.ref-rail--v2 .ref-rail-item--accent-orange .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #fb923c, #ea580c);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}
.ref-rail--v2 .ref-rail-item--accent-cyan .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #22d3ee, #0891b2);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.35);
}
.ref-rail--v2 .ref-rail-item--accent-pink .ref-rail-icon-wrap {
  background: linear-gradient(145deg, #f472b6, #db2777);
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.35);
}
.ref-rail--v2 .ref-rail-remark {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: clamp(6px, 1.2vh, 10px) 6px clamp(8px, 1.4vh, 12px);
}
.ref-rail--v2 .ref-rail-remark-title {
  color: #94a3b8;
  font-size: clamp(10px, 1.3vh, 11px);
  font-weight: 600;
  margin-bottom: 4px;
}
.ref-rail--v2 .ref-rail-remark textarea {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border-radius: 6px;
  font-size: clamp(10px, 1.4vh, 12px);
  padding: clamp(4px, 0.8vh, 6px) 6px;
  min-height: clamp(26px, 3.5vh, 34px);
  resize: none;
}
.ref-rail--v2 .ref-btn--save-sm {
  margin-top: clamp(4px, 0.8vh, 6px);
  padding: clamp(4px, 0.8vh, 6px) 0;
  font-size: clamp(10px, 1.4vh, 12px);
  border-radius: 6px;
}

/* ── UI polish pass 2 ── */
.admin-shell--ops .sidebar-nav .nav-item .el-icon {
  font-size: 17px;
  opacity: 0.88;
  transition: opacity 0.15s, color 0.15s;
}
.admin-shell--ops .sidebar-nav .nav-item.active .el-icon {
  opacity: 1;
  color: #7dd3fc;
}
.admin-shell.sidebar-collapsed.admin-shell--ops .sidebar-brand {
  justify-content: center;
  padding: 12px 8px 14px;
}
.admin-shell--ops .sidebar-collapse-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.admin-shell--ops .tab-bar {
  padding: 8px 16px 0;
  background: rgba(255, 255, 255, 0.92);
}
.admin-shell--ops .tab-bar .el-tabs {
  width: 100%;
}
.admin-shell--ops .tab-bar .el-tabs--card > .el-tabs__header {
  width: 100%;
  max-width: 100%;
}
.admin-shell--ops .header-user-pill {
  background: linear-gradient(135deg, #f8fafc, #f0f9ff);
  border-color: #bae6fd;
  color: #0369a1;
  font-weight: 600;
}
.admin-shell--ops .header-stat-pill {
  border-radius: 8px;
}
.admin-shell--ops .ops-stat-item {
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.admin-shell--ops .ops-stat-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.admin-shell--ops .ops-stat-val {
  font-size: 22px;
}
.admin-shell--ops .el-input__wrapper {
  border-radius: 8px !important;
  transition: box-shadow 0.15s ease;
}
.admin-shell--ops .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #7dd3fc inset !important;
}
.admin-shell--ops .el-select .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #7dd3fc inset !important;
}
.admin-shell--ops .meta-modal-head strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.admin-shell--ops .meta-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.admin-shell--ops .meta-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.admin-shell--ops .android-quick-pill {
  border-radius: 8px;
  transition: all 0.12s ease;
}
.admin-shell--ops .android-quick-pill--on {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22);
}
.admin-shell--ops .el-table__body tr:nth-child(even) > td.el-table__cell {
  background: #fafbfd;
}
.admin-shell--ops .el-table__body tr:nth-child(even):hover > td.el-table__cell {
  background: #f0f9ff !important;
}
.admin-shell--ops .empty-wrap {
  padding: 48px 24px;
  color: #94a3b8;
}
#nprogress .bar {
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px 24px 28px;
}
.account-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 20px 22px 24px;
}
.account-card-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.account-form .el-form-item {
  margin-bottom: 16px;
}
.account-inline {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}
.account-inline .el-input {
  flex: 1;
}
.account-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

