/* 导入设备 — 替换账号设置「推广计划」卡片（必须盖过 qy-pages 里的 display:flex !important） */
.fw-profile-share-v3.qy-subdev-host .fw-profile-qr-v3,
.fw-profile-share-v3.qy-subdev-host .fw-profile-share-v3__link,
.fw-profile-share-v3.qy-subdev-host .fw-profile-social-v3,
.fw-profile-share-v3.qy-subdev-host .fw-profile-share-v3__stats {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  pointer-events: none !important;
}

.fw-profile-share-v3.qy-subdev-host {
  display: block !important;
}
.fw-profile-share-v3.qy-subdev-host .fw-profile-share-v3__main {
  width: 100% !important;
  max-width: none !important;
}
.fw-profile-share-v3.qy-subdev-host .fw-profile-share-v3__desc {
  margin-bottom: 12px !important;
}

.qy-subdev-mount { margin-top: 2px; }

.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: 12px;
  margin-bottom: 8px;
}
.qy-subdev-meta {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.55;
  flex: 1;
  min-width: 200px;
}
[data-theme="slate"] .qy-subdev-meta,
html[data-theme="slate"] .qy-subdev-meta {
  color: #94a3b8;
}
.qy-subdev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.qy-subdev-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: #fff !important;
  color: #0f172a !important;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.qy-subdev-btn:hover { filter: brightness(0.96); }
.qy-subdev-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.qy-subdev-btn.danger {
  color: #dc2626 !important;
  background: #fff !important;
}

.qy-subdev-note {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 10px;
  line-height: 1.55;
}

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

.qy-subdev-reset-hint {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  color: #fbbf24;
  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: 8px;
  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-toolbar { flex-direction: column; }
  .qy-subdev-actions { width: 100%; }
  .qy-subdev-actions .qy-subdev-btn { flex: 1; text-align: center; }
}
