/* 导入设备 — 替换账号设置「推广计划」卡片 */
.fw-profile-share-v3.qy-subdev-host .fw-profile-qr-v3 { display: none !important; }
.fw-profile-share-v3.qy-subdev-host .fw-profile-share-v3__main { width: 100%; max-width: none; }
.qy-subdev-mount { margin-top: 4px; }

.qy-subdev-warn {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}
[data-theme="slate"] .qy-subdev-warn,
html[data-theme="slate"] .qy-subdev-warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.4);
}

.qy-subdev-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.qy-subdev-meta {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  flex: 1;
  min-width: 180px;
}
.qy-subdev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qy-subdev-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.qy-subdev-btn:hover { filter: brightness(0.98); }
.qy-subdev-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.qy-subdev-btn.danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.qy-subdev-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.qy-subdev-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.qy-subdev-item:first-child { border-top: 0; }
.qy-subdev-info { min-width: 0; flex: 1; }
.qy-subdev-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
[data-theme="slate"] .qy-subdev-name,
html[data-theme="slate"] .qy-subdev-name { color: #f1f5f9; }
.qy-subdev-time {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}
.qy-subdev-ua {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  word-break: break-all;
  line-height: 1.4;
}
.qy-subdev-empty {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0 4px;
  line-height: 1.55;
}

.qy-subdev-reset-hint {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  color: #b45309;
  line-height: 1.5;
}

#qy-subdev-toast {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 99999;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
#qy-subdev-toast.ok { background: #059669; }
#qy-subdev-toast.err { background: #dc2626; }

.qy-subdev-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .qy-subdev-item { flex-direction: column; align-items: stretch; }
  .qy-subdev-item-actions { flex-direction: row; justify-content: flex-end; }
  .qy-subdev-btn.danger { align-self: auto; }
}
