/* 小微车服 · 客户档案附件区 20261028custAttachM · 手机优先 */
.cd-entry .tool-entry-title { font-weight: 600; }
.cd-pane { padding-bottom: 28px; }
.cd-nav { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cd-sec { margin: 4px 0 6px; font-size: 18px; }
.cd-dedup { color: var(--muted, #6b7280); font-size: 12px; margin: 0 0 12px; line-height: 1.45; }
.cd-list { display: flex; flex-direction: column; gap: 8px; }
.cd-card {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line, #e5e7eb); background: #fff; cursor: pointer;
  min-height: 56px;
}
.cd-card-pending { border-color: #fdba74; background: #fff7ed; }
.cd-card .cd-name { font-weight: 600; font-size: 16px; }
.cd-card .cd-meta { font-size: 12px; color: var(--muted, #6b7280); margin-top: 4px; }
.cd-kind {
  background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 12px;
  padding: 12px; margin: 0 0 10px;
}
.cd-kind-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cd-kind-h b { font-size: 15px; }
.cd-up {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 12px; border-radius: 8px; background: #111827; color: #fff;
  font-size: 14px; cursor: pointer;
}
.cd-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.cd-doc {
  border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: #fff;
  overflow: hidden; cursor: pointer; padding: 0; text-align: left; width: 100%;
}
.cd-doc img, .cd-doc .cd-ph {
  width: 100%; height: 160px; object-fit: cover; display: block; background: #f3f4f6;
}
.cd-doc .cd-ph { display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 13px; }
.cd-doc .cd-cap { padding: 8px 10px 0; font-size: 12px; }
.cd-doc .cd-cap b { display: block; margin-bottom: 2px; word-break: break-all; }
.cd-doc-actions { display: flex; gap: 8px; padding: 8px 10px 10px; }
.cd-doc-actions .ghost { min-height: 36px; }
.cd-docs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cd-lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.82);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px;
}
.cd-lightbox.hidden { display: none; }
.cd-lightbox img, .cd-lightbox iframe {
  width: 92vw; max-width: 92vw; max-height: 78vh; background: #111; border-radius: 8px;
}
.cd-lightbox iframe { height: 78vh; border: 0; }
.cd-lightbox .cd-lb-bar {
  color: #fff; display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap;
}
.cd-lightbox .cd-dl { color: #fff; font-size: 16px; }
.cd-empty { color: var(--muted, #6b7280); padding: 8px 0; margin: 0; }
.cd-search { width: 100%; margin: 0 0 10px; box-sizing: border-box; min-height: 40px; }
.cd-admin-wrap .cd-docs { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.cd-overlay-sheet {
  position: fixed; inset: 0; z-index: 70; background: #f6f7fb; overflow: auto;
  padding: 12px 14px 28px;
}
.cd-overlay-sheet.hidden { display: none; }
.cd-match {
  position: fixed; inset: 0; z-index: 120; background: rgba(15,23,42,.55);
  display: flex; align-items: flex-end; justify-content: center;
}
.cd-match.hidden { display: none; }
.cd-match-card {
  width: 100%; max-width: 520px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 16px 16px 22px; box-sizing: border-box; max-height: 86vh; overflow: auto;
}
.cd-match-card h3 { margin: 0 0 8px; font-size: 18px; }
.cd-match-note { font-size: 13px; margin: 0 0 10px; }
.cd-match-hits { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.cd-hit {
  text-align: left; padding: 12px; border-radius: 10px; border: 1px solid #e5e7eb;
  background: #fff; min-height: 44px; font-size: 16px;
}
.cd-match-actions { display: flex; }
.cd-match-actions .ghost { flex: 1; min-height: 44px; }
@media (min-width: 840px) {
  .cd-match { align-items: center; }
  .cd-match-card { border-radius: 16px; }
}
