/* Moart 사용자 대시보드 — [수집 상품 관리] 허브 스타일 */
.cp-wrap {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cp-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.cp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.cp-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #4f46e5;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cp-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text, #0f172a);
}
.cp-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted, #64748b);
}
.cp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-quota-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.cp-quota-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #334155;
}
.cp-tier-pill {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.cp-progress-track {
  width: 160px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.cp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 999px;
}
.cp-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
}
.cp-chip.is-active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}
.cp-search-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-input, .cp-select, .cp-textarea {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}
.cp-textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  font-family: inherit;
}
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.cp-btn--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
}
.cp-btn--secondary {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.cp-btn--soft {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
.cp-btn--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.cp-btn--sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.cp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cp-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1080px) {
  .cp-workspace { grid-template-columns: 1fr; }
}
.cp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 13px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cp-item:hover { border-color: #a5b4fc; }
.cp-item.is-selected {
  border-color: #4f46e5;
  background: #f8faff;
}
.cp-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.cp-thumb-empty {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cp-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cp-item-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
  color: #64748b;
}
.cp-plat-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef2ff;
  color: #3730a3;
}
.cp-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fef3c7;
  color: #92400e;
}
.cp-status-badge.is-done {
  background: #dcfce7;
  color: #166534;
}
.cp-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.cp-drawer {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-role-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cp-img-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.cp-img-tile {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: #f8fafc;
}
.cp-img-tile.is-checked { border-color: #4f46e5; }
.cp-img-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-img-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.cp-img-tile.is-checked .cp-img-check { background: #4f46e5; }
.cp-field { display: flex; flex-direction: column; gap: 4px; }
.cp-field label { font-size: 12px; font-weight: 700; color: #475569; }
.cp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cp-launch-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cp-launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cp-empty {
  text-align: center;
  padding: 44px 20px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.cp-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2500;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}
.cp-ext-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.cp-ext-pill--on {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.cp-ext-pill--off {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.cp-batch-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 290px;
  overflow-y: auto;
}
.cp-batch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 12.5px;
}
.cp-batch-row__url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-weight: 700;
}
.cp-batch-row__err {
  font-size: 11.5px;
  color: #b45309;
  margin-top: 2px;
}
.cp-bstat {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.cp-bstat--pending { background: #e2e8f0; color: #475569; }
.cp-bstat--running { background: #eef2ff; color: #3730a3; }
.cp-bstat--done { background: #dcfce7; color: #166534; }
.cp-bstat--manual { background: #fef3c7; color: #92400e; }
.cp-bstat--duplicate { background: #dbeafe; color: #1d4ed8; }
.cp-bstat--failed { background: #fee2e2; color: #b91c1c; }
.cp-progress-fill--animated {
  background-image: linear-gradient(
    45deg,
    #4f46e5 25%,
    #7c3aed 25%,
    #7c3aed 50%,
    #4f46e5 50%,
    #4f46e5 75%,
    #7c3aed 75%,
    #7c3aed
  );
  background-size: 28px 28px;
  animation: cpStripeMove 0.85s linear infinite;
}
@keyframes cpStripeMove {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}
.cp-bg-running-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #eef2ff, #f5f3ff);
  border: 1.5px solid #818cf8;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  color: #1e1b4b;
}
.cp-complete-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid #34d399;
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-complete-banner__title {
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
}
.cp-complete-banner__meta {
  font-size: 12.5px;
  color: #047857;
  font-weight: 700;
}
.cp-img-tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  line-height: 1.2;
}
.cp-img-tag--foreign { background: rgba(217, 119, 6, 0.94); color: #ffffff; }
.cp-img-tag--logo { background: rgba(37, 99, 235, 0.92); color: #ffffff; }
.cp-img-tag--clean { background: rgba(5, 150, 105, 0.92); color: #ffffff; }
.cp-img-tag--ko { background: rgba(51, 65, 85, 0.88); color: #ffffff; }
.cp-classify-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.cp-classify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---- 원문 / 한국어 번역 펼침 · 옵션 리스트 · 판매가 계산기 ---- */
.cp-trans-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border: 1px solid #c7d2fe;
}
.cp-trans-bar strong { display: block; font-size: 13px; color: #312e81; }
.cp-trans-bar small { display: block; font-size: 11.5px; color: #4338ca; margin-top: 2px; }

.cp-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cp-link-btn {
  border: none;
  background: transparent;
  color: #4f46e5;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 4px;
}
.cp-link-btn:hover { text-decoration: underline; }
.cp-input--orig { background: #f8fafc; color: #334155; }

.cp-trans-drawer {
  margin-top: 6px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f5f3ff;
  border: 1px solid #c4b5fd;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cp-trans-drawer label { font-size: 11.5px; font-weight: 800; color: #4c1d95; }

.cp-cost-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-cost-box__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cp-cost-box__info { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cp-cost-box__label { font-size: 12px; font-weight: 800; color: #475569; }
.cp-cost-box__info strong { font-size: 14px; color: #0f172a; }
.cp-cost-box__info small { font-size: 11.5px; color: #64748b; }

.cp-acc {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}
.cp-acc--calc { border-color: #a5b4fc; background: #fafbff; }
.cp-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  cursor: pointer;
  user-select: none;
  background: #f8fafc;
}
.cp-acc--calc .cp-acc__head { background: #eef2ff; }
.cp-acc__title { font-size: 12px; font-weight: 800; color: #1e293b; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cp-acc__caret { font-size: 11.5px; font-weight: 800; color: #4f46e5; white-space: nowrap; }
.cp-acc__pill { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.cp-acc__pill.is-pos { background: #dcfce7; color: #15803d; }
.cp-acc__pill.is-neg { background: #fee2e2; color: #b91c1c; }
.cp-acc__warn { font-style: normal; color: #c2410c; font-weight: 800; }
.cp-acc__body { padding: 10px 11px; border-top: 1px solid #e2e8f0; }

.cp-opt-list { display: flex; flex-direction: column; gap: 7px; max-height: 280px; overflow-y: auto; }
.cp-opt-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.cp-opt-row.is-excluded { opacity: 0.62; background: #f8fafc; }
.cp-opt-row.is-unrelated { border-color: #fdba74; background: #fff7ed; }
.cp-opt-chk { padding-top: 3px; cursor: pointer; }
.cp-opt-texts { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-opt-orig { font-size: 11.5px; color: #64748b; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; word-break: break-all; }
.cp-opt-badge { background: #ffedd5; color: #c2410c; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.cp-opt-ko-input { padding: 5px 8px; font-size: 12.5px; }
.cp-opt-del { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; border-radius: 6px; font-size: 11px; font-weight: 700; padding: 4px 7px; cursor: pointer; }

.cp-calc-rows { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.cp-calc-row { display: flex; justify-content: space-between; gap: 8px; color: #475569; }
.cp-calc-row strong { color: #0f172a; text-align: right; }
.cp-calc-row small { color: #64748b; font-weight: 600; }
.cp-calc-row--total { padding-top: 6px; margin-top: 3px; border-top: 1px dashed #cbd5e1; font-weight: 800; }
.cp-calc-row--total strong { color: #4f46e5; }

.cp-calc-modal { max-width: 680px; max-height: 90vh; overflow-y: auto; }
.cp-calc-hero {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-calc-hero__main { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cp-calc-hero__main span { font-size: 12.5px; color: #c7d2fe; font-weight: 700; }
.cp-calc-hero__main strong { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.cp-calc-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.16); }
.cp-calc-hero__stats div { display: flex; flex-direction: column; gap: 2px; }
.cp-calc-hero__stats span { font-size: 11px; color: #c7d2fe; }
.cp-calc-hero__stats strong { font-size: 13.5px; font-weight: 800; }
.cp-calc-hero__stats strong.is-pos { color: #86efac; }
.cp-calc-hero__stats strong.is-neg { color: #fca5a5; }

.cp-calc-section { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 11px; padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.cp-calc-sec-title { font-size: 12.5px; font-weight: 800; color: #1e293b; }
.cp-calc-grid { display: grid; gap: 8px; }
.cp-calc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-calc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-calc-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-calc-hint { font-size: 12px; color: #334155; }
.cp-calc-warn { color: #c2410c; font-weight: 800; }
.cp-calc-round-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
@media (max-width: 640px) {
  .cp-calc-grid--3, .cp-calc-grid--4, .cp-calc-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
