.contact-workspace { max-width: 1440px; margin: 0 auto; }
.contact-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.contact-heading h1 { margin: 0 0 8px; font-size: 24px; }
.contact-heading p { margin: 0; }
.contact-heading > button { flex-shrink: 0; white-space: nowrap; }
.contact-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; }
.contact-filters label { display: grid; gap: 6px; font-size: 13px; }
.contact-filters label > input { border: 1px solid #d9e0e9; border-radius: 8px; padding: 9px; background: #fff; min-width: 110px; max-width: 240px; }
.contact-filters .combo-control { min-width: 130px; }
.contact-filters .date-control { width: 180px; height: 42px; }
.contact-filters .date-entry, .contact-filters .date-button { height: 42px; }
.contact-table-scroll { overflow-x: auto; border: 1px solid #e1e7ef; border-radius: 12px; background: white; }
.contact-table { width: 100%; border-collapse: collapse; text-align: left; }
.contact-table th, .contact-table td { padding: 12px 16px; border-bottom: 1px solid #eef1f5; vertical-align: top; min-width: 90px; max-width: 450px; overflow-wrap: anywhere; }
.contact-table th { background: #f6f8fc; white-space: nowrap; }
.contact-table td { white-space: pre-wrap; }
.contact-link { background: transparent; color: #2659b6; border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer; }
.contact-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.contact-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.contact-detail-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.contact-detail-toolbar > span { font-size: 12px; }
.contact-card { min-width: 0; padding: 20px; background: #fff; border: 1px solid #e1e7ef; border-radius: 12px; }
.contact-card h3 { margin: 0 0 12px; font-size: 15px; }
.contact-card h3 > span { margin-left: 6px; font-size: 12px; font-weight: 400; }
.contact-card p { margin: 0; }
.contact-summary { margin-bottom: 16px; }
.contact-summary-title { display: flex; align-items: center; gap: 12px; }
.contact-summary-title h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.contact-status, .contact-kind { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #f0f3f8; color: #536277; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.contact-status[data-status="1"] { color: #946000; background: #fff5da; }
.contact-status[data-status="2"] { color: #21724b; background: #eaf7ef; }
.contact-status[data-status="3"] { color: #b13b37; background: #fff0ee; }
.contact-kind { color: #2659b6; background: #edf4ff; }
.contact-summary-fields { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1.3fr; gap: 20px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #eef1f5; }
.contact-summary-fields > div { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.contact-summary-fields dt { flex-shrink: 0; color: #748298; font-size: 12px; }
.contact-summary-fields dd { margin: 0; overflow-wrap: anywhere; }
.contact-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.contact-detail-main { display: grid; gap: 16px; min-width: 0; }
.contact-card .contact-section-heading { margin-top: 24px; }
.contact-materials { table-layout: fixed; }
.contact-materials th, .contact-materials td { min-width: 0; padding: 10px 12px; line-height: 1.65; }
.contact-materials tr:last-child td { border-bottom: 0; }
.contact-flow { list-style: none; padding: 0 0 0 6px; margin: 16px 0 0; }
.contact-flow > li { position: relative; padding: 0 0 20px 18px; border-left: 2px solid #dce6f5; }
.contact-flow > li::before { content: ''; position: absolute; left: -5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #7f9dc9; }
.contact-flow > li:last-child { padding-bottom: 0; border-color: transparent; }
.contact-node-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.contact-node-title > strong { font-size: 12px; color: #748298; font-weight: 500; flex-shrink: 0; }
.contact-node-person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; }
.contact-node-person > span { color: #748298; font-size: 12px; }
.contact-node-person > time { width: 100%; font-size: 12px; }
.contact-node-person > p { width: 100%; padding: 8px 10px; background: #f6f8fc; border-radius: 6px; margin-top: 4px; }
.contact-notify { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef1f5; }
.contact-notify > .muted { margin-top: 8px; font-size: 12px; line-height: 1.6; }
.contact-card .contact-pending { padding: 10px 12px; background: #edf4ff; color: #2659b6; border-radius: 6px; line-height: 1.6; }
.contact-files { padding: 0; margin: 0; list-style: none; }
.contact-files li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.contact-files li:first-child { padding-top: 0; }
.contact-files li:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-file-info { flex: 1; min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.contact-file-actions { display: flex; gap: 8px; flex-shrink: 0; max-width: 45%; }
.contact-comments article + article { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef1f5; }
.contact-comments time { margin-left: 12px; font-size: 12px; }
.contact-comments article > p { margin-top: 6px; }
.contact-warning { color: #9a5800; font-size: 13px; }
@media (max-width: 600px) {
  .contact-heading { align-items: flex-start; }
  .contact-heading h1 { font-size: 21px; }
  .contact-filters label { flex: 1 1 140px; min-width: 0; }
  .contact-filters label > input, .contact-filters .combo-control { width: 100%; max-width: none; min-width: 0; box-sizing: border-box; }
  .contact-table { min-width: 680px; }
}
