/* 자료수집 관리 (2026-09-29 개편 — 기준 자료수집과 같은 배치, 올댓벤처스 어드민 톤) — app.css 토큰만 사용
   글자 크기 단계: 11px(보조) · 12.5px(본문) · 15px(제목) · 22px(진행률) — 강조는 굵기·색으로 */

/* ── 목록 ── */
.cl-toolbar{display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap}
.cl-search-wrap{flex:1; min-width:240px; position:relative}
.cl-search-wrap::before{content:""; position:absolute; left:11px; top:50%; width:11px; height:11px; margin-top:-7px;
  border:1.6px solid var(--light); border-radius:50%}
.cl-search-wrap::after{content:""; position:absolute; left:21px; top:50%; width:5px; height:1.6px; margin-top:3px; background:var(--light); transform:rotate(45deg)}
.cl-search{height:36px; padding-left:32px}
.cl-seg{display:inline-flex; border:1px solid var(--border-input); border-radius:var(--r); overflow:hidden; background:var(--surface)}
.cl-seg-btn{height:34px; padding:0 16px; font-size:12.5px; font-weight:600; color:var(--body); border-left:1px solid var(--border-input)}
.cl-seg-btn:first-child{border-left:0}
.cl-seg-btn:hover{color:var(--navy)}
.cl-seg-btn.on{background:var(--navy); color:#fff; font-weight:700}
.cl-subbar{display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; min-height:30px}
.cl-chips{display:flex; gap:6px; flex-wrap:wrap; align-items:center}
.cl-chip{height:30px; padding:0 12px; border-radius:var(--r-badge); border:1px solid var(--border-input); background:var(--surface); font-size:12.5px; color:var(--body)}
.cl-chip b{font-variant-numeric:tabular-nums}
.cl-chip:hover{border-color:var(--navy); color:var(--navy)}
.cl-chip.pending.on{background:var(--st-noreply-bg); border-color:var(--st-noreply-fg); color:var(--st-noreply-fg)}
.cl-chip.near.on{background:var(--st-rejected-bg); border-color:var(--st-rejected-fg); color:var(--st-rejected-fg)}
.cl-chip.over.on{background:var(--st-db-bg); border-color:var(--st-db-fg); color:var(--ink)}
.cl-chip-reset{margin-left:2px}
.cl-kinds{margin-left:auto; display:flex; gap:2px; background:var(--hairline); padding:2px; border-radius:var(--r)}
.cl-kind{height:26px; padding:0 11px; border-radius:5px; font-size:12.5px; color:var(--label); font-weight:600}
.cl-kind.on{background:#fff; color:var(--navy); font-weight:700; box-shadow:0 0 0 1px var(--border)}
.cl-loading{opacity:.55; transition:opacity .15s}

.cl-list thead th{max-width:none}   /* app.css 의 max-width:0 이 폭 지정을 막는다 — 머리칸만 풀어 준다 */
.cl-list th:nth-child(1){width:30px}
.cl-list th:nth-child(2){width:210px}
.cl-list th:nth-child(4),.cl-list th:nth-child(5){width:96px}
.cl-list th:nth-child(6){width:160px}
.cl-list th:nth-child(7){width:84px}
.cl-list th:nth-child(8){width:118px}
.cl-list th:nth-child(9){width:84px}
.cl-list tbody td{font-size:12.5px}
.cl-list tbody tr.closed td{color:var(--muted)}
.cl-list tbody tr:focus-visible{outline:2px solid var(--navy); outline-offset:-2px}
.cl-dotc{text-align:center; padding-left:6px !important; padding-right:0 !important}
.cl-co{display:flex; align-items:center; gap:8px; min-width:0}
.cl-co b{font-weight:700; overflow:hidden; text-overflow:ellipsis}
.cl-dot{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--st-noreply-fg); vertical-align:middle}
.cl-closed{font-size:11px; font-weight:700; color:var(--st-db-fg); background:var(--st-db-bg); padding:1px 7px; border-radius:var(--r-badge); flex:0 0 auto}
.cl-proj{color:var(--body)}
.cl-src{display:inline-block; font-size:11px; font-weight:700; padding:0 7px; border-radius:var(--r-badge); margin-right:7px; vertical-align:1px}
.cl-src.doc{background:var(--tint-navy); color:var(--navy)}
.cl-prog{display:flex; align-items:center; gap:8px}
.cl-bar{flex:1; height:6px; border-radius:3px; background:var(--hairline); overflow:hidden}
.cl-bar i{display:block; height:100%; background:var(--light)}
.cl-bar i.mid{background:var(--navy)}
.cl-bar i.done{background:var(--st-done-fg)}
.cl-pct{font-size:12.5px; font-weight:700; min-width:36px; text-align:right; font-variant-numeric:tabular-nums; color:var(--muted)}
.cl-pct.mid{color:var(--navy)}
.cl-pct.done{color:var(--st-done-fg)}
.cl-dl{font-variant-numeric:tabular-nums}
.cl-dl em{font-style:normal; font-size:11px; font-weight:700; margin-left:6px; color:var(--muted)}
.cl-dl.near{color:var(--st-noreply-fg); font-weight:700}
.cl-dl.near em{color:var(--st-noreply-fg)}
.cl-dl.over{color:var(--st-rejected-fg); font-weight:700}
.cl-dl.over em{color:var(--st-rejected-fg)}
.cl-pager{margin-left:auto; display:flex; align-items:center; gap:10px}

/* 좁은 화면 — 표를 카드로 (가로 스크롤 없이 한눈에) */
@media (max-width:640px){
  .cl-toolbar{gap:8px}
  .cl-search-wrap{min-width:0; flex-basis:100%}
  .cl-seg{width:100%}
  .cl-seg-btn{flex:1; padding:0 4px}
  .cl-kinds{margin-left:0; width:100%}
  .cl-kind{flex:1}
  .cl-list,.cl-list tbody{display:block; width:100% !important; min-width:0 !important}
  .cl-list thead{display:none}
  .cl-list tbody tr{display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px; row-gap:3px; padding:11px 14px 11px 22px; border-bottom:1px solid var(--hairline); position:relative}
  .cl-list tbody td{display:block; padding:0 !important; border:0 !important; max-width:none !important; min-width:0}
  .cl-list .cl-dotc{position:absolute; left:8px; top:17px}
  .cl-list .cl-namec{grid-column:1; grid-row:1}
  .cl-list .cl-dlc{grid-column:2; grid-row:1; text-align:right}
  .cl-list .cl-proj{grid-column:1 / -1; grid-row:2; white-space:normal}
  .cl-list .cl-ceoc{grid-column:1; grid-row:3; color:var(--muted)}
  .cl-list .cl-ceoc::before{content:"대표 "}
  .cl-list .cl-refc{display:none}
  .cl-list .cl-progc{grid-column:1 / -1; grid-row:4; margin-top:3px}
  .cl-list .cl-byc,.cl-list .cl-atc{display:none}
  .cl-list .cl-atc{grid-column:2; grid-row:3}
  .tbl-foot{flex-wrap:wrap}
}

/* ── 상세 드로어 ── */
.cl-drawer{position:absolute; top:0; right:0; bottom:0; width:1040px; max-width:100vw; background:var(--bg-app);
  border-left:1px solid var(--border); display:flex; flex-direction:column}
.cl-drawer .modal-head{background:#fff; border-bottom:var(--rule-drawer); padding:10px 16px}
.cl-back{font-size:12.5px; font-weight:700; color:var(--navy); padding:6px 8px; border-radius:var(--r)}
.cl-back:hover{background:var(--tint-navy)}
.cl-dsub{font-size:12.5px; color:var(--muted)}
.cl-dbody{flex:1; overflow-y:auto; padding:18px 22px 40px}
.cl-dbody > *{max-width:960px; margin-left:auto; margin-right:auto}

.cl-closed-bar{display:flex; align-items:center; gap:10px; padding:10px 14px; margin-bottom:12px; background:var(--st-db-bg);
  border:1px solid var(--border); border-radius:var(--r); font-size:12.5px; font-weight:600; color:var(--ink)}
.cl-closed-bar span{flex:1}

/* 머리 카드 — 네이비 */
.cl-hero{background:var(--navy); color:var(--on-navy); border-radius:var(--r); padding:18px 20px 14px; margin-bottom:14px}
.cl-hero.closed{background:#44506A}
.cl-hero-top{display:flex; gap:16px; align-items:flex-start}
.cl-hero-l{flex:1; min-width:0}
.cl-hero-name{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.cl-hero-name h1{font-size:22px; font-weight:800; letter-spacing:-.02em; line-height:1.3; word-break:keep-all}
.cl-hero-tag{font-size:11px; font-weight:700; background:rgba(255,255,255,.18); padding:1px 8px; border-radius:var(--r-badge)}
.cl-hero-proj{font-size:15px; font-weight:700; color:var(--on-navy-sub); margin-top:2px}
.cl-hero-meta{font-size:12.5px; color:var(--on-navy-sub); margin-top:8px}
.cl-hero-dl{color:#FFD58A; font-weight:700}
.cl-hero-sub{font-size:11px; color:var(--on-navy-label); margin-top:3px}
.cl-hero-r{display:flex; align-items:center; gap:6px; flex:0 0 auto}
.cl-hero-b{font-size:12.5px; font-weight:800; padding:4px 10px; border-radius:var(--r-badge); font-variant-numeric:tabular-nums}
.cl-hero-b.wait{background:#FBF2DC; color:var(--st-noreply-fg)}
.cl-hero-b.no{background:#FAECEC; color:var(--st-rejected-fg)}
.cl-hero-pct{font-size:22px; font-weight:800; background:rgba(255,255,255,.14); padding:4px 14px; border-radius:var(--r); font-variant-numeric:tabular-nums; min-width:74px; text-align:center}
.cl-hero-pct.ok{background:var(--st-done-bg); color:var(--st-done-fg)}
.cl-hero-acts{display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; align-items:center}
.cl-hero-gap{flex:1}
.btn.cl-hbtn{background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.28); color:#fff; font-weight:700}
.btn.cl-hbtn:hover:not(:disabled){background:rgba(255,255,255,.2); border-color:rgba(255,255,255,.5); color:#fff}
.btn.cl-hbtn.on{background:#fff; color:var(--navy); border-color:#fff}
.btn.cl-hbtn.danger{background:#fff; color:var(--st-rejected-fg); border-color:#fff}
.btn.cl-hbtn.danger:hover{background:var(--st-rejected-bg); color:var(--st-rejected-fg)}
.btn.cl-hbtn:last-child{background:#fff; color:var(--navy); border-color:#fff}
.btn.cl-hbtn:last-child:hover:not(:disabled){background:var(--tint-navy); color:var(--navy)}
.cl-hero-link{display:flex; align-items:center; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid rgba(255,255,255,.14); font-size:11px; color:var(--on-navy-label); min-width:0}
.cl-hero-link > span{white-space:nowrap; flex:0 0 auto}
.cl-hero-link code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:11px; color:var(--on-navy-sub); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cl-hero-link.off code{text-decoration:line-through; opacity:.7}

/* 정보 수정 */
.cl-info{background:#fff; border:1px solid var(--navy); border-radius:var(--r); padding:14px 16px; margin-bottom:14px}
.cl-info-h{font-size:12.5px; font-weight:800; color:var(--navy); margin-bottom:10px}
.cl-grid4{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 12px}
.cl-grid2{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px}
.cl-grid3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 12px}
.cl-info-ct{margin-top:12px; padding-top:12px; border-top:1px solid var(--hairline)}
.cl-warn{font-size:12.5px; font-weight:600; color:var(--st-noreply-fg); background:var(--st-noreply-bg); border-radius:var(--r); padding:8px 12px; margin-bottom:10px}
.cl-f{display:flex; flex-direction:column; gap:5px; min-width:0}
.cl-f-l{font-size:11px; font-weight:700; color:var(--label)}
.cl-f-l .req{font-style:normal; color:var(--st-rejected-fg)}
.cl-f .inp{height:36px}
.cl-info-ops{display:flex; justify-content:flex-end; gap:6px; margin-top:12px}

/* 항목 목록 */
.cl-items-bar{display:flex; align-items:center; gap:10px; margin:4px auto 8px}
.cl-items-cap{flex:1; font-size:12.5px; color:var(--label); font-weight:600}
.cl-items-cap b{color:var(--ink)}
.cl-items{display:flex; flex-direction:column; gap:8px}
.cl-item{background:#fff; border:1px solid var(--border); border-left:3px solid var(--border); border-radius:var(--r); padding:12px 14px}
.cl-item.ok{border-left-color:var(--st-done-fg)}
.cl-item.wait{border-left-color:#C9941A}
.cl-item.no{border-left-color:var(--st-rejected-fg)}
.cl-item.drop{box-shadow:0 -3px 0 var(--navy)}
.cl-item.dragging{opacity:.45}
.cl-item-head{display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.cl-item-head > b{font-size:15px; font-weight:700; margin-right:2px}
.cl-tag{font-size:11px; font-weight:700; padding:1px 7px; border-radius:var(--r-badge); background:var(--st-db-bg); color:var(--st-db-fg)}
.cl-tag.req{background:var(--tint-navy); color:var(--navy)}
.cl-tag.sens{background:var(--st-noreply-bg); color:var(--st-noreply-fg)}
.cl-tag.sec{background:#fff; border:1px solid var(--border); color:var(--label)}
.cl-state{margin-left:auto; font-size:12.5px; font-weight:800; color:var(--light)}
.cl-state.ok{color:var(--st-done-fg)}
.cl-state.wait{color:var(--st-noreply-fg)}
.cl-state.no{color:var(--st-rejected-fg)}
.cl-desc{font-size:12.5px; color:var(--body); white-space:pre-wrap; margin-top:5px}
.cl-optview{font-size:11px; margin-top:4px}
.cl-guides{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.cl-guide{display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 10px; border:1px solid var(--border-input); border-radius:var(--r-badge); font-size:12.5px; font-weight:600; color:var(--navy); background:#fff}
.cl-guide i{font-style:normal; font-size:11px; font-weight:800; color:var(--label)}
.cl-guide:hover{border-color:var(--navy); background:var(--tint-navy)}
.cl-sec-div{display:flex; align-items:center; gap:8px; font-size:11px; font-weight:800; color:var(--navy); letter-spacing:.04em; margin:10px 0 0}
.cl-sec-div::after{content:""; flex:1; height:1px; background:var(--border)}

/* 제출물 */
.cl-ups{margin-top:10px; display:flex; flex-direction:column; gap:4px}
.cl-up{display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:10px; padding:7px 10px; border-radius:var(--r); background:var(--surface-sub)}
.cl-up.wait{background:#FFFBEF}
.cl-up.no{background:#FDF6F6}
.cl-up.ok{background:#F5FBF6}
.cl-st{font-size:11px; font-weight:800; text-align:center; padding:2px 0; border-radius:var(--r-badge)}
.cl-st.wait{background:var(--st-noreply-bg); color:var(--st-noreply-fg)}
.cl-st.ok{background:var(--st-done-bg); color:var(--st-done-fg)}
.cl-st.no{background:var(--st-rejected-bg); color:var(--st-rejected-fg)}
.cl-up-main{display:flex; flex-direction:column; min-width:0}
.cl-fname{font-size:12.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; min-width:0; color:var(--ink)}
.cl-fname.link{color:var(--navy); text-decoration:underline; text-underline-offset:2px}
.cl-ans{font-size:12.5px; font-weight:600; white-space:pre-wrap; word-break:break-word; color:var(--ink)}
.cl-up-meta{font-size:11px}
.cl-acts{display:flex; gap:5px; justify-content:flex-end; flex-wrap:wrap}
.cl-acts .abtn{height:26px; font-size:11px}
.abtn.cl-no{color:var(--st-rejected-fg)}
.abtn.cl-no:hover{border-color:var(--st-rejected-fg); background:var(--st-rejected-bg); color:var(--st-rejected-fg)}
.abtn.cl-del{color:var(--muted); border-color:var(--border)}
.abtn.cl-del:hover{color:var(--st-rejected-fg); border-color:var(--st-rejected-fg)}
.cl-batch{display:flex; gap:6px; justify-content:flex-end; margin-top:8px}
.btn.cl-ok-solid{background:var(--st-done-fg); border-color:var(--st-done-fg); color:#fff; font-weight:700}
.btn.cl-ok-solid:hover{background:#156431; border-color:#156431; color:#fff}
.cl-reason{margin-top:6px; font-size:12.5px; color:var(--st-rejected-fg); background:var(--st-rejected-bg); border-radius:var(--r); padding:6px 10px}

/* 편집 모드 */
.cl-item.editing{padding:10px 12px}
.cl-e-head{display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.cl-e-head .inp{height:32px}
.cl-e-label{flex:1 1 200px; min-width:140px; font-weight:700}
.cl-e-type{width:96px; flex:0 0 auto}
.cl-e-sec{width:110px; flex:0 0 auto}
.cl-e-sec.has{border-color:var(--navy); color:var(--navy); font-weight:700}
.cl-grip{cursor:grab; color:var(--light); font-size:15px; padding:0 2px; user-select:none}
.cl-grip:active{cursor:grabbing}
.cl-mv{display:inline-flex; flex-direction:column; gap:1px}
.cl-mv-b{width:22px; height:15px; font-size:8px; line-height:1; border:1px solid var(--border); border-radius:3px; color:var(--label); background:#fff}
.cl-mv-b:hover:not(:disabled){border-color:var(--navy); color:var(--navy)}
.cl-tg{height:32px; padding:0 10px; border:1px solid var(--border-input); border-radius:var(--r); font-size:12.5px; font-weight:600; color:var(--muted); background:#fff; white-space:nowrap}
.cl-tg.req.on{background:var(--navy); border-color:var(--navy); color:#fff; font-weight:700}
.cl-tg.sens.on{background:var(--st-noreply-bg); border-color:#C9941A; color:var(--st-noreply-fg); font-weight:700}
.cl-x{width:28px; height:28px; border-radius:var(--r); color:var(--light); font-size:13px; flex:0 0 auto}
.cl-x:hover{background:var(--st-rejected-bg); color:var(--st-rejected-fg)}
.cl-e-body{display:flex; flex-direction:column; gap:6px; margin-top:8px}
.cl-e-row2{display:grid; grid-template-columns:140px minmax(0,1fr); gap:6px}
.cl-e-row2 .cl-e-sec{width:auto}
.cl-e-state{display:flex; justify-content:flex-end; margin-top:-2px}
.cl-e-state .cl-state{margin-left:0; font-size:11px}
.cl-opts{display:flex; flex-direction:column; gap:4px; padding:8px 10px; background:var(--surface-sub); border-radius:var(--r)}
.cl-opts-cap{font-size:11px; font-weight:700; color:var(--label)}
.cl-opt{display:flex; align-items:center; gap:6px}
.cl-opt .inp{height:30px}
.cl-opt-mark{color:var(--light); width:14px; text-align:center}
.cl-add-link{align-self:flex-start; margin-top:2px}
.cl-g-row{display:flex; align-items:center; gap:6px; min-width:0}
.cl-g-row .inp{height:30px}
.cl-g-row.temp{padding:6px; background:var(--tint-navy); border-radius:var(--r)}
.cl-g-kind{font-size:11px; font-weight:800; padding:2px 7px; border-radius:var(--r-badge); flex:0 0 auto}
.cl-g-kind.link{background:var(--tint-navy); color:var(--navy)}
.cl-g-kind.file{background:var(--st-done-bg); color:var(--st-done-fg)}
.cl-g-lab{width:150px; flex:0 0 150px}
.cl-g-url{flex:1; min-width:0}
.cl-g-file{flex:1; min-width:0; padding:4px 6px !important; font-size:11px !important}
.cl-g-txt{flex:1; min-width:0; font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cl-g-adds{display:flex; gap:14px}

/* 새 항목 추가 상자 */
.cl-newitem{background:var(--tint-navy); border:1px dashed #A9B9D6; border-radius:var(--r); padding:12px 14px; margin-top:10px; display:flex; flex-direction:column; gap:6px}
.cl-newitem-cap{font-size:12.5px; font-weight:800; color:var(--navy)}
.cl-newitem .inp{background:#fff}

/* 발송 이력 */
.cl-hist{background:#fff; border:1px solid var(--border); border-radius:var(--r); padding:12px 16px; margin-top:16px}
.cl-hist-h{font-size:12.5px; font-weight:800; color:var(--ink); margin-bottom:6px}
.cl-hist-h b{color:var(--navy)}
.cl-hist-r{display:grid; grid-template-columns:70px minmax(0,1fr) 90px 120px; gap:10px; align-items:center; padding:6px 0; border-top:1px solid var(--hairline); font-size:12.5px}
.cl-hist-ch{font-size:11px; font-weight:800; color:var(--navy); background:var(--tint-navy); border-radius:var(--r-badge); text-align:center; padding:1px 0}
.cl-hist-to{display:flex; gap:8px; min-width:0; overflow:hidden; white-space:nowrap}
.cl-hist-to .muted{overflow:hidden; text-overflow:ellipsis}
.cl-hist-at{text-align:right; font-size:11px}
.cl-hist-st{font-size:11px; font-weight:700}
.cl-hist-st.ok{color:var(--st-done-fg)}
.cl-hist-st.wait{color:var(--st-noreply-fg)}
.cl-hist-st.no{color:var(--st-rejected-fg)}
.cl-hist-by{font-size:11px}

/* 확인·반려 대화상자 */
.modal.cl-confirm{max-width:460px}
.cl-confirm-body{font-size:12.5px; color:var(--body); line-height:1.6; margin-bottom:6px}
.cl-confirm .cl-rj-chips{display:flex; flex-wrap:wrap; gap:5px; margin:8px 0}
.cl-rj-chip{font-size:11px; padding:3px 9px; border-radius:var(--r-badge); border:1px solid var(--border-input); background:#fff; color:var(--body); text-align:left}
.cl-rj-chip:hover{border-color:var(--st-rejected-fg); color:var(--st-rejected-fg)}
.cl-rj-ta{font-size:12.5px; resize:vertical; width:100%}
.btn.cl-danger-solid{background:var(--st-rejected-fg); border-color:var(--st-rejected-fg); color:#fff; font-weight:700}
.btn.cl-danger-solid:hover:not(:disabled){background:#861F23; border-color:#861F23; color:#fff}

/* ── 새 프로젝트 · 발송 모달 ── */
.overlay.cl-new-ov{padding:32px 16px}
.modal.cl-new,.modal.cl-send{max-width:680px; display:flex; flex-direction:column; overflow:visible}
.modal.cl-send{max-width:620px}
.cl-new-body{padding:4px 20px 8px}
.cl-new-sec{padding:16px 0; border-bottom:1px solid var(--hairline)}
.cl-new-sec:last-child{border-bottom:0}
.cl-new-sec h3,.cl-send-cap{display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:800; color:var(--ink); margin-bottom:10px; flex-wrap:wrap}
.cl-send-cap{margin:16px 0 8px}
.cl-send-cap:first-child{margin-top:12px}
.cl-new-sec h3 .cap-sub,.cl-send-cap .cap-sub{font-weight:600; color:var(--muted); font-size:11px}
.cl-num{display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:var(--navy); color:#fff; font-size:11px; font-weight:800}
.cl-new-foot{display:flex; align-items:center; gap:8px; padding:12px 20px; border-top:1px solid var(--border); background:var(--surface-sub); position:sticky; bottom:0; border-radius:0 0 var(--r) var(--r)}
.cl-send-res .cl-new-foot,.cl-send-form .cl-new-foot{margin:16px -20px -8px}
.cl-new-hint{flex:1; font-size:12.5px; font-weight:700; color:var(--st-noreply-fg)}
.cl-new-submit{min-width:120px; justify-content:center}
.cl-new-foot .btn{height:36px}

.cl-ac-wrap{position:relative}
.cl-ac{position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20; background:#fff; border:1px solid var(--border-input); border-radius:var(--r); max-height:260px; overflow-y:auto; box-shadow:0 8px 24px rgba(10,26,56,.12)}
.cl-ac-row{display:flex; flex-direction:column; align-items:flex-start; width:100%; padding:7px 12px; text-align:left; font-size:12.5px; border-bottom:1px solid var(--hairline)}
.cl-ac-row:hover{background:var(--tint-navy)}
.cl-ac-row .muted{font-size:11px}

.cl-tpl-wrap{position:relative}
.cl-tpl-btn{display:flex; align-items:center; gap:8px; width:100%; height:38px; padding:0 12px; border:1px solid var(--border-input); border-radius:var(--r); background:#fff; font-size:12.5px; text-align:left}
.cl-tpl-btn:hover{border-color:var(--navy)}
.cl-tpl-btn > span{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cl-caret{font-style:normal; color:var(--light)}
.cl-tpl-panel{position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20; background:#fff; border:1px solid var(--border-input); border-radius:var(--r); padding:8px; box-shadow:0 8px 24px rgba(10,26,56,.12)}
.cl-tpl-list{max-height:260px; overflow-y:auto; margin-top:6px}
.cl-tpl-row{display:flex; align-items:center; gap:8px; width:100%; padding:8px 10px; border-radius:5px; font-size:12.5px; text-align:left}
.cl-tpl-row b{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600}
.cl-tpl-row:hover{background:var(--surface-sub)}
.cl-tpl-row.on{background:var(--tint-navy)}
.cl-tpl-row.on b{color:var(--navy); font-weight:800}
.cl-tpl-case{font-size:11px; font-weight:700; color:var(--label); background:var(--st-db-bg); border-radius:var(--r-badge); padding:0 7px}
.cl-tpl-empty{padding:12px 10px; font-size:12.5px; color:var(--muted)}
.cl-tpl-prev{margin-top:10px; padding:10px 12px; background:var(--surface-sub); border:1px solid var(--hairline); border-radius:var(--r); font-size:12.5px}
.cl-tpl-prev-h b{color:var(--navy)}
.cl-tpl-prev-l{list-style:none; margin:6px 0 2px; display:flex; flex-direction:column; gap:2px}
.cl-tpl-prev-l li{display:flex; gap:6px; align-items:baseline}
.cl-tpl-prev-l i{font-style:normal; color:var(--light); font-size:11px}
.cl-tpl-prev-l li.req i{color:var(--navy)}
.cl-e-list{display:flex; flex-direction:column; gap:6px; margin-top:10px}
.cl-e-list:empty{display:none}
.cl-e-card{border:1px solid var(--border); border-radius:var(--r); padding:10px 12px; background:#fff}

/* 발송 */
.cl-kind-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px}
.cl-kind-b{display:flex; flex-direction:column; align-items:flex-start; gap:1px; padding:9px 12px; border:1px solid var(--border-input); border-radius:var(--r); background:#fff; text-align:left}
.cl-kind-b b{font-size:12.5px; font-weight:700}
.cl-kind-b span{font-size:11px; color:var(--muted)}
.cl-kind-b.on{border-color:var(--navy); background:var(--tint-navy)}
.cl-kind-b.on b{color:var(--navy); font-weight:800}
.cl-rc-list{display:flex; flex-direction:column; gap:6px}
.cl-rc{display:grid; grid-template-columns:150px minmax(0,1fr) 28px; gap:8px; align-items:center; padding:8px 10px; border:1px solid var(--border); border-radius:var(--r); background:#fff}
.cl-rc.on{border-color:var(--navy)}
.cl-rc-who{display:flex; align-items:center; gap:8px; min-width:0}
.cl-rc-who input[type=checkbox]{accent-color:var(--navy); width:16px; height:16px; flex:0 0 auto}
.cl-rc-who span{display:flex; flex-direction:column; min-width:0}
.cl-rc-who b{font-size:12.5px}
.cl-rc-who i{font-style:normal; font-size:11px; color:var(--muted)}
.cl-rc-who .inp{height:32px}
.cl-rc-ct{display:grid; grid-template-columns:1fr 1fr; gap:6px}
.cl-rc-ct .inp{height:32px}
.cl-msg{width:100%; font-size:12.5px; line-height:1.65; resize:vertical}
.cl-send-sum{flex:1; font-size:11px; color:var(--st-noreply-fg); font-weight:700}
.cl-send-btn{min-width:140px; justify-content:center}
.cl-send-res{padding:12px 0 8px}
.cl-send-res-h{font-size:12.5px; font-weight:800; margin-bottom:8px}
.cl-send-res-r{display:flex; gap:12px; align-items:center; padding:7px 0; border-top:1px solid var(--hairline); font-size:12.5px; flex-wrap:wrap}
.cl-send-res-r .good{color:var(--st-done-fg); font-weight:700}
.cl-send-res-r .bad{color:var(--st-rejected-fg); font-weight:700}

/* ── 좁은 화면 ── */
@media (max-width:920px){
  .cl-grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .cl-drawer .modal-head{padding:8px 10px}
  .cl-dbody{padding:12px 12px 32px}
  .cl-hero{padding:14px 14px 12px}
  .cl-hero-top{flex-direction:column; gap:10px}
  .cl-hero-name h1{font-size:15px}
  .cl-hero-proj{font-size:12.5px}
  .cl-hero-pct{font-size:15px; min-width:56px}
  .cl-hero-gap{display:none}
  .cl-hero-acts{display:grid; grid-template-columns:1fr 1fr; gap:6px}
  .cl-hero-acts .btn{justify-content:center; height:38px}
  .cl-grid4,.cl-grid2,.cl-grid3{grid-template-columns:1fr}
  .cl-item{padding:10px 12px}
  .cl-item-head > b{font-size:12.5px; flex-basis:100%}
  .cl-state{margin-left:0}
  .cl-up{grid-template-columns:40px minmax(0,1fr); row-gap:6px}
  .cl-acts{grid-column:1 / -1; justify-content:flex-start}
  .cl-acts .abtn{height:32px; padding:0 12px}
  .cl-batch .btn{flex:1; justify-content:center; height:34px}
  .cl-e-label{flex-basis:100%; order:-1}
  .cl-grip{display:none}
  .cl-e-row2{grid-template-columns:1fr}
  .cl-e-type{flex:1}
  .cl-e-sec{flex:1}
  .cl-g-row{flex-wrap:wrap}
  .cl-g-lab{flex:1 1 100%; width:auto}
  .cl-hist-r{grid-template-columns:56px minmax(0,1fr); row-gap:2px}
  .cl-hist-by,.cl-hist-at{grid-column:2; text-align:left}
  .overlay.cl-new-ov{padding:0}
  .modal.cl-new,.modal.cl-send{max-width:none; min-height:100%; border-radius:0}
  .cl-new-body{padding:0 14px 8px}
  .cl-new-foot{padding:10px 14px}
  .cl-send-res .cl-new-foot,.cl-send-form .cl-new-foot{margin:16px -14px -8px}
  .cl-kind-grid{grid-template-columns:1fr}
  .cl-rc{grid-template-columns:minmax(0,1fr) 28px}
  .cl-rc-who{grid-column:1}
  .cl-rc-ct{grid-column:1 / -1; grid-template-columns:1fr}
  .cl-rc-sp{display:none}
  .cl-rc .cl-x{grid-column:2; grid-row:1}
  .cl-f .inp,.cl-e-head .inp,.cl-rc .inp,.cl-msg,.cl-search{font-size:16px}   /* iOS 확대 방지 */
}

/* 등록 뒤 일부 항목 실패 (재시도) */
.cl-fail{margin:14px 0 0; padding:10px 14px; border:1px solid var(--st-rejected-fg); background:var(--st-rejected-bg); border-radius:var(--r); font-size:12.5px; color:var(--st-rejected-fg); display:flex; flex-direction:column; gap:4px}
.cl-fail ul{margin:0 0 0 18px}
.cl-fail span{color:var(--body)}
.cl-new-sec input:disabled,.cl-tpl-btn:disabled{background:var(--surface-sub); color:var(--muted)}

/* 필요서류 링크(경정청구 등)를 자료수집 관리에서 열 때 — 일반 자료수집 상세 드로어와 같은 크기·테두리 (2026-09-30) */
.modal.doclink-modal.cl-sheet{width:1040px; max-width:100vw; border-left:1px solid var(--border); --side-w:340px}
@media (max-width:1320px){ .modal.doclink-modal.cl-sheet{width:100vw} }

/* ── 필요서류 링크를 자료수집 상세로 (2026-09-30) — 1차/2차 탭 · 섹션 줄 · 템플릿 선택 ── */
.cl-stages{display:inline-flex; gap:2px; background:var(--hairline); padding:2px; border-radius:var(--r); margin-left:auto}
.cl-stages:empty{display:none}
.cl-stage{height:28px; padding:0 14px; border-radius:5px; font-size:12.5px; font-weight:600; color:var(--label)}
.cl-stage:hover{color:var(--navy)}
.cl-stage.on{background:#fff; color:var(--navy); font-weight:800; box-shadow:0 0 0 1px var(--border)}
.cl-stage.none{color:var(--light)}
.cl-stage.none.on{color:var(--navy)}
.cl-stages:not(:empty) + .x{margin-left:8px}

.cl-sec-div.doc{letter-spacing:0; font-size:12.5px; margin:14px 0 0; gap:8px}
.cl-sec-div.doc:first-child{margin-top:2px}
.cl-sec-div.doc.lv2{padding-left:14px}
.cl-sec-tag{flex:0 0 auto; font-size:11px; font-weight:800; padding:1px 8px; border-radius:var(--r-badge); background:var(--tint-navy); color:var(--navy)}
.cl-sec-tag.corp{background:var(--navy); color:#fff}
.cl-sec-tag.y{background:#fff; border:1px solid var(--border); color:var(--label)}
.cl-sec-name{font-weight:800; color:var(--ink); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cl-sec-cnt{flex:0 0 auto; font-size:11px; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; order:9}
.cl-sec-div.doc::after{order:8}
.cl-sec-div.doc .abtn{order:10; height:26px; font-size:11px}
.cl-sec-pre{flex:0 0 auto; font-weight:700; color:var(--label)}
.cl-sec-inp{height:30px; width:260px; max-width:48%; font-weight:700; color:var(--navy)}
.cl-sec-desc{font-size:11px; color:var(--muted); margin:2px 0 0; padding-left:2px}
.cl-sec-div.lv2 + .cl-sec-desc{padding-left:16px}

.cl-items-bar.doc{flex-wrap:wrap}
.cl-req-sel{height:30px; font-size:12.5px; max-width:260px}
.cl-tpl-sel{position:relative}
.cl-tpl-open{max-width:300px; gap:6px}
.cl-tpl-open-name{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0}
.cl-caret{color:var(--muted); font-size:12.5px; line-height:1}
.cl-tpl-open.on{border-color:var(--navy); color:var(--navy)}
.cl-tpl-menu{position:absolute; right:0; top:calc(100% + 4px); z-index:30; width:360px; max-width:calc(100vw - 24px); max-height:320px; overflow-y:auto;
  background:#fff; border:1px solid var(--border); border-radius:var(--r); box-shadow:0 8px 24px rgba(20,30,50,.14); padding:4px}
.cl-tpl-menu-cap{font-size:11px; color:var(--muted); padding:6px 8px}
.cl-tpl-menu-row{display:flex; align-items:center; gap:6px; width:100%; text-align:left; padding:8px; border-radius:5px; font-size:12.5px}
.cl-tpl-menu-row b{font-weight:700; color:var(--ink); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cl-tpl-menu-row:hover{background:var(--tint-navy)}
.cl-tpl-menu-row.on{background:var(--surface-sub)}
.cl-tpl-cur{margin-left:auto; font-size:11px; font-weight:800; color:var(--navy)}

.cl-tpick{display:flex; flex-direction:column; gap:8px}
.cl-tpick-row{display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--border); border-left:3px solid var(--border); border-radius:var(--r); padding:12px 14px}
.cl-tpick-main{flex:1; min-width:0; display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.cl-tpick-main b{font-size:15px; font-weight:700; margin-right:2px}
.cl-tpick-main .muted{font-size:11px}

@media (max-width:640px){
  .cl-stages{order:3; width:100%; margin-left:0}
  .cl-stage{flex:1}
  .cl-drawer .modal-head .x{margin-left:auto}
  .cl-items-bar.doc .cl-items-cap{flex-basis:100%}
  .cl-items-bar.doc > *:not(.cl-items-cap){flex:1 1 auto}
  .cl-req-sel{max-width:none; width:100%; flex-basis:100%; font-size:16px}
  .cl-tpl-sel{flex:1 1 60%; min-width:0}
  .cl-tpl-open{max-width:none; width:100%; justify-content:space-between}
  .cl-tpl-menu{left:0; right:auto; width:calc(100vw - 24px)}
  .cl-sec-div.doc{flex-wrap:wrap; row-gap:6px}
  .cl-sec-div.doc.lv2{padding-left:0}
  .cl-sec-inp{max-width:none; width:auto; flex:1 1 100%; order:2; font-size:16px}
  .cl-sec-div.doc::after{display:none}
  .cl-sec-cnt{order:3}
  .cl-tpick-row{flex-wrap:wrap}
  .cl-tpick-row .btn{flex:1; justify-content:center; height:36px}
}
