/* 流量加人总览 · 隔离预览样式 */
#yq-preview-banner {
  position: fixed; left: 12px; bottom: 12px; z-index: 9998;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid #fca5a5; border-radius: 999px;
  background: #fff7f7; color: #991b1b; font-size: 12px; line-height: 1.2;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
}
#yq-preview-banner b { font-weight: 800; letter-spacing: .04em; }
#yq-preview-banner span { color: #b91c1c; opacity: .85; }

#yq-overview-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9997;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border: 1px solid #0f766e; border-radius: 999px;
  background: #0d7c73; color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(13, 124, 115, .28); cursor: pointer;
}
#yq-overview-fab:hover { background: #0b6b63; }
.yq-fab-dot { width: 7px; height: 7px; border-radius: 50%; background: #fef08a; display: inline-block; }

.yq-overview-entry {
  cursor: pointer; text-decoration: underline; text-decoration-color: #0d7c73;
  text-underline-offset: 3px;
}
.yq-entry-arrow { color: #0d7c73; font-weight: 700; white-space: nowrap; }
.yq-top-summary { cursor: pointer; display: inline-flex; flex-direction: column; gap: 2px; }
.yq-top-main { color: #b45309; font-weight: 800; }
.yq-top-sub { color: #64748b; font-size: 11px; font-weight: 500; }
.yq-top-clickable { text-decoration: underline; text-decoration-color: #f59e0b; text-underline-offset: 3px; }

.yq-zero-card { border-color: #cbd5e1 !important; background: #fbfcfd !important; }
.yq-zero-note {
  margin: 8px 0 4px; padding: 9px 11px; border: 1px solid #e2e8f0;
  border-radius: 8px; background: #f8fafc; color: #475569; font-size: 12px;
  line-height: 1.65;
}
.yq-zero-note b { display: block; color: #0f172a; font-size: 12.5px; margin-bottom: 2px; }
.yq-zero-note span { display: block; }

.yq-status { display: inline-block; font-weight: 800; font-size: 12px; }
.yq-status-noaccount { color: #64748b; }
.yq-status-unassigned { color: #b45309; }
.yq-status-missing { color: #b91c1c; }
.yq-status-sub { display: block; margin-top: 2px; color: #94a3b8; font-size: 10.5px; line-height: 1.35; font-weight: 400; }

body.yq-drawer-open { overflow: hidden; }
#yq-overview-backdrop {
  position: fixed; inset: 0; z-index: 10020;
  background: rgba(15, 23, 42, .50); backdrop-filter: blur(2px);
  display: flex; justify-content: flex-end;
}
.yq-drawer {
  width: min(1060px, 96vw); height: 100vh; overflow: auto;
  background: #f6fafb; color: #123f4d;
  box-shadow: -18px 0 48px rgba(15, 23, 42, .22);
  animation: yq-slide-in .22s ease-out;
}
@keyframes yq-slide-in { from { transform: translateX(24px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.yq-drawer-head {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between;
  gap: 16px; padding: 18px 22px 15px; border-bottom: 1px solid #dbe7ea;
  background: rgba(246, 250, 251, .96); backdrop-filter: blur(8px);
}
.yq-preview-tag {
  display: inline-block; margin-bottom: 6px; padding: 3px 8px;
  border-radius: 999px; background: #fff1f2; color: #be123c;
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
}
.yq-drawer-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.yq-drawer-head p { margin: 5px 0 0; color: #607680; font-size: 12px; }
.yq-close {
  flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid #cbd5e1;
  border-radius: 50%; background: #fff; color: #334155; font-size: 24px;
  line-height: 1; cursor: pointer;
}
.yq-close:hover { background: #f1f5f9; }
.yq-drawer-body { padding: 18px 22px 36px; }
.yq-hero { padding: 18px 18px 15px; border: 1px solid #b7d8d3; border-radius: 14px; background: linear-gradient(135deg, #ffffff, #f0fbf8 62%, #fff8e8); }
.yq-hero-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.yq-hero-total span { color: #0d7c73; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.yq-hero-total b { color: #083f47; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.yq-hero-total small { color: #607680; font-size: 14px; }
.yq-hero-split { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.yq-hero-split > div { min-width: 132px; padding: 8px 11px; border-radius: 9px; background: rgba(255, 255, 255, .72); border: 1px solid #e2eeea; }
.yq-hero-split span { display: block; color: #607680; font-size: 11px; margin-bottom: 2px; }
.yq-hero-split b { font-size: 21px; color: #0f172a; }
.yq-hero-sentence { margin: 12px 0 0; color: #334155; font-size: 13px; line-height: 1.75; }
.yq-total-note { display: block; margin-top: 4px; color: #b45309; font-size: 11.5px; }
.yq-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 780px) { .yq-two-col { grid-template-columns: 1fr; } .yq-drawer { width: 100vw; } .yq-drawer-body { padding: 14px 12px 30px; } }
.yq-section { margin-top: 12px; padding: 15px 16px; border: 1px solid #dbe7ea; border-radius: 12px; background: #fff; }
.yq-section h3 { margin: 0 0 11px; font-size: 15px; color: #0f3f47; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.yq-section h3 em { font-style: normal; color: #82959b; font-size: 11px; font-weight: 500; }
.yq-section h3 em:before { content: "· "; }
.yq-platform-row { display: grid; grid-template-columns: 78px 1fr 86px; gap: 8px; align-items: center; margin: 8px 0; }
.yq-platform-name { display: flex; align-items: center; gap: 6px; color: #334155; font-size: 12px; font-weight: 700; }
.yq-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.yq-dot-douyin { background: #111827; }
.yq-dot-channels { background: #f59e0b; }
.yq-dot-xiaohongshu { background: #ef4444; }
.yq-platform-bar { height: 9px; border-radius: 999px; background: #edf3f4; overflow: hidden; }
.yq-platform-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0d7c73, #56b4a9); }
.yq-platform-value { text-align: right; font-size: 12px; color: #0f172a; }
.yq-platform-value b { font-size: 16px; }
.yq-inline-note { margin: 10px 0 0; color: #64748b; font-size: 11.5px; line-height: 1.65; }
.yq-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yq-status-grid > div { padding: 10px 11px; border: 1px solid #e5edf0; border-radius: 9px; background: #fbfdfd; }
.yq-status-grid b { display: block; font-size: 24px; line-height: 1.1; }
.yq-status-grid span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; line-height: 1.45; }
.yq-warn { color: #b45309; }
.yq-muted { color: #64748b; }
.yq-danger { color: #b91c1c; }
.yq-table-wrap { overflow-x: auto; border: 1px solid #e2edf0; border-radius: 9px; }
.yq-summary-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 12px; }
.yq-summary-table th, .yq-summary-table td { padding: 9px 8px; border-bottom: 1px solid #edf3f5; text-align: left; vertical-align: top; }
.yq-summary-table th { background: #f8fbfb; color: #607680; font-weight: 700; font-size: 11px; white-space: nowrap; }
.yq-summary-table td b { color: #0f172a; font-size: 13px; }
.yq-summary-table small { color: #94a3b8; }
.yq-summary-table tr:last-child td { border-bottom: 0; }
.yq-pill { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.yq-pill-filled { background: #ecfdf5; color: #047857; }
.yq-pill-unassigned { background: #fffbeb; color: #b45309; }
.yq-pill-no_account, .yq-pill-partial_noaccount { background: #f1f5f9; color: #475569; }
.yq-pill-zero { background: #f8fafc; color: #94a3b8; }
.yq-pill-missing { background: #fef2f2; color: #b91c1c; }
.yq-pill-pending, .yq-pill-unknown { background: #f8fafc; color: #64748b; }
.yq-sale-details { margin-top: 4px; }
.yq-sale-details summary { color: #0d7c73; font-size: 11px; cursor: pointer; }
.yq-account-wrap { margin-top: 7px; overflow-x: auto; }
.yq-account-table { border-collapse: collapse; min-width: 440px; font-size: 11px; }
.yq-account-table th, .yq-account-table td { padding: 6px 7px; border-bottom: 1px solid #edf3f5; text-align: left; }
.yq-account-table th { background: #f8fbfb; color: #607680; }
.yq-status-list { margin: 0; padding-left: 16px; }
.yq-status-list li { margin: 7px 0; color: #64748b; font-size: 12px; line-height: 1.55; }
.yq-status-list b { color: #0f172a; }
.yq-status-list span { display: block; }
.yq-empty { color: #94a3b8; font-size: 12px; margin: 4px 0 0; }
.yq-empty-note { margin: 0; color: #64748b; font-size: 12px; line-height: 1.7; }
.yq-empty-note b { color: #0f172a; }
.yq-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .yq-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.yq-entry-chip { padding: 9px 10px; border: 1px solid #e5edf0; border-radius: 9px; background: #fbfdfd; }
.yq-entry-chip span { display: block; color: #64748b; font-size: 10.5px; margin-bottom: 2px; }
.yq-entry-chip b { font-size: 18px; color: #0f172a; }
.yq-entry-chip small { color: #94a3b8; font-size: 10px; }
.yq-method p { margin: 6px 0; color: #52656b; font-size: 12px; line-height: 1.75; }
.yq-foot-note { margin: 14px 2px 0; color: #94a3b8; font-size: 11px; }
