.company-reference-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(145px, 1fr)) auto;
  gap: 9px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfafc;
}
.company-reference-filters input,
.company-reference-filters select { min-width: 0; }
.company-reference-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.company-reference-actions label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.company-reference-actions input { width: auto; }
.company-reference-row.reference-selected { box-shadow: inset 3px 0 var(--violet); }
.reference-no-photo { width: 88px; height: 62px; display: grid; place-items: center; border-radius: 7px; background: var(--bg); color: var(--muted); font-size: 10px; }
.reference-photo-editor { padding-top: 12px; border-top: 1px solid var(--line); }
.reference-photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.reference-photo-slots label { min-height: 118px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border: 1px dashed #cfcbd5; border-radius: 9px; background: #fbfafc; cursor: pointer; overflow: hidden; }
.reference-photo-slots img { width: 100%; height: 82px; object-fit: cover; }
.reference-photo-slots input { width: 1px; height: 1px; opacity: 0; position: absolute; }
.reference-photo-slots small { color: var(--violet); font-weight: 700; }
.reference-editor-actions { margin-top: 14px; }
.danger-text { color: var(--danger); }
.danger-outline { color: var(--danger); border-color: #efc9ce; }
@media(max-width:1000px){.company-reference-filters{grid-template-columns:repeat(2,1fr)}.company-reference-filters input{grid-column:1/-1}}
@media(max-width:620px){.company-reference-filters{grid-template-columns:1fr}.company-reference-filters input{grid-column:auto}.reference-photo-slots{grid-template-columns:1fr}.company-reference-actions{grid-column:1/-1;justify-content:flex-start}}
.company-photo-library .card-head { margin-bottom: 20px; }
.company-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.company-photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.company-photo-grid img { width: 100%; height: 190px; object-fit: cover; display: block; }
.company-photo-grid figcaption { padding: 13px; }
.company-photo-grid figcaption strong,.company-photo-grid figcaption small { display: block; }
.company-photo-grid figcaption small { color: var(--muted); margin-top: 4px; }
.company-photo-grid figcaption p { font-size: 12px; color: var(--muted); }
@media(max-width:900px){.company-photo-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.company-photo-grid{grid-template-columns:1fr}}
