/* 크리에이터 → 시딩 관리 (public/js/pages/creators.js) and the 시딩 editors in the creator window (public/js/creator.js).
 * PC first: one row per person — photo · recent posts · 진행/상품/연락일/메모 · 게시 확인 · DM 문구. */
.mt-4 { margin-top: 4px; }
.input.sm { padding: 4px 8px; font-size: 12px; height: 30px; }
.sd-count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11px; line-height: 18px; text-align: center; }
.tabs button.active .sd-count { background: var(--text); color: var(--bg); }

/* 성과 요약 */
.sd-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sd-summary.mb-16 { margin-bottom: 6px; } .sd-more-link a { font-weight: 600; }
.sd-summary .stat .val small { font-size: 13px; font-weight: 600; margin-left: 2px; color: var(--text-3); }
.sd-summary .sd-more { text-decoration: none; color: var(--text); border: 1px dashed var(--border-strong); background: transparent; box-shadow: none; }
.sd-summary .sd-more:hover { border-color: var(--accent); }

/* 단계 칩 */
.sd-pipe { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sd-pipe .sd-arrow { color: var(--text-3); font-size: 12px; }
.sd-pipe .sd-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.sd-pipe .chip b { font-weight: 700; margin-left: 2px; }

/* 목록 */
.sd-table { display: flex; flex-direction: column; gap: 8px; }
.sd-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) 188px minmax(320px, 2fr) minmax(170px, 1fr) 128px; gap: 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sd-row.sd-headrow { padding: 0 14px; border: 0; background: none; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.sd-row.is-out { opacity: .6; }
.sd-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.sd-handle { font-weight: 700; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; text-align: left; }
.sd-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.sd-size { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent); cursor: help; }
.sd-judge { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sd-recent { display: flex; gap: 6px; }
.sd-thumb { flex: none; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--surface-3); cursor: pointer; display: inline-block; }
.sd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-thumb.ok { outline: 2px solid var(--success); outline-offset: 1px; }
.sd-edit { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sd-fields { display: grid; grid-template-columns: 96px minmax(0, 1fr) 132px; gap: 6px; }
.sd-status.s-후보 { background: var(--surface-2); }
.sd-status.s-연락함, .sd-status.s-수락 { background: var(--accent-soft); }
.sd-status.s-발송 { background: var(--warning-soft); }
.sd-status.s-게시됨, .sd-status.s-완료 { background: var(--success-soft); }
.sd-posted { display: flex; gap: 8px; align-items: center; min-width: 0; }
.sd-posted.wait { flex-direction: column; align-items: flex-start; gap: 2px; }
.sd-act { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.sd-act .btn { justify-content: center; }

/* 단계별 보기 */
.sd-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sd-col { background: var(--surface-2); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.sd-col-head { font-size: 12.5px; font-weight: 700; padding: 2px 4px; }
.sd-col-head b { color: var(--text-3); margin-left: 2px; }
.sd-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px; min-width: 0; }

/* 추천 */
.sd-reco { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.sd-reco summary { cursor: pointer; }
.sd-reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 10px; }
.sd-reco-card { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.sd-reco-card .col { gap: 4px; }

/* 크리에이터 창 */
.sd-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.sd-box .sd-fields { grid-template-columns: 96px minmax(0, 1fr) 132px minmax(0, 1.4fr) auto; align-items: center; }
.cc-judge { margin-top: -2px; min-width: 0; }
.cc-judge .verdict, .cc-judge .sd-size { font-size: 11px; }
.cc-judge .verdict { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cc-judge .verdict small { font-size: 11px; }

/* 찾기 카드: 핸들은 한 줄(넘치면 …), '팔로워 2.5만'은 끊기지 않게 */
.cc-author { max-width: 100%; }
.cc-author .cc-handle { min-width: 0; flex: 0 1 auto; }
.cc-who { display: flex; gap: 6px; align-items: center; min-width: 0; margin-top: -2px; }
.cc-fol { white-space: nowrap; flex: none; }
/* '필터 ▾' 접기 */
.cc-more { position: relative; }
.cc-more > summary { list-style: none; } .cc-more > summary::-webkit-details-marker { display: none; }
.cc-more > summary b { display: inline-block; min-width: 16px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.cc-more-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; gap: 6px; padding: 10px; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.12)); }
.cc-more-pop .select { max-width: none; width: 100%; }
/* 연락일: 'M월 D일' 글자 + 달력 (브라우저 형식 mm/dd/yyyy는 보이지 않게) */
.sd-date { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; cursor: pointer; white-space: nowrap; color: var(--text); }
.sd-date input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.sd-date svg { color: var(--text-3); flex: none; }

/* DM 문구 */
.dropdown .sd-tpl { flex-direction: column; align-items: flex-start; gap: 2px; max-width: 340px; }
.dropdown .hd { padding: 6px 10px; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.sd-tpl-edit { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sd-tpl-edit:last-of-type { margin-bottom: 8px; }
.sd-tpl-edit .input[data-name] { max-width: 220px; }

@media (max-width: 1100px) {
  .sd-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-row { grid-template-columns: 1fr 1fr; }
  .sd-row.sd-headrow { display: none; }
  .sd-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-box .sd-fields { grid-template-columns: 1fr 1fr; }
}

/* ── 찾기 목록 (피처링식): 플랫폼 탭 · 한 줄에 한 사람 · 정렬되는 열 · 사진은 마우스를 올릴 때만 ── */
.crt-plat .crt-n { font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.crt-plat button.active .crt-n { color: inherit; opacity: .75; }
.mb-12 { margin-bottom: 12px; } .mb-4 { margin-bottom: 4px; }
.crt-wrap { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow-x: auto; }
.crt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crt-table th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 8px 10px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.crt-table th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.crt-table th button i { font-style: normal; font-size: 10px; opacity: .45; }
.crt-table th.on, .crt-table th.on button i { color: var(--text); opacity: 1; }
.crt-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.crt-table tbody tr { cursor: pointer; }
.crt-table tbody tr:last-child td { border-bottom: 0; }
.crt-table tbody tr:hover, .crt-table tbody tr:focus-visible { background: var(--surface-2); outline: none; }
.crt-c-who { width: 330px; min-width: 250px; }
.crt-who { position: relative; display: flex; gap: 10px; align-items: center; min-width: 0; }
.crt-id { min-width: 0; }
.crt-handle { font-weight: 700; color: var(--text); display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.crt-sub { display: flex; gap: 6px; align-items: center; margin-top: 2px; min-width: 0; }
.crt-c-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.crt-num { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.crt-avg { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.crt-c-rate .verdict { margin-top: 3px; font-size: 11px; white-space: nowrap; }
.crt-c-rate .verdict small { font-size: 11px; }
.crt-c-verdict .verdict { font-size: 11px; }
.crt-focus { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.crt-brands { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; margin-top: 3px; max-width: 220px; overflow: hidden; }
.crt-brands .chip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crt-c-brands .crt-num + .crt-brands { margin-top: 3px; }
.crt-youtube .crt-c-brands .crt-brands { margin-top: 0; }
.crt-warn { color: var(--warning, #b45309); font-weight: 700; }
.crt-c-act { white-space: nowrap; text-align: right; }
.crt-c-act > * { vertical-align: middle; }
.crt-table .btn-xs { padding: 3px 8px; font-size: 11.5px; height: 26px; gap: 3px; }
.crt-table .icon-btn.sm { width: 28px; height: 28px; display: inline-grid; place-items: center; margin-left: 4px; color: var(--text-3); }
/* 3 tiny thumbs next to the name, only while the row is hovered */
.crt-peek { display: none; gap: 3px; margin-left: auto; flex: none; } /* inside the name cell, so it never covers the other columns */
.crt-table tbody tr:hover .crt-peek { display: flex; }
.crt-peek-t { position: relative; width: 30px; height: 38px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--surface-3); cursor: pointer; }
.crt-peek-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crt-peek-t .pp-dot { width: 7px; height: 7px; right: 2px; bottom: 2px; border-width: 1.5px; }
/* 유튜브: 가장 많이 본 영상 */
.crt-top { all: unset; cursor: pointer; display: flex; gap: 8px; align-items: center; max-width: 280px; min-width: 0; }
.crt-top img { width: 64px; height: 36px; border-radius: 5px; object-fit: cover; flex: none; background: var(--surface-3); }
.crt-top-t { display: flex; flex-direction: column; min-width: 0; }
.crt-top:hover .clamp-1 { text-decoration: underline; }

/* ── 크리에이터 상세 ── */
.modal.crt-detail { max-width: 1080px; }
.crt-hero { display: flex; gap: 14px; align-items: center; }
.crt-hero-id { flex: 1; min-width: 0; }
.crt-hero-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 18px; }
.crt-hero-m { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; color: var(--text-2); }
.crt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.crt-kpi { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.crt-kpi .lbl { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.crt-kpi .val { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.crt-kpi .val small { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.crt-kpi .val .verdict { font-size: 12px; white-space: normal; max-width: 100%; flex-wrap: wrap; row-gap: 2px; } .crt-kpi .val .verdict b { white-space: nowrap; flex: none; }
.crt-side .hist-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; } .crt-side .hist-thumbs { grid-column: 1 / -1; justify-content: flex-start; }
.crt-kpi .sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.crt-kpi .sub .verdict { font-size: 11px; white-space: normal; }
.crt-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.crt-main, .crt-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.crt-side .sig-box, .crt-side .hist-box { margin-top: 0; }
.crt-side .crt-seed-fields { grid-template-columns: 1fr 1fr; }
.crt-side .crt-seed-fields .input[data-seed-field="note"] { grid-column: 1 / -1; }
.crt-sec { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.crt-sec-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.crt-sec-h > b { font-size: 13.5px; }
.crt-focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.crt-bars { display: flex; flex-direction: column; gap: 5px; }
.crt-bar-r { display: grid; grid-template-columns: 76px minmax(0, 1fr) 36px; gap: 8px; align-items: center; font-size: 12.5px; }
.crt-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.crt-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.crt-trend { margin-bottom: 6px; }
.crt-best { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .crt-cols { grid-template-columns: 1fr; } .crt-peek { display: none !important; } }
