/* Shared TikTok Shop prototype chrome (Roster UI kit + page-local) */
.scenarios { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; padding: 8px 16px; background: #111827; color: #fff; font-size: 13px; }
.scenarios b { margin-right: 4px; opacity: .7; font-weight: 500; }
.scenarios button { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 6px;
  padding: 5px 10px; cursor: pointer; font: inherit; }
.scenarios button.on { background: var(--pink-6); }
.scenarios .sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); margin: 0 4px; }

.menu a .nav-fa { width: 16px; text-align: center; font-size: 15px; color: var(--text-tertiary); flex: 0 0 auto; }
.menu li.active a .nav-fa, .menu a:hover .nav-fa { color: inherit; }

.page-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--border); background: #fff; }
.page-tabs .ptab { appearance: none; border: 0; background: transparent; cursor: pointer; text-decoration: none;
  padding: 12px 12px 10px; font: inherit; font-weight: 600; font-size: 14px; color: var(--text-tertiary);
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; }
.page-tabs .ptab:hover { color: var(--text); }
.page-tabs .ptab.active { color: var(--text); border-bottom-color: var(--pink-6); }
.page-tabs .ptab .cnt { color: var(--text-quaternary); font-weight: 600; margin-left: 5px; }

.conn-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border);
  background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--text-tertiary); }
.conn-pill strong { color: var(--text); font-weight: 600; }
.conn-pill.warn { background: #fffbe6; border-color: #ffe58f; color: #d48806; }

.discover-layout { display: flex; min-height: calc(100vh - 180px); }
.filter-col { width: 280px; flex: 0 0 280px; border-right: 1px solid var(--border); padding: 16px 16px 32px; background: #fff; }
.filter-col h3 { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-tertiary); margin: 16px 0 8px; }
.filter-col h3:first-child { margin-top: 0; }
.results-col { flex: 1; padding: 16px 24px 32px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.creator-card { border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: #fff; cursor: pointer; text-align: left; width: 100%; font: inherit; position: relative; }
.creator-card:hover { border-color: rgba(0,0,0,.25); }
.creator-card .top { display: flex; gap: 12px; align-items: flex-start; }
.creator-card .who { min-width: 0; }
.creator-card .who .name { font-weight: 600; font-size: 14px; }
.creator-card .who .handle { color: var(--text-tertiary); font-size: 13px; }
.creator-card .metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; text-align: center; }
.creator-card .metrics .v { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.creator-card .metrics .l { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; }
.creator-card .cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.creator-card .sel { position: absolute; top: 12px; right: 12px; }

.empty-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.empty-wrap .empty-state { max-width: 440px; }

.bulk-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: #1f1f1f; color: #fff; border-radius: 8px; margin-top: 16px; }
.bulk-bar[hidden] { display: none !important; }

.collab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.collab-card { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 16px; text-align: left; font: inherit; width: 100%; cursor: pointer; }
.collab-card:hover { border-color: rgba(0,0,0,.25); }
.collab-card .title { font-weight: 600; font-size: 16px; }
.collab-card .meta { color: var(--text-tertiary); font-size: 13px; margin-top: 4px; }
.collab-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.vid { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.vid .thumb { height: 200px; background: linear-gradient(180deg, #f5f5f5, #e8e8e8); display: flex; align-items: center; justify-content: center; color: var(--text-quaternary); }
.vid .meta { padding: 8px 10px; font-size: 12px; }
.vid .meta .t { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid .meta .s { color: var(--text-tertiary); margin-top: 4px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: #fff; }
.kpi .l { font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; }
.kpi .v { font-size: 24px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .h { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

tr.selected td { background: #e6f4ff; }
#drawer-overlay[hidden], #modal-overlay[hidden], #auto-overlay[hidden] { display: none !important; }
.modal-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; }
.modal { position: fixed; z-index: 81; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.modal-b { padding: 16px 20px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }

.toast { position: fixed; bottom: 24px; right: 24px; background: #1f1f1f; color: #fff; padding: 12px 16px;
  border-radius: 8px; z-index: 90; font-size: 13px; display: none; }
.toast.show { display: block; }

.check { width: 16px; height: 16px; }

/* Dual-network chips — Shop chip clones meta-chip geometry */
.shop-chip .fa-tiktok { color: #111; font-size: 14px; }
.header-chips { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.net-marks { display: inline-flex; align-items: center; gap: 6px; }
.net-mark { width: 16px; font-size: 16px; line-height: 1; color: var(--text); }
.net-mark.net-ig { color: #E4405F; }
.net-mark.net-tt { color: #111; }

/* Discover creator cards — 40px kit avatars */
.creator-card .avatar { width: 40px; height: 40px; font-size: 13px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }

/* Creator profile drawer: avatar + name/handle row, badges below */
.drawer-ident { padding: 0 0 12px; }
.drawer-ident-row { display: flex; align-items: center; gap: 12px; }
.drawer-ident-who { min-width: 0; }
.drawer-ident-who .dc-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.drawer-ident-who .dc-email { color: var(--text-tertiary); font-size: 13px; margin-top: 2px; }
.drawer-ident-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.drawer-avatar-lg {
  width: 64px; height: 64px; font-size: 22px; font-weight: 600;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
}
.metric-strip {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 12px 0;
}
.metric-strip .m { padding: 10px 8px; text-align: center; border-right: 1px solid var(--border); }
.metric-strip .m:last-child { border-right: 0; }
.metric-strip .v { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.metric-strip .l { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.stat-kicker { font-size: 12px; font-weight: 600; color: var(--text-tertiary); letter-spacing: .04em; text-transform: uppercase; margin: 4px 0 8px; }
.stat-kicker a { font-weight: 600; text-transform: none; letter-spacing: 0; float: right; }

.crumb { font-size: 13px; color: var(--text-tertiary); font-weight: 400; margin: 0 0 4px; }
.crumb a { color: var(--text-tertiary); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.page-header h1 .crumb, .page-header .crumb + h1 { }

.emv-cell .sub { display: block; font-size: 11px; color: var(--text-tertiary); font-weight: 400; }

.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.segmented button { appearance: none; border: 0; background: #fff; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-tertiary); border-right: 1px solid var(--border); }
.segmented button:last-child { border-right: 0; }
.segmented button.on, .segmented button.active { background: var(--fill-tertiary); color: var(--text); font-weight: 600; }

.alert-inline { margin-bottom: 16px; }

#filters-overlay[hidden], #partner-overlay[hidden], #drawer-overlay[hidden], #modal-overlay[hidden],
#request-overlay[hidden], #post-overlay[hidden], #shop-overlay[hidden], #auto-overlay[hidden] { display: none !important; }

.hub-empty-shop { max-width: 440px; margin: 24px auto; }

.help { color: var(--text-tertiary); font-size: 13px; line-height: 1.45; }
.cell-person { display: flex; gap: 10px; align-items: center; }
.table .avatar, .cell-person .avatar {
  width: 32px; height: 32px; font-size: 12px; flex: 0 0 auto;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.results-head .help { margin-top: 4px; }
tr.clickable { cursor: pointer; }
/* Invitation Autopilot — Discover */
#auto-overlay .drawer { width: 400px; }
#auto-overlay .drawer-foot { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
#auto-overlay .drawer-foot.between { justify-content: space-between; }
#btn-auto { display: inline-flex; align-items: center; gap: 8px; }
#btn-auto .tag { font-size: 11px; padding: 0 6px; height: 18px; line-height: 18px; }

#auto-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--fill-tertiary); font-size: 13px; cursor: pointer;
}
#auto-bar[hidden] { display: none !important; }
#auto-bar .auto-bar-copy { min-width: 0; color: var(--text); }
#auto-bar .auto-bar-copy strong { font-weight: 600; }

.auto-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; margin-bottom: 12px;
}
.auto-lead { color: var(--text-secondary); font-size: 13px; line-height: 1.45; margin: 0 0 16px; }
.auto-meta { font-size: 13px; color: var(--text-tertiary); margin: 4px 0 12px; line-height: 1.45; }
.auto-filter-summary {
  font-size: 13px; color: var(--text-secondary);
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--fill-tertiary); margin: 8px 0 16px;
}
.switch-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.switch-row .lab { min-width: 0; }
.switch-row .lab strong { display: block; font-size: 14px; }
.switch-row .lab .help { margin-top: 2px; }
.switch.locked { pointer-events: none; opacity: .55; }

.auto-kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0;
}
.auto-kpis .kpi { padding: 12px; margin: 0; }
.auto-kpis .v { font-size: 20px; }
.auto-kpis .v .pct { font-size: 12px; font-weight: 500; color: var(--text-tertiary); margin-left: 4px; }

.auto-activity { list-style: none; padding: 0; margin: 8px 0 16px; }
.auto-activity li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text);
}
.auto-activity li:last-child { border-bottom: 0; }
.auto-activity .muted { color: var(--text-tertiary); }


.drawer-section .kv { justify-content: space-between; }
#btn-auto { white-space: nowrap; }
