/* Production KOL / UGC Workspace Split & IG/TikTok Progressive Workflow Styles */
.biz-switch {
  margin: 10px 12px 6px;
  padding: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
}
.biz-switch-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: .02em;
}
.biz-switch-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.biz-switch-btns button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .04);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.biz-switch-btns button small {
  font-size: 10px;
  font-weight: 400;
  color: #94a3b8;
  margin-top: 2px;
}
.biz-switch-btns button.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #60a5fa;
}
.biz-switch-btns button.active small {
  color: #dbeafe;
}

.ops-progressive { display: flex; flex-direction: column; gap: 10px; }
.ops-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ops-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }

.ugc-offer-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 10px; font-size: 13px; }
.ugc-offer-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-size: 12px; font-weight: 500;
}
.ugc-offer-pill.sm { font-size: 11px; padding: 1px 7px; }
.ugc-summary-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 10px 14px; margin: 12px 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px;
}
.ugc-summary-bar .funnel-note { margin-left: auto; color: #64748b; font-size: 12px; }

.ugc-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 10px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff;
  color: #334155; font-size: 12px; cursor: pointer;
}
.chip.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.bulk-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; font-size: 13px;
}

.src-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.src-tag.src-script_match { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.src-tag.src-post_engager { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.src-tag.src-following_list { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.tier-badge { display: inline-block; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.tier-badge.tier-S { background: #dcfce7; color: #166534; }
.tier-badge.tier-A { background: #e0f2fe; color: #075985; }
.tier-badge.tier-B { background: #fef3c7; color: #92400e; }
.tier-badge.tier-not_recommended { background: #f1f5f9; color: #64748b; }
.id-pill, .dm-pill, .good-pill, .plat-pill { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.id-pill.good, .good-pill, .dm-pill.good { background: #dcfce7; color: #166534; }
.id-pill.warn, .dm-pill.warn { background: #fef3c7; color: #92400e; }
.id-pill.bad { background: #fee2e2; color: #991b1b; }
.dm-pill.draft { background: #e0f2fe; color: #075985; }
.dm-pill.queued { background: #ede9fe; color: #5b21b6; }
.dm-pill.sent { background: #f1f5f9; color: #334155; }
.plat-pill.ig { background: #fce7f3; color: #9d174d; }
.plat-pill.tk { background: #e2e8f0; color: #0f172a; }
.supp-line { font-size: 12px; margin-top: 3px; }
.supp-line.warn { color: #b45309; }
.supp-line.info { color: #0369a1; }
.supp-line.good { color: #15803d; }

.ig-dm-inline td { background: #f8fafc !important; border-top: 0 !important; padding-top: 2px !important; }
.dm-inline-box { padding: 10px 12px; border: 1px solid #cbd5e1; border-left: 3px solid #2563eb; border-radius: 6px; background: #fff; }
.dm-inline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.dm-inline-actions { margin-left: auto; display: flex; gap: 6px; }
.dm-inline-body { font-size: 13px; color: #1e293b; line-height: 1.5; white-space: pre-wrap; }

.link-btn { background: none; border: 0; padding: 0; color: #2563eb; cursor: pointer; font-size: 12px; text-decoration: underline; }
button.sm { padding: 3px 8px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
.ugc-cand-table { width: 100%; font-size: 12.5px; }
.ugc-cand-table th, .ugc-cand-table td { padding: 8px 6px; }
.ugc-cand-table .act-col, .mini-table .act-col { white-space: normal; display: flex; flex-wrap: wrap; gap: 4px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th, .mini-table td { padding: 8px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.ig-fieldset { border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px 14px; margin: 12px 0; background: #f8fafc; }
.ugc-offer-fieldset { border-color: #93c5fd; background: #eff6ff; }
.ig-fieldset legend { font-weight: 700; font-size: 13px; padding: 0 6px; color: #0f172a; }
.row-inline { display: flex; gap: 8px; align-items: center; }
.row-inline input { flex: 1; }
.script-check-card { padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px; margin-top: 6px; }
.script-check-card.ok { border-left: 3px solid #16a34a; background: #f0fdf4; }
.script-check-card.miss { border-left: 3px solid #cbd5e1; background: #f8fafc; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 8px; }
dialog#drawer { width: min(860px, 94vw); max-width: 94vw; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.mt-3 { margin-top: 3px; }
.mt-4 { margin-top: 4px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.my-10 { margin: 10px 0; }
.mb-10 { margin-bottom: 10px; }
.col-check { width: 28px; }
.col-dm-body { max-width: 300px; font-size: 12px; }
.ugc-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 2px;
  font-size: 13px;
  color: #475569;
}
.ugc-pager .actions {
  display: flex;
  gap: 6px;
}
