/* The Creators tab's "On TikTok" view (views/campaign/creators-tiktok*.js). Every rule is
   .ctt-*; buttons are the app's .btn. Drawn on Deploy Previews only, with sample data, as
   in the mockup's "Creators tab, with TikTok columns" board (canvas v31). */

.ctt-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.ctt-seg-b { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; }
.ctt-seg-b.is-on { background: var(--border); color: var(--text); }
.ctt-host { border: 0; border-radius: 0; overflow: visible; }

.ctt { display: flex; flex-direction: column; gap: 14px; }
.ctt-banner { padding: 8px 12px; font-size: 12px; color: var(--muted); border: 1px dashed var(--warn); border-radius: 8px; }
.ctt-banner strong { color: var(--text); }
.ctt-tag { display: inline-block; padding: 0 6px; border: 1px dashed var(--warn); border-radius: 4px; color: var(--warn); font-size: 10px; font-weight: 600;
  letter-spacing: .02em; line-height: 1.6; vertical-align: middle; white-space: nowrap; text-transform: none; }
.ctt-i { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ctt-muted { font-size: 12px; color: var(--muted); }
.ctt-soft { color: var(--muted); }

/* The roster, with a column group for what TikTok reports. */
.ctt-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.ctt-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13.5px; }
.ctt-table th, .ctt-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.ctt-table thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
.ctt-table thead tr:first-child > * { padding-bottom: 6px; border-bottom: 0; }
.ctt-table th.ctt-group { border-bottom: 2px solid var(--accent); color: var(--accent); }
.ctt-table tbody tr:last-child > * { border-bottom: 0; }
.ctt-table .ctt-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctt-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctt-name { min-width: 0; }   /* the name, handle and ↗ stay on one line, as in the pool table */
.ctt-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--warn); }
.ctt-status { padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.ctt-stack { display: inline-flex; flex-direction: column; align-items: flex-end; }
.ctt-stack small { font-size: 12px; color: var(--muted); }
.ctt-sample { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ctt-sample::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ctt-sample.is-good { color: var(--good); }
.ctt-sample.is-blue { color: var(--accent); }
.ctt-sample.is-warn { color: var(--warn); }
.ctt-empty { padding: 24px 14px; text-align: center; color: var(--muted); }

/* Selling, not on the roster. */
.ctt-outside { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ctt-head { display: flex; align-items: center; gap: 10px; }
.ctt-head h3 { margin: 0; font-size: 15px; }
.ctt-count { padding: 0 8px; border-radius: 999px; background: var(--border); font-size: 12px; font-weight: 600; line-height: 1.7; }
.ctt-outlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ctt-out { display: grid; grid-template-columns: minmax(0, 1fr) 120px 90px 90px 150px; align-items: center; gap: 8px 16px; padding: 10px 0;
  border-top: 1px solid var(--border); font-size: 13.5px; }
.ctt-out-who { display: flex; flex-direction: column; min-width: 0; }
.ctt-out-who small { font-size: 12px; color: var(--muted); }
.ctt-num { font-variant-numeric: tabular-nums; }
.ctt-out-act { display: flex; justify-content: flex-end; }
.ctt-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--good); }

@media (max-width: 860px) {
  .ctt-out { grid-template-columns: minmax(0, 1fr) auto; }
  .ctt-out > .ctt-soft { display: none; }
}
