/* Styles of the clipping module: campaigns ranking, creator recipe, estimator, montage steps. */
.clip-stack { display: flex; flex-direction: column; gap: 16px; }
.clip-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.clip-row.between { justify-content: space-between; }
.clip-head-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.clip-head-pills .pill.on { background: var(--ok-soft); color: var(--ok); }
.clip-head-pills .pill.off { background: var(--panel-2); color: var(--muted); }
.clip-links { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 13px; }
.clip-links a { display: inline-flex; align-items: center; gap: 4px; }
.clip-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.clip-check input { accent-color: var(--brand); }
.clip-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.clip-chips .chip-btn.on { color: var(--brand); border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.clip-formula { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-s); font-size: 13px; color: var(--muted); line-height: 1.5; background: var(--panel-2); }
.clip-formula .ico { flex: none; color: var(--brand); margin-top: 2px; }
.clip-formula b { color: var(--text); display: block; margin-bottom: 2px; }

/* campaigns */
.clip-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.clip-rank .trow { grid-template-columns: minmax(0, 2.2fr) 90px 110px 110px 110px 100px 100px 64px auto; }
.clip-rank .trow .name b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-rank .trow .name small { color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.clip-rank .trow .num { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.clip-rank .trow .num small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.clip-rank .trow .big { font-weight: 700; color: var(--text); }
.clip-rank .trow .actions { display: flex; gap: 2px; justify-content: flex-end; }
.clip-rank .yt-gauge { width: 44px; height: 44px; }
.clip-rank .yt-gauge text { font-size: 15px; }
.clip-rank .trow.dim { opacity: 0.6; }
.clip-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.clip-pill.whop { background: var(--coral-soft); color: var(--coral); }
.clip-pill.direct { background: var(--info-soft); color: var(--info); }
.clip-pill.warn { background: var(--warn-soft); color: var(--warn); }
.clip-pill.danger { background: var(--danger-soft); color: var(--danger); }
.clip-pill.ok { background: var(--ok-soft); color: var(--ok); }
.clip-alerts .yt-alert .main b { font-size: 13.5px; }

/* creator */
.clip-clippers .trow { grid-template-columns: 40px minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)); }
.clip-clippers img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.clip-clippers .name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.clip-clippers .name small { color: var(--muted); }
.clip-clippers .num { font-variant-numeric: tabular-nums; }
.clip-vir { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; }
.clip-vir small { color: var(--muted); font-size: 11.5px; line-height: 1.35; display: block; }
.clip-vir-badge { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 7px; font-weight: 800; font-size: 12.5px; color: #fff; background: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.clip-vir-badge.hot { background: #d23a3a; }
.clip-vir-badge.warm { background: #e07b17; }
.clip-vir-badge.good { background: #15895a; }
.clip-vir-badge.big { min-width: 44px; height: 30px; font-size: 15px; }
.clip-mention { display: inline-flex; align-items: center; gap: 3px; color: var(--brand); font-size: 11px; font-weight: 650; }
.clip-shape { width: 100%; border-collapse: collapse; font-size: 13px; }
.clip-shape th, .clip-shape td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.clip-shape th { color: var(--faint); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; border-top: 0; }
.clip-shape td:not(:first-child) { text-align: right; font-weight: 600; }
.clip-shape td:first-child { color: var(--muted); }
.clip-rules { display: flex; flex-direction: column; gap: 10px; counter-reset: rule; padding: 0; margin: 0; list-style: none; }
.clip-rules li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.clip-rules li::before { counter-increment: rule; content: counter(rule); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; flex: none; font-size: 12.5px; }
.clip-rules li small { display: block; color: var(--muted); }
.clip-creator-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.clip-creator-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.clip-creator-head h2 { font-size: var(--fs-2xl); }
.clip-creator-head .grow { flex: 1; min-width: 220px; }
.clip-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-slot { padding: 8px 12px; background: var(--panel-2); border-radius: var(--r-s); display: flex; flex-direction: column; min-width: 90px; }
.clip-slot b { font-size: 15px; }
.clip-slot small { color: var(--muted); font-size: 12px; }

/* estimator */
.clip-estimate-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.clip-estimate-form .span-2 { grid-column: span 2; }
.clip-result { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--r-m); background: linear-gradient(135deg, var(--brand-soft), var(--panel)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.clip-result .headline { font: 700 var(--fs-2xl)/1.2 var(--display); letter-spacing: -0.01em; }
.clip-result .headline b { color: var(--brand); }
.clip-result .sub { color: var(--muted); font-size: 13.5px; }
.clip-range { position: relative; height: 10px; border-radius: 999px; background: var(--panel-3); margin: 8px 0 2px; overflow: hidden; }
.clip-range i { position: absolute; top: 0; bottom: 0; background: var(--brand); opacity: 0.35; }
.clip-range b { position: absolute; top: -2px; width: 4px; height: 14px; background: var(--brand); border-radius: 2px; }
.clip-factors { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-factor { display: flex; flex-direction: column; padding: 8px 12px; border-radius: var(--r-s); background: var(--panel-2); min-width: 120px; }
.clip-factor b { font-size: 16px; font-variant-numeric: tabular-nums; }
.clip-factor b.up { color: var(--ok); }
.clip-factor b.down { color: var(--danger); }
.clip-factor small { color: var(--muted); font-size: 12px; }
.clip-comparables { display: flex; flex-direction: column; }
.clip-comparable { display: grid; grid-template-columns: minmax(0, 1fr) 90px 60px; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; align-items: center; }
.clip-comparable:first-child { border-top: 0; }
.clip-comparable a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.clip-comparable small { color: var(--muted); display: block; }
.clip-comparable .num { text-align: right; font-weight: 600; }

/* montage */
.clip-step-state { font-size: 12.5px; color: var(--muted); }
.clip-dropzone input { display: none; }
.clip-source { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.clip-source:first-child { border-top: 0; }
.clip-source input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; }
.clip-source .name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.clip-source .name small { color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.clip-moments { display: flex; flex-direction: column; gap: 8px; }
.clip-moment { display: grid; grid-template-columns: 24px 90px 90px minmax(0, 1.4fr) 48px auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); }
.clip-moment.off { opacity: 0.55; }
.clip-moment input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
.clip-moment .why { grid-column: 2 / -1; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.clip-moment .input.small { width: 100%; }
.clip-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.clip-job { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); min-width: 0; }
.clip-job video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; object-fit: contain; }
.clip-job .placeholder { aspect-ratio: 9 / 16; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; color: var(--faint); }
.clip-job .meta { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.clip-job .meta b { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-job .progress { width: 100%; }
.clip-job .actions { display: flex; gap: 4px; flex-wrap: wrap; }
.clip-job .error-text { color: var(--danger); font-size: 12px; }

@media (max-width: 1100px) {
  .clip-rank .trow { grid-template-columns: minmax(0, 2fr) 100px 100px 100px 60px auto; }
  .clip-rank .trow > :nth-child(3), .clip-rank .trow > :nth-child(4), .clip-rank .trow > :nth-child(7) { display: none; }
  .clip-clippers .trow { grid-template-columns: 40px minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .clip-clippers .trow > :nth-child(n+6) { display: none; }
  .clip-estimate-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .clip-settings { grid-template-columns: 1fr; }
  .clip-rank .trow { grid-template-columns: minmax(0, 1fr) 70px 50px; padding: 12px 14px; }
  .clip-rank .trow > :nth-child(2), .clip-rank .trow > :nth-child(5), .clip-rank .trow > :nth-child(9) { display: none; }
  .clip-rank .trow.thead { display: none; }
  .clip-rank .trow .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .clip-clippers .trow { grid-template-columns: 40px minmax(0, 1fr) 70px; }
  .clip-clippers .trow > :nth-child(n+4) { display: none; }
  .clip-estimate-form { grid-template-columns: 1fr; }
  .clip-estimate-form .span-2 { grid-column: auto; }
  .clip-moment { grid-template-columns: 24px 1fr 1fr; }
  .clip-moment > :nth-child(4) { grid-column: 1 / -1; }
  .clip-moment > :nth-child(5), .clip-moment > :nth-child(6) { grid-column: auto; }
  .clip-source { grid-template-columns: 24px minmax(0, 1fr); }
  .clip-source > :nth-child(3), .clip-source > :nth-child(4) { grid-column: 2; justify-self: start; }
  .clip-creator-head img { width: 52px; height: 52px; }
  .clip-result .headline { font-size: var(--fs-xl); }
}

/* layout helpers of the clipping page */
.yt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.yt-kpi { background: var(--panel-2); border-radius: var(--r-m); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.yt-kpi b { font-size: 18px; } .yt-kpi small { color: var(--muted); }
.yt-kpi-col { display: flex; flex-direction: column; gap: 4px; } .yt-kpi-col small { color: var(--muted); }
.yt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 760px) { .yt-two { grid-template-columns: 1fr; } }
.yt-list { display: flex; flex-direction: column; }
.yt-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.yt-line:first-child { border-top: 0; } .yt-line .grow { flex: 1; min-width: 0; } .yt-line b { display: block; } .yt-line.active { background: var(--panel-2); border-radius: var(--r-s); padding: 10px; }
.yt-empty { text-align: center; padding: 28px 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; } .yt-empty b { font-size: 16px; }
.yt-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.yt-form-grid .field span { font-size: 13px; color: var(--text-2); font-weight: 560; }
.yt-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.yt-video-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; } .yt-video-body b { font-size: 13.5px; line-height: 1.3; }
.clip-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.clip-step { background: var(--panel-2); border-radius: var(--r-m); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.clip-moment { padding: 12px; } .clip-moment .field { flex: 1; }
.clip-job video { width: 100%; aspect-ratio: 9 / 16; max-height: 360px; background: #000; object-fit: contain; display: block; }
.clip-job-wait { display: grid; place-items: center; aspect-ratio: 9 / 16; max-height: 200px; }
.clip-rules { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.clip-estimate h2 { font-size: 20px; }
.clip-links img { width: 20px; height: 20px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
