/* 유통사(회사 계정) 화면: 정산 지급(assets/payouts.js의 distributorPage)과 작업실 윗줄·작품 상태(assets/distributor-studio.js). 앞머리 dsp-.
 * 버튼은 남색·흰색만(빨강 없음). 사이트 공통 규칙이 글자색을 덮어써서 body.editorial을 붙인다. */
body.editorial .dsp{color:#0a0a0a}
.dsp-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0 0;border:1px solid #ececef;border-radius:12px;background:#fff}
.dsp-sum>div{min-width:0;padding:18px 20px;border-left:1px solid #ececef}
.dsp-sum>div:first-child{border-left:0}
body.editorial .dsp-sum dt{font-size:13px;font-weight:600;color:#6b6f78}
body.editorial .dsp-sum dd{margin:8px 0 0;font-size:26px;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#0a0a0a}
body.editorial .dsp-sum dd.dsp-acct{font-size:18px}
body.editorial .dsp-sum dd small{display:block;margin-top:6px;font-size:13px;font-weight:500;letter-spacing:-.01em;color:#6b6f78}
body.editorial .dsp-ok{color:#1f7a4d!important;font-weight:700}
body.editorial .dsp-warn{color:#8a5300!important;font-weight:700}
.dsp-todo{display:flex;align-items:center;gap:14px;margin-top:12px;padding:14px 18px;border-radius:12px;background:#1e2a4a}
body.editorial .dsp-todo p{margin:0;font-size:14px;line-height:1.55;color:#fff!important}
body.editorial .dsp-todo p b{color:#fff!important}
body.editorial .dsp-todo p small{display:block;font-size:12.5px;color:rgba(255,255,255,.75)!important}
body.editorial .dsp-todo-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;height:38px;min-height:38px!important;margin-left:auto;padding:0 16px;border:0;border-radius:8px;background:#fff;font:inherit;font-size:13.5px;font-weight:800;color:#1e2a4a!important;text-decoration:none;cursor:pointer}
.dsp-tabs{display:flex;gap:22px;margin-top:24px;border-bottom:1px solid #ececef;overflow-x:auto;scrollbar-width:none}
.dsp-tabs::-webkit-scrollbar{display:none}
body.editorial .dsp-tabs button{flex:none;min-height:0!important;padding:12px 1px 10px;border:0;border-radius:0;background:none;font:inherit;font-size:14.5px;font-weight:600;color:#7a7c85!important;cursor:pointer}
body.editorial .dsp-tabs button.on{font-weight:800;color:#0a0a0a!important;box-shadow:inset 0 -2px #0a0a0a}
.dsp-month{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 4px}
body.editorial .dsp-month b{min-width:96px;font-size:16px;font-weight:800;text-align:center}
body.editorial .dsp-month button[data-mv]{width:30px;height:30px;min-height:0!important;padding:0;border:1px solid #e2e3e8;border-radius:6px;background:#fff;font-size:16px;line-height:1;color:#555!important;cursor:pointer}
.dsp-month button[data-mv]:disabled{opacity:.35;cursor:default}
body.editorial .dsp-live{font-size:12.5px;color:#6b6f78}
body.editorial .dsp-link{display:inline-flex;align-items:center;gap:6px;min-height:0!important;padding:0;border:0;background:none;font:inherit;font-size:13px;font-weight:700;color:#1e2a4a!important;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c9ccd4;cursor:pointer}
.dsp-csv{margin-left:auto}
.dsp-rows{margin-top:6px}
.dsp-row{display:grid;align-items:center;gap:12px;min-height:68px;padding:0 10px;border-bottom:1px solid #f2f2f4;font-size:14px}
body.editorial .dsp-head{min-height:40px;font-size:12.5px;font-weight:600;color:#8e8e8e}
.dsp-sale{grid-template-columns:minmax(0,2.4fr) .6fr .6fr 1fr 1fr 1fr}
.dsp-st{grid-template-columns:minmax(0,2.2fr) .6fr .6fr .9fr .8fr 1.1fr 1fr}
.dsp-hist{grid-template-columns:1fr 1fr .8fr 1fr .8fr 1.6fr 1fr;min-height:56px}
.dsp-total{min-height:52px;border-top:1px solid #d9dbe1;border-bottom:0;font-weight:800}
.dsp-row .num{text-align:right;font-variant-numeric:tabular-nums}
.dsp-work{display:flex;align-items:center;gap:12px;min-width:0}
.dsp-cover{flex:none;width:40px;height:56px;overflow:hidden;border-radius:3px;background:#f0f0f1}
.dsp-cover>*{width:100%!important;height:100%!important}
.dsp-cover img{display:block;object-fit:cover}
.dsp-name{min-width:0}
body.editorial .dsp-name b{display:block;overflow:hidden;font-size:14.5px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.dsp-m{display:none}
body.editorial .dsp-note{margin:12px 0 10px;font-size:13.5px;color:#3d4250}
body.editorial .dsp-empty{margin:0;padding:34px 0;font-size:14px;text-align:center;color:#8e8e8e}
.dsp .payout-facts{margin-top:16px}
.dsp #payeeEdit{margin-top:12px}
.dsp #payeeFormWrap[hidden]{display:none}
.dsp-rules{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:28px;padding-top:14px;border-top:1px solid #ececef;font-size:12.5px;color:#6b6f78}
body.editorial .dsp-rules b{color:#3d4250}
body.editorial .dsp-rules a{font-weight:700;color:#1e2a4a;text-decoration:underline;text-underline-offset:3px}
@media (max-width:700px){
  .dsp-sum{grid-template-columns:1fr}
  .dsp-sum>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:14px 16px;border-top:1px solid #ececef;border-left:0}
  .dsp-sum>div:first-child{border-top:0}
  body.editorial .dsp-sum dd{margin:0;font-size:19px;text-align:right}
  body.editorial .dsp-sum dd.dsp-acct{font-size:15px}
  body.editorial .dsp-sum dd small{font-size:12px}
  .dsp-todo{flex-wrap:wrap}
  body.editorial .dsp-todo-btn{width:100%;margin-left:0}
  .dsp-tabs{gap:18px}
  .dsp-head{display:none}
  .dsp-sale,.dsp-st,.dsp-hist{grid-template-columns:minmax(0,1fr) auto;min-height:0;padding:14px 0}
  .dsp-sale>span:not(:first-child):not(.dsp-share),.dsp-st>span:not(:first-child):not(.dsp-share),.dsp-hist>span:not(:first-child):not(.dsp-share){display:none}
  body.editorial .dsp-m{display:block;margin-top:3px;font-size:12px;font-weight:500;color:#6b6f78;white-space:normal}
  .dsp-csv{margin-left:0}
}
/* 작업실 윗줄과 작품별 판매 상태(유통사 계정) */
.dsp-strip{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;margin:0 0 12px;padding:12px 0;border-bottom:1px solid #ececef;font-size:13.5px;color:#3d4250}
.dsp-strip>span{padding:0 16px;border-left:1px solid #ececef}
.dsp-strip>span:first-child{padding-left:0;border-left:0}
body.editorial .dsp-strip b{color:#0a0a0a}
.dsp-strip .dsp-link{margin-left:auto}
body.editorial .dsp-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:6px 0 0;font-size:12.5px;color:#6b6f78}
body.editorial .dsp-stt{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.dsp-stt:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
body.editorial .dsp-stt.on{color:#1f7a4d!important}
body.editorial .dsp-stt.hold{color:#8a5300!important}
body.editorial .dsp-stt.off{color:#8e8e8e!important}
@media (max-width:700px){
  .dsp-strip>span{flex-basis:100%;padding:0;border-left:0}
  .dsp-strip .dsp-link{margin:4px 0 0}
}
/* 계약 탭(#/studio/contract, 2026-11-12) */
.dsp-page{max-width:1180px;margin:0 auto}
body.editorial .dsp-phead h1{margin:0;font-size:24px;font-weight:800;letter-spacing:-.03em}
body.editorial .dsp-phead p{margin:6px 0 0;font-size:13.5px;color:#6b6f78}
.dsp-cbox{margin-top:18px;overflow:hidden;border:1px solid #ececef;border-radius:12px;background:#fff}
.dsp-chead{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:16px 20px;border-bottom:1px solid #ececef}
body.editorial .dsp-chead>b{font-size:17px;font-weight:800}
body.editorial .dsp-ver{font-weight:600;color:#6b6f78}
body.editorial .dsp-pdf{display:inline-flex;align-items:center;gap:6px;height:32px;min-height:32px!important;margin-left:auto;padding:0 12px;border:1px solid #d9dbe1;border-radius:8px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:#1e2a4a!important;cursor:pointer}
.dsp-pdf:disabled{opacity:.5}
body.editorial .dsp-nofile{margin-left:auto;font-size:12.5px;color:#6b6f78}
.dsp-cfacts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
.dsp-cfacts>div{min-width:0;padding:14px 20px;border-left:1px solid #ececef}
.dsp-cfacts>div:first-child{border-left:0}
body.editorial .dsp-cfacts dt{font-size:12.5px;font-weight:600;color:#6b6f78}
body.editorial .dsp-cfacts dd{margin:5px 0 0;font-size:15px;font-weight:800;color:#0a0a0a}
body.editorial .dsp-cfacts dd small{display:block;margin-top:3px;font-size:12.5px;font-weight:500;color:#6b6f78}
body.editorial .dsp-cnotice{margin:0;padding:12px 20px;border-top:1px solid #ececef;background:#fff8ec;font-size:13.5px;color:#3d4250}
body.editorial .dsp-sec{margin:28px 0 0;font-size:16px;font-weight:800}
.dsp-terms{margin:8px 0 0}
.dsp-terms>div{display:grid;grid-template-columns:130px minmax(0,1fr) 110px;align-items:baseline;gap:14px;padding:13px 2px;border-bottom:1px solid #f2f2f4;font-size:14px;line-height:1.6}
body.editorial .dsp-terms dt{font-weight:800}
body.editorial .dsp-terms dd{margin:0;color:#3d4250}
body.editorial .dsp-terms em{font-size:12px;font-style:normal;text-align:right;color:#6b6f78}
body.editorial .dsp-fine{margin:10px 0 0;font-size:12.5px;color:#6b6f78}
.dsp-sup{grid-template-columns:minmax(0,2.4fr) .8fr 1.4fr .9fr 1fr}
body.editorial .dsp-pen{display:block;margin-top:2px;font-size:12.5px;color:#6b6f78}
.dsp-sup .dsp-share small{display:block;margin-top:2px;font-size:12px;color:#6b6f78}
.dsp-past{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:12px 2px;border-bottom:1px solid #f2f2f4;font-size:14px}
.dsp-past .dsp-link{margin-left:auto}
.dsp-ask{display:flex;align-items:center;gap:12px;margin-top:24px;padding:14px 18px;border-radius:12px;background:#f7f7f9;font-size:13.5px;color:#3d4250}
body.editorial .dsp-ask-btn{flex:none;display:inline-flex;align-items:center;height:36px;margin-left:auto;padding:0 14px;border:1px solid #d9dbe1;border-radius:8px;background:#fff;font-size:13.5px;font-weight:700;color:#1e2a4a!important;text-decoration:none}
body.editorial .dsp-comment-note{margin:0;padding:14px 16px;border-radius:10px;background:#f7f7f9;font-size:13.5px;color:#3d4250}
/* 회사 계정의 작가 페이지 → 작품 모음(회사 이름 없이, 제목 아래 필명) */
body.editorial .dsp-collection h1{margin:14px 0 0;font-size:26px;font-weight:800;letter-spacing:-.03em}
body.editorial .dsp-collection>p{margin:6px 0 0;font-size:14px;color:#6b6f78}
.dsp-cgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 16px;margin-top:22px}
.dsp-ccard{min-width:0}
body.editorial .dsp-ccard>a{display:block;color:#0a0a0a;text-decoration:none}
.dsp-ccover{display:block;aspect-ratio:5/7;overflow:hidden;border-radius:4px;background:#f0f0f1}
.dsp-ccover>*{width:100%!important;height:100%!important}
.dsp-ccover img{display:block;object-fit:cover}
body.editorial .dsp-ccard b{display:-webkit-box;margin-top:8px;overflow:hidden;font-size:14px;font-weight:700;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body.editorial .dsp-ccard .dsp-cpen{display:inline-block;margin-top:3px;font-size:12.5px;font-weight:600;color:#3d4250;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#d4d4d8}
body.editorial .dsp-cmeta{display:block;margin-top:2px;font-size:12px;color:#8e8e8e}
@media (max-width:700px){
  .dsp-cfacts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dsp-cfacts>div{padding:12px 14px}
  .dsp-cfacts>div:nth-child(3){border-left:0}
  .dsp-cfacts>div:nth-child(n+3){border-top:1px solid #ececef}
  .dsp-chead{padding:14px}
  body.editorial .dsp-pdf,body.editorial .dsp-nofile{margin-left:0}
  body.editorial .dsp-cnotice{padding:12px 14px}
  .dsp-terms>div{grid-template-columns:minmax(0,1fr);gap:2px}
  body.editorial .dsp-terms em{text-align:left}
  .dsp-sup{grid-template-columns:minmax(0,1fr) auto;padding:14px 0}
  .dsp-sup>span:nth-child(2),.dsp-sup>span:nth-child(3),.dsp-sup>span:nth-child(4){display:none}
  .dsp-collection{padding-left:16px!important;padding-right:16px!important}
  .dsp-cgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}
  .dsp-ask{flex-wrap:wrap}
  body.editorial .dsp-ask-btn{width:100%;margin-left:0;justify-content:center}
}
