/* ==================================================================
   设备页 · 右侧数据面板（DX 系列）
   目标：把顶部那排标签全部接真实数据，视觉走暗色科技感
   类名统一 dx- 前缀，避免和旧 .dp-* 打架
   ================================================================== */

/* ---------------- 面板容器 ---------------- */
.dpanel {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(34, 211, 238, .07), transparent 60%),
    linear-gradient(180deg, rgba(13, 18, 26, .98), rgba(8, 11, 16, .99));
  border: 1px solid rgba(94, 234, 212, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 0 60px rgba(34, 211, 238, .035),
    0 18px 40px rgba(0, 0, 0, .45);
}
.dpanel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(94, 234, 212, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, .035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 70%);
}

/* ---------------- 标签条 ---------------- */
.dp-tabs {
  position: relative; z-index: 2;
  /* 14 个标签排成 7×2，两行等宽，比横向滚动更好找 */
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px; padding: 9px 10px 8px;
  border-bottom: 1px solid rgba(94, 234, 212, .08);
}
.dp-tabs button { width: 100%; padding: 0 4px; }
@media (max-width: 1180px) {
  .dp-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.dp-tabs::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .35), transparent);
}
.dp-tabs button {
  position: relative;
  height: 27px; border-radius: 7px;
  font-size: 11.5px; letter-spacing: .2px;
  color: #7f8ea3; background: transparent; border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s;
}
.dp-tabs button:hover { color: #cfe9ff; background: rgba(34, 211, 238, .07); }
.dp-tabs button.on {
  color: #a9f5ea; font-weight: 600;
  background: linear-gradient(180deg, rgba(34, 211, 238, .18), rgba(34, 211, 238, .07));
  border-color: rgba(34, 211, 238, .38);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .08), 0 0 14px rgba(34, 211, 238, .22);
}
.dp-tabs button.on::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #34e7d4, transparent);
  box-shadow: 0 0 8px rgba(52, 231, 212, .8);
}

/* ---------------- 内容区 ---------------- */
.dp-body { position: relative; z-index: 2; overflow: hidden; }
.dx-pane {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  padding: 12px 12px 10px; gap: 10px; overflow: auto;
}
.dx-pane::-webkit-scrollbar { width: 6px; }
.dx-pane::-webkit-scrollbar-thumb { background: rgba(94, 234, 212, .18); border-radius: 3px; }
.dx-pane::-webkit-scrollbar-track { background: transparent; }

/* 面板头 */
.dx-head {
  display: flex; align-items: center; gap: 9px; flex: 0 0 auto;
  padding: 9px 11px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(24, 33, 45, .82), rgba(15, 21, 29, .82));
  border: 1px solid rgba(94, 234, 212, .13);
}
.dx-head .dx-ic {
  width: 27px; height: 27px; border-radius: 8px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(34, 211, 238, .3), rgba(34, 211, 238, .06));
  border: 1px solid rgba(34, 211, 238, .28);
  box-shadow: inset 0 0 10px rgba(34, 211, 238, .18);
}
.dx-head .dx-tt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dx-head .dx-tt b { font-size: 12.5px; color: #e6f6ff; font-weight: 600; letter-spacing: .3px; }
.dx-head .dx-tt span { font-size: 10.5px; color: #6f8199; }
.dx-head .grow { flex: 1 1 auto; }
.dx-head .dx-cnt {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px; color: #7fe8dc; padding: 2px 8px; border-radius: 999px;
  background: rgba(34, 211, 238, .09); border: 1px solid rgba(34, 211, 238, .2);
}
.dx-btn {
  height: 26px; padding: 0 10px; border-radius: 7px; cursor: pointer;
  font-size: 11px; color: #a9c6e4;
  background: rgba(20, 28, 38, .9); border: 1px solid rgba(120, 160, 200, .18);
  display: inline-flex; align-items: center; gap: 5px;
  transition: all .16s;
}
.dx-btn:hover { color: #d9f6ff; border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 10px rgba(34, 211, 238, .15); }
.dx-btn.pri {
  color: #06202a; font-weight: 600;
  background: linear-gradient(180deg, #4ff0dd, #22c9c0);
  border-color: rgba(79, 240, 221, .6);
  box-shadow: 0 0 14px rgba(34, 211, 238, .3);
}
.dx-btn.pri:hover { filter: brightness(1.08); }
.dx-btn.dan { color: #ffb3b3; border-color: rgba(248, 113, 113, .32); background: rgba(248, 113, 113, .08); }
.dx-btn:disabled { opacity: .45; cursor: not-allowed; }
.dx-btn svg { width: 13px; height: 13px; }

/* KPI 行 */
.dx-kpis { display: grid; gap: 8px; flex: 0 0 auto; }
.dx-kpis.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dx-kpis.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dx-kpis.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dx-kpi {
  padding: 9px 11px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 31, 43, .9), rgba(13, 18, 26, .9));
  border: 1px solid rgba(94, 234, 212, .1);
  display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden;
}
.dx-kpi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #34e7d4, transparent);
  opacity: .55;
}
.dx-kpi em { font-style: normal; font-size: 10.5px; color: #6f8199; }
.dx-kpi b {
  font-size: 17px; font-weight: 700; color: #e8fbff; letter-spacing: .4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  text-shadow: 0 0 14px rgba(34, 211, 238, .25);
}
.dx-kpi b i { font-style: normal; font-size: 10.5px; color: #6f8199; font-weight: 500; margin-left: 2px; }

/* 通用卡片 / 列表 */
.dx-card {
  border-radius: 11px; padding: 10px 12px;
  background: linear-gradient(180deg, rgba(21, 29, 40, .92), rgba(12, 17, 24, .92));
  border: 1px solid rgba(120, 160, 200, .12);
}
.dx-list { display: flex; flex-direction: column; gap: 6px; }
.dx-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px;
  border-radius: 9px; background: rgba(19, 26, 36, .78);
  border: 1px solid rgba(120, 160, 200, .1);
  transition: border-color .15s, background .15s;
}
.dx-row:hover { border-color: rgba(34, 211, 238, .3); background: rgba(23, 32, 44, .9); }
.dx-row .r-ava {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #041d22;
}
.dx-row .r-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dx-row .r-t {
  font-size: 12px; color: #d5e6f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dx-row .r-s {
  font-size: 10.5px; color: #6f8199; font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dx-row .r-x { flex: 0 0 auto; font-size: 10.5px; color: #5f7488; }
.dx-row.secret { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .06); }
.dx-row.secret .r-t { color: #ffc9c9; }
.dx-row.money { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .05); }
.dx-row.money .r-t { color: #ffe6a8; }

/* 空态 / 骨架 */
.dx-empty {
  padding: 40px 16px; text-align: center; border-radius: 11px;
  border: 1px dashed rgba(120, 160, 200, .2);
  color: #61728a; font-size: 11.5px; line-height: 1.9;
}
.dx-empty b { display: block; color: #9fb6cf; font-size: 12.5px; margin-bottom: 4px; }
.dx-skel { display: flex; flex-direction: column; gap: 8px; }
.dx-skel i {
  display: block; height: 42px; border-radius: 9px;
  background: linear-gradient(90deg, rgba(19, 26, 36, .9) 25%, rgba(26, 36, 49, .95) 37%, rgba(19, 26, 36, .9) 63%);
  background-size: 400% 100%; animation: dxsh 1.3s ease-in-out infinite;
}
@keyframes dxsh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 相册网格 */
.dx-grid {
  display: grid; gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.dx-cell {
  position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  background: #0d131b; border: 1px solid rgba(120, 160, 200, .12);
  display: flex; align-items: center; justify-content: center;
  color: #566a80; font-size: 10px; cursor: pointer;
}
.dx-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-cell:hover { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 12px rgba(34, 211, 238, .18); }
.dx-cell .c-nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px;
  font-size: 9px; color: #deeeff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 权限行 */
.dx-perm { display: flex; flex-direction: column; gap: 5px; }
.dx-prow {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border-radius: 8px; background: rgba(19, 26, 36, .7);
  border: 1px solid rgba(120, 160, 200, .09);
}
.dx-prow.on { border-color: rgba(34, 197, 94, .22); }
.dx-prow.off { border-color: rgba(248, 113, 113, .26); background: rgba(248, 113, 113, .04); }
.dx-prow .p-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.dx-prow.on .p-dot { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, .9); }
.dx-prow.off .p-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, .7); }
.dx-prow .p-n { flex: 1 1 auto; font-size: 11.5px; color: #c7d8e9; }
.dx-prow .p-k { font-size: 9.5px; color: #5c6e84; font-family: ui-monospace, Menlo, monospace; }
.dx-prow .p-go {
  height: 21px; padding: 0 8px; border-radius: 5px; cursor: pointer; font-size: 10px;
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3); color: #8fe9e0;
}
.dx-prow .p-go:hover { background: rgba(34, 211, 238, .2); }

/* 文件面包屑 */
.dx-crumb {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 10.5px; color: #67788e; flex: 0 0 auto;
}
.dx-crumb button {
  background: none; border: 0; padding: 0 2px; cursor: pointer;
  color: #6fd8ff; font-size: 10.5px;
}
.dx-crumb button:hover { color: #b6f1ff; text-decoration: underline; }
.dx-crumb i { font-style: normal; color: #33414f; }

/* 输入 */
.dx-in {
  height: 29px; border-radius: 7px; padding: 0 10px; font-size: 11.5px;
  background: rgba(10, 15, 21, .9); border: 1px solid rgba(120, 160, 200, .18);
  color: #d6e7f6; outline: none; min-width: 0;
}
.dx-in:focus { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 0 3px rgba(34, 211, 238, .08); }
.dx-in::placeholder { color: #4d5f74; }

/* 扫描线（状态页顶部） */
.dx-scan {
  height: 2px; border-radius: 2px; overflow: hidden; flex: 0 0 auto;
  background: rgba(34, 211, 238, .08);
}
.dx-scan i {
  display: block; width: 34%; height: 100%;
  background: linear-gradient(90deg, transparent, #34e7d4, transparent);
  animation: dxscan 2.4s linear infinite;
}
@keyframes dxscan { 0% { transform: translateX(-110%); } 100% { transform: translateX(400%); } }

/* 摄像/麦克风 */
.dx-av { display: flex; flex-direction: column; gap: 9px; }
.dx-avshot {
  min-height: 130px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, rgba(34, 211, 238, .06), #080c12 70%);
  border: 1px dashed rgba(120, 160, 200, .2);
  display: flex; align-items: center; justify-content: center;
  color: #55687e; font-size: 11px;
}
.dx-avshot img { width: 100%; max-height: 260px; object-fit: contain; }
.dx-avshot audio { width: 100%; }

/* 群发 */
.dx-ta {
  width: 100%; min-height: 62px; resize: vertical; border-radius: 8px; padding: 8px 10px;
  background: rgba(10, 15, 21, .9); border: 1px solid rgba(120, 160, 200, .18);
  color: #d6e7f6; font-size: 11.5px; outline: none; font-family: inherit;
}
.dx-ta:focus { border-color: rgba(34, 211, 238, .5); }

/* 滚动条统一 */
.dx-pane *::-webkit-scrollbar { width: 6px; height: 6px; }
.dx-pane *::-webkit-scrollbar-thumb { background: rgba(94, 234, 212, .16); border-radius: 3px; }

/* ==================================================================
   应用注入：左（全部应用） / 右上（已注入） / 右下（注入回传）
   ================================================================== */
.dx-pane.inj-mode { overflow: hidden; }

.inj-wrap {
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: 10px; flex: 1 1 auto; min-height: 0;
}
@media (max-width: 1240px) { .inj-wrap { grid-template-columns: 1fr; } }

.inj-left, .inj-right { display: flex; flex-direction: column; gap: 9px; min-height: 0; min-width: 0; }

/* ---- 搜索条 ---- */
.inj-bar { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.inj-bar .dx-in { flex: 1 1 auto; height: 30px; }
.inj-chips { display: flex; gap: 2px; padding: 2px; border-radius: 8px; flex: 0 0 auto;
  background: rgba(148, 163, 184, .07); border: 1px solid rgba(94, 234, 212, .12); }
.inj-chips button {
  height: 24px; padding: 0 10px; border-radius: 6px; cursor: pointer; font-size: 11px;
  color: #7f8ea3; background: transparent; border: 1px solid transparent;
}
.inj-chips button:hover { color: #cfe9ff; }
.inj-chips button.on {
  color: #a9f5ea; background: linear-gradient(180deg, rgba(34, 211, 238, .2), rgba(34, 211, 238, .07));
  border-color: rgba(34, 211, 238, .36);
}
.inj-count { font-size: 10.5px; color: #5f7488; flex: 0 0 auto; padding-left: 2px; }

/* ---- 应用列表 ---- */
.inj-apps {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 5px; padding-right: 3px;
}
.inj-apps::-webkit-scrollbar, .inj-scroll::-webkit-scrollbar { width: 6px; }
.inj-apps::-webkit-scrollbar-thumb, .inj-scroll::-webkit-scrollbar-thumb {
  background: rgba(94, 234, 212, .18); border-radius: 3px;
}

.inj-row {
  display: flex; align-items: center; gap: 9px; padding: 6px 9px;
  border-radius: 9px; background: rgba(19, 26, 36, .72);
  border: 1px solid rgba(120, 160, 200, .09);
  transition: border-color .15s, background .15s;
}
.inj-row:hover { border-color: rgba(34, 211, 238, .3); background: rgba(23, 32, 44, .92); }
.inj-row.hit { border-color: rgba(34, 211, 238, .34); background: rgba(34, 211, 238, .06); }
.inj-row.off { opacity: .55; }

.inj-ic {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #06181c;
  background: linear-gradient(135deg, hsl(190 60% 62%), hsl(210 60% 46%));
  overflow: hidden;
}
.inj-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }

.inj-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inj-meta b {
  font-size: 12px; color: #d9e8f6; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inj-meta b em {
  font-style: normal; font-size: 9px; padding: 1px 4px; border-radius: 4px; flex: 0 0 auto;
  color: #7f8ea3; background: rgba(148, 163, 184, .12); border: 1px solid rgba(148, 163, 184, .16);
}
.inj-meta b em.off { color: #ffb4b4; background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .26); }
.inj-meta > span {
  font-size: 10px; color: #64768c; font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.inj-ops { display: flex; gap: 3px; flex: 0 0 auto; }
.inj-ops button {
  height: 22px; padding: 0 7px; border-radius: 6px; cursor: pointer;
  font-size: 10.5px; color: #8fa3b8; white-space: nowrap;
  background: rgba(148, 163, 184, .08); border: 1px solid rgba(148, 163, 184, .14);
  transition: color .15s, background .15s, border-color .15s;
}
.inj-ops button:hover { color: #fff; background: rgba(34, 211, 238, .16); border-color: rgba(34, 211, 238, .34); }
.inj-ops button.on { color: #6ff2e0; background: rgba(34, 211, 238, .14); border-color: rgba(34, 211, 238, .34); }
.inj-ops button.danger:hover { color: #ffe0e0; background: rgba(248, 113, 113, .18); border-color: rgba(248, 113, 113, .4); }
.inj-ops button:disabled { opacity: .45; cursor: default; }

/* ---- 右侧两张卡 ---- */
.inj-card {
  display: flex; flex-direction: column; min-height: 0; flex: 1 1 50%;
  border-radius: 11px; overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 23, 32, .8), rgba(12, 17, 24, .8));
  border: 1px solid rgba(94, 234, 212, .13);
}
.inj-card:last-child { flex: 1 1 50%; }
.inj-ph {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px; flex: 0 0 auto;
  border-bottom: 1px solid rgba(94, 234, 212, .1);
  background: rgba(34, 211, 238, .04);
}
.inj-ph b { font-size: 11.5px; color: #cfe4f5; font-weight: 600; letter-spacing: .2px; }
.inj-ph i {
  font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 20px;
  color: #6ff2e0; background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .26);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.inj-ph .dx-btn { height: 22px; padding: 0 9px; font-size: 10.5px; }

.inj-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.inj-injrow { background: rgba(34, 211, 238, .05); }

/* ---- 回传数据 ---- */
.fd {
  border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px;
  background: rgba(19, 26, 36, .8); border: 1px solid rgba(120, 160, 200, .1);
}
.fd-h { display: flex; align-items: baseline; gap: 8px; }
.fd-h b { font-size: 11.5px; color: #cfe4f5; font-weight: 600; flex: 1 1 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-h span { font-size: 10px; color: #5f7488; flex: 0 0 auto;
  font-family: ui-monospace, Menlo, Consolas, monospace; }
.fd-b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fd-a {
  font-size: 11.5px; color: #9fe8ff; padding: 2px 7px; border-radius: 6px;
  background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .22);
  font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all;
}
.fd-p {
  font-size: 11.5px; color: #ffd9a0; padding: 2px 7px; border-radius: 6px;
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .24);
  font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all;
}
.fd-r { font-size: 10px; color: #61728a; }

/* ==================================================================
   注入器：左表单 / 右实时预览
   ================================================================== */
.ig-mask {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 7, 11, .72);
  backdrop-filter: blur(3px);
  animation: igIn .16s ease-out;
}
@keyframes igIn { from { opacity: 0 } to { opacity: 1 } }

.ig-box {
  width: min(880px, 94vw); max-height: 90vh; display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #10171f, #0b1118);
  border: 1px solid rgba(94, 234, 212, .2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.ig-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex: 0 0 auto;
  border-bottom: 1px solid rgba(94, 234, 212, .12);
  background: linear-gradient(180deg, rgba(34, 211, 238, .07), transparent);
}
.ig-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #06181c;
  background: linear-gradient(135deg, hsl(190 60% 62%), hsl(210 60% 46%));
}
.ig-ico img { width: 100%; height: 100%; object-fit: contain; }
.ig-tt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ig-tt b { font-size: 13px; color: #dff0fb; letter-spacing: .3px; }
.ig-tt span {
  font-size: 10.5px; color: #62748a; font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-tag {
  font-size: 10px; color: #6ff2e0; padding: 3px 9px; border-radius: 20px; flex: 0 0 auto;
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .24);
}
.ig-x {
  width: 26px; height: 26px; border-radius: 7px; cursor: pointer; flex: 0 0 auto;
  background: rgba(148, 163, 184, .1); border: 1px solid rgba(148, 163, 184, .16);
  color: #8fa3b8; font-size: 12px;
}
.ig-x:hover { color: #fff; background: rgba(248, 113, 113, .2); border-color: rgba(248, 113, 113, .4); }

.ig-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; min-height: 0; flex: 1 1 auto; }
@media (max-width: 760px) { .ig-body { grid-template-columns: 1fr; } .ig-prev { display: none; } }

.ig-form { padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.ig-form::-webkit-scrollbar { width: 6px; }
.ig-form::-webkit-scrollbar-thumb { background: rgba(94, 234, 212, .18); border-radius: 3px; }

.ig-f { display: flex; align-items: center; gap: 10px; }
.ig-f.col { flex-direction: column; align-items: stretch; gap: 6px; }
.ig-f > em {
  font-style: normal; font-size: 10.5px; color: #6b7d93; flex: 0 0 62px;
  letter-spacing: .2px;
}
.ig-f.col > em { flex: 0 0 auto; }

.ig-seg { display: flex; gap: 3px; padding: 3px; border-radius: 9px; flex: 1 1 auto;
  background: rgba(148, 163, 184, .06); border: 1px solid rgba(94, 234, 212, .1); }
.ig-seg button {
  flex: 1 1 0; height: 28px; border-radius: 7px; cursor: pointer; font-size: 11.5px;
  color: #8496ab; background: transparent; border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.ig-seg button:hover { color: #cfe9ff; }
.ig-seg button.on {
  color: #a9f5ea; font-weight: 600;
  background: linear-gradient(180deg, rgba(34, 211, 238, .2), rgba(34, 211, 238, .06));
  border-color: rgba(34, 211, 238, .34);
  box-shadow: 0 0 12px rgba(34, 211, 238, .18);
}

.ig-chips { display: flex; gap: 5px; flex-wrap: nowrap; flex: 1 1 auto; }
.ig-chips.wrap { flex-wrap: wrap; }
.ig-chips button {
  height: 25px; padding: 0 10px; border-radius: 20px; cursor: pointer; font-size: 10.8px;
  color: #8296ac; background: rgba(148, 163, 184, .07); border: 1px solid rgba(148, 163, 184, .13);
  transition: color .15s, background .15s, border-color .15s;
}
.ig-chips button:hover { color: #cfe9ff; border-color: rgba(34, 211, 238, .3); }
.ig-chips button.on {
  color: #07222a; font-weight: 600;
  background: linear-gradient(180deg, #6ff2e0, #2fd6c6);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(52, 231, 212, .3);
}

.ig-in {
  width: 100%; height: 32px; padding: 0 11px; border-radius: 8px;
  background: #0a1017; border: 1px solid rgba(94, 234, 212, .16);
  color: #dbe9f7; font-size: 12px; outline: none;
}
.ig-in:focus { border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 0 2px rgba(34, 211, 238, .1); }
.ig-ta { height: auto; padding: 8px 11px; line-height: 1.7; resize: none; font-family: inherit; }

/* ---- 右侧手机预览 ---- */
.ig-prev {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 14px; border-left: 1px solid rgba(94, 234, 212, .1);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(34, 211, 238, .06), transparent 70%),
    rgba(8, 12, 17, .6);
}
.ig-ph {
  position: relative; width: 232px; height: 452px; border-radius: 30px; overflow: hidden;
  border: 7px solid #1b232e; box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .05);
  background: #F2F4F7;
}
.ig-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 76px; height: 15px; border-radius: 0 0 12px 12px; background: #1b232e; z-index: 3;
}
.ig-screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 14px 13px 10px; gap: 6px; font-family: -apple-system, "Segoe UI", "PingFang SC", sans-serif;
}
.ig-ph.dark { background: #080C11; }
.ig-ph.dark .igp-app, .ig-ph.dark .igp-t { color: #E8F1FA; }
.ig-ph.dark .igp-s { color: #7E8FA4; }
.ig-ph.dark .igp-in { background: #0B131B; border-color: rgba(255, 255, 255, .08); color: #5D6E80; }
.ig-ph.dark .igp-dots i { border-color: #34424F; }
.ig-ph.dark .igp-pad span { background: #18222E; color: #E8F1FA; }
.ig-ph.dark .igp-pat i { border-color: #34424F; }
.ig-ph.dark .igp-btn { color: #04191C; }

.igp-top { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 12px; }
.igp-ic {
  width: 42px; height: 42px; border-radius: 11px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #06181c;
  background: linear-gradient(135deg, hsl(190 60% 62%), hsl(210 60% 46%));
}
.igp-ic img { width: 100%; height: 100%; object-fit: contain; }
.igp-app { font-size: 10.5px; color: #111827; font-weight: 600; }
.igp-t { font-size: 15px; font-weight: 700; color: #111827; text-align: center; margin-top: 6px; }
.igp-s { font-size: 9px; color: #8A94A6; text-align: center; line-height: 1.6; padding: 0 4px; }

.igp-body { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; flex: 1 1 auto; }
.igp-in {
  height: 37px; border-radius: 9px; background: #F5F7FA; border: 1px solid rgba(0, 0, 0, .05);
  display: flex; align-items: center; padding: 0 11px; font-size: 10px; color: #AEB8C6;
}
.igp-btn {
  height: 38px; border-radius: 9px; margin-top: 5px;
  background: #1677FF; color: #fff; font-size: 11.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.igp-dots { display: flex; justify-content: center; gap: 8px; margin: 6px 0 12px; }
.igp-dots i {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #C9D2DE; box-sizing: border-box;
}
.igp-dots i.on { background: #1677FF; border-color: #1677FF; }
.igp-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.igp-pad span {
  height: 34px; border-radius: 8px; background: #F7F9FC; border: 1px solid rgba(0, 0, 0, .05);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: #111827;
}
.igp-pad span.ghost { background: transparent; border-color: transparent; color: #AEB8C6; font-size: 11px; }
.igp-pat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 16px 24px; }
.igp-pat i {
  width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #C9D2DE;
  justify-self: center; box-sizing: border-box;
}
.igp-hint { text-align: center; font-size: 8.5px; color: #8A94A6; }
.igp-foot { font-size: 8px; color: #AEB8C6; text-align: center; padding: 4px 0 2px; }
.ig-cap { font-size: 10px; color: #4d5f74; letter-spacing: .3px; }

.ig-foot {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; flex: 0 0 auto;
  border-top: 1px solid rgba(94, 234, 212, .12);
  background: rgba(8, 12, 17, .5);
}
.ig-tip { flex: 1 1 auto; font-size: 10.5px; color: #6b7d93; }
.ig-tip.bad { color: #ff9b9b; }
.ig-btn {
  height: 30px; padding: 0 16px; border-radius: 8px; cursor: pointer; font-size: 11.5px;
  color: #b9c9db; background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(148, 163, 184, .18);
}
.ig-btn:hover { color: #fff; background: rgba(148, 163, 184, .18); }
.ig-btn.pri {
  color: #06222a; font-weight: 600; border-color: transparent;
  background: linear-gradient(180deg, #7bf5e5, #2fd6c6);
  box-shadow: 0 6px 18px rgba(47, 214, 198, .22);
}
.ig-btn.pri:hover { filter: brightness(1.06); }
.ig-btn:disabled { opacity: .55; cursor: default; }

.ig-stat { font-size: 11px; color: #7f93a9; letter-spacing: .2px; }

/* ---- 注入器：7 种形态 / 新预览元素 ---- */
.ig-seg.grid7 {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px; padding: 4px;
}
.ig-seg.grid7 button { height: 30px; font-size: 11px; padding: 0 2px; }

.igp-amt { font-size: 22px; font-weight: 700; color: #111827; text-align: center; margin: 2px 0 3px; }
.ig-ph.dark .igp-amt { color: #E8F1FA; }
.igp-to { font-size: 8.5px; color: #8A94A6; text-align: center; margin-bottom: 6px; }
.igp-row { display: flex; gap: 7px; }
.igp-row .igp-in { flex: 1 1 0; }
.igp-sent { font-size: 8.5px; color: #8A94A6; text-align: center; margin-bottom: 4px; }
.igp-cells { display: flex; gap: 5px; justify-content: center; }
.igp-cells span {
  width: 28px; height: 38px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .09);
  background: #F5F7FA; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #111827;
}
.igp-cells span.cur { border-color: #1677FF; box-shadow: 0 0 0 2px rgba(22, 119, 255, .12); }
.ig-ph.dark .igp-cells span { background: #0B131B; border-color: rgba(255, 255, 255, .09); color: #E8F1FA; }
.ig-ph.dark .igp-cells span.cur { border-color: #34E7D4; }

/* ---------------- AI 分析 ---------------- */
.ai-engine {
  font-size: 10.5px; color: #6b7d93; padding: 7px 10px; border-radius: 8px; flex: 0 0 auto;
  background: rgba(148, 163, 184, .06); border: 1px solid rgba(94, 234, 212, .12);
}
.ai-engine.warn { color: #f3c76b; border-color: rgba(251, 191, 36, .24); background: rgba(251, 191, 36, .06); }

.ai-chat {
  flex: 1 1 auto; min-height: 140px; overflow-y: auto; display: flex; flex-direction: column;
  gap: 8px; padding: 10px; border-radius: 10px;
  background: #0c1219; border: 1px solid rgba(94, 234, 212, .1);
}
.ai-chat::-webkit-scrollbar { width: 6px; }
.ai-chat::-webkit-scrollbar-thumb { background: rgba(94, 234, 212, .18); border-radius: 3px; }

.ai-msg {
  max-width: 92%; padding: 9px 11px; border-radius: 10px; font-size: 12px; line-height: 1.75;
  border: 1px solid transparent; word-break: break-word;
}
.ai-msg.me {
  align-self: flex-end; color: #d7ecff;
  background: linear-gradient(180deg, rgba(34, 211, 238, .16), rgba(34, 211, 238, .07));
  border-color: rgba(34, 211, 238, .28);
}
.ai-msg.sys {
  align-self: flex-start; color: #9fb3c8; background: rgba(148, 163, 184, .07);
  border-color: rgba(148, 163, 184, .12);
}
.ai-say { color: #cfe4f5; margin-bottom: 7px; }
.ai-badge {
  display: inline-block; margin-left: 6px; font-size: 9.5px; padding: 1px 6px; border-radius: 20px;
  color: #6ff2e0; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .24);
  font-family: ui-monospace, Menlo, monospace;
}
.ai-acts { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ai-act { display: flex; align-items: center; gap: 7px; }
.ai-act i {
  font-style: normal; width: 16px; height: 16px; border-radius: 5px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 9px;
  color: #06222a; background: rgba(52, 231, 212, .8);
}
.ai-act code {
  font-size: 11px; color: #a9e8ff; font-family: ui-monospace, Menlo, monospace;
  background: rgba(56, 189, 248, .08); padding: 2px 7px; border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, .18); word-break: break-all;
}
.ai-run { display: flex; gap: 6px; }
.ai-run .dx-btn { height: 26px; padding: 0 11px; font-size: 11px; }

.ai-log { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; }
.ai-line { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #7f93a9; }
.ai-line i { font-style: normal; width: 12px; flex: 0 0 auto; text-align: center; }
.ai-line.ok i { color: #5ce09f; }
.ai-line.bad i { color: #ff9b9b; }
.ai-line code { font-family: ui-monospace, Menlo, monospace; color: #8fb4c9; }
.ai-line span { color: #5f7488; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ai-bar { display: flex; gap: 7px; flex: 0 0 auto; }
.ai-bar .dx-in { flex: 1 1 auto; height: 32px; }
.ai-quick { display: flex; gap: 5px; flex-wrap: wrap; flex: 0 0 auto; }
.ai-quick button {
  height: 24px; padding: 0 10px; border-radius: 20px; cursor: pointer; font-size: 10.5px;
  color: #8296ac; background: rgba(148, 163, 184, .07); border: 1px solid rgba(148, 163, 184, .13);
}
.ai-quick button:hover { color: #fff; border-color: rgba(34, 211, 238, .34); }
.ai-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px;
  background: #34e7d4; animation: aiPulse 1s infinite ease-in-out;
}
@keyframes aiPulse { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }

/* ---- 批量选择 ---- */
.inj-pick {
  width: 15px; height: 15px; border-radius: 4px; flex: 0 0 auto; cursor: pointer;
  border: 1.4px solid rgba(148, 163, 184, .3); background: transparent;
  transition: background .15s, border-color .15s;
}
.inj-pick:hover { border-color: rgba(34, 211, 238, .6); }
.inj-pick.on {
  background: linear-gradient(180deg, #6ff2e0, #2fd6c6);
  border-color: transparent;
  box-shadow: 0 0 8px rgba(52, 231, 212, .45);
}
.inj-row.picked { border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); }

.inj-bulk {
  display: none; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 6px 10px; border-radius: 9px;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .26);
}
.inj-bulk.on { display: flex; }
.inj-bulk span { font-size: 10.5px; color: #8fb4c9; flex: 1 1 auto; }
.inj-bulk b { color: #6ff2e0; font-family: ui-monospace, Menlo, monospace; }
.inj-bulk button {
  height: 24px; padding: 0 11px; border-radius: 7px; cursor: pointer; font-size: 10.5px;
  color: #06222a; font-weight: 600; border: 0;
  background: linear-gradient(180deg, #7bf5e5, #2fd6c6);
}
.inj-bulk button:disabled { opacity: .4; cursor: default; }
.inj-bulk button:last-child {
  color: #9fb3c8; background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .18); font-weight: 400;
}
