/* Contacts inherit the company palette; small screens use full contact cards. */
#contactsWorkspace { min-width:0; --contacts-accent:var(--company-accent,#6055df); }
.contacts-app {max-width:1480px;margin:0 auto;color:var(--ink,#273149)}
.contacts-header {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.contacts-header h1 {font-size:27px;line-height:1.35;font-weight:600;margin:0 0 6px}
.contacts-header p {margin:0;color:var(--muted,#56627a);font-size:14px}
.contacts-app svg {width:18px;height:18px;flex:none}
.contacts-app .contacts-refresh {gap:8px;min-height:40px}
.contacts-layout {display:grid;grid-template-columns:214px minmax(0,1fr);gap:20px;align-items:start}
.contacts-departments {padding:18px 10px;border:1px solid var(--line,#dde3f0);border-radius:16px;background:rgba(255,255,255,.68);max-height:calc(100vh - 275px);overflow:auto}
.contacts-departments h2 {margin:0 12px 12px;font-size:14px;font-weight:600}
.contacts-departments button {width:100%;display:flex;align-items:center;text-align:left;justify-content:space-between;gap:10px;border-radius:9px;min-height:44px;padding:10px 12px;background:transparent;color:var(--ink-2,#485572);font-size:14px}
.contacts-departments button+button {margin-top:3px}
.contacts-departments button span {min-width:0;overflow-wrap:anywhere}
.contacts-departments button em {display:block;font-size:11px;font-style:normal;color:var(--muted,#56627a);margin-top:3px}
.contacts-departments button small {font-size:12px;color:var(--muted,#56627a);font-variant-numeric:tabular-nums;flex:none}
.contacts-departments button:hover {background:rgba(96,85,223,.05)}
.contacts-departments button.is-active {background:var(--company-soft,#eeedff);color:var(--contacts-accent);font-weight:600}
.contacts-directory {min-width:0;border:1px solid var(--line,#dde3f0);border-radius:16px;background:rgba(255,255,255,.88);overflow:hidden;scroll-margin-top:120px}
.contacts-filters {padding:20px 22px 16px}
.contacts-search {min-height:44px;display:flex;align-items:center;gap:10px;border:1px solid #dce1ec;border-radius:9px;background:#fff;padding:0 13px;max-width:640px;color:var(--muted,#56627a)}
.contacts-search:focus-within {border-color:var(--contacts-accent);box-shadow:inset 0 0 0 1px var(--contacts-accent)}
.contacts-search input {background:transparent;min-width:0;width:100%;height:44px;border:0;outline:0;font-size:14px;color:var(--ink,#273149)}
body.factory-shell .contacts-search input {flex:1 1 0;width:0;min-width:0;background:transparent;border:0;box-shadow:none;outline:none;padding:0;border-radius:0}
.contacts-search input::placeholder {color:#6f7a90}
.contacts-mobile-filter {display:none}
.contacts-result-head {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:3px 22px 16px}
.contacts-result-head h2 {margin:0;font-size:16px;font-weight:600}
.contacts-result-head h2 span {font-weight:400;font-size:13px;margin-left:8px;color:var(--muted,#56627a)}
.contacts-query-note {font-size:12px;color:var(--muted,#56627a)}
.contacts-table-wrap {overflow-x:auto}
.contacts-table {width:100%;border-collapse:collapse;text-align:left;table-layout:fixed;font-size:14px}
.contacts-table thead {background:#f6f7fb}
.contacts-table th,.contacts-table td {padding:15px 14px;border-bottom:1px solid #edf0f6;vertical-align:middle;overflow-wrap:anywhere;line-height:1.6}
.contacts-table thead th {font-size:13px;font-weight:500;color:var(--muted,#56627a);padding-top:11px;padding-bottom:11px}
.contacts-table th:first-child,.contacts-table td:first-child {padding-left:22px;width:17%}
.contacts-table th:nth-child(2) {width:13%;font-weight:500}
.contacts-table th:nth-child(3) {width:17%}
.contacts-table th:nth-child(4) {width:12%}
.contacts-table th:nth-child(5) {width:14%}
.contacts-table th:nth-child(6) {width:27%}
.contacts-table tbody tr:last-child>* {border-bottom:0}
.contacts-table tbody tr:hover {background:#fafaff}
.contacts-name {font-weight:600;color:var(--ink,#273149)}
.contacts-dept-name {color:var(--ink-2,#485572)}
.contacts-value {display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0}
.contacts-value>a,.contacts-value>span {overflow-wrap:anywhere;min-width:0}
.contacts-app .contacts-value>a {color:var(--contacts-accent);text-decoration:none;text-underline-offset:3px}
.contacts-app .contacts-value>a:hover {text-decoration:underline}
.contacts-copy {display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#68768c;flex:none;width:28px;height:32px;border-radius:6px;padding:4px;opacity:.35}
.contacts-copy svg {width:14px;height:14px}
.contacts-copy:hover,.contacts-copy:focus-visible,.contacts-table tr:hover .contacts-copy {opacity:1;background:var(--company-soft,#eeedff)}
.contacts-missing {color:#8992a3}
.contacts-pagination {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 22px;border-top:1px solid var(--line,#dde3f0);font-size:12px;color:var(--muted,#56627a)}
.contacts-pagination>div {display:flex;align-items:center;gap:12px}
.contacts-pagination button {min-height:34px;padding:4px 10px;background:white;border:1px solid var(--line,#dde3f0);border-radius:7px;color:var(--ink-2,#485572);font-size:12px}
.contacts-pagination button:disabled {opacity:.4;cursor:default}
.contacts-footnote {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 22px;background:#fafbfe;border-top:1px solid #edf0f6;color:var(--muted,#56627a);font-size:12px}
.contacts-empty {padding:58px 24px;text-align:center;color:var(--muted,#56627a)}
.contacts-empty>svg {width:36px;height:36px;color:#8895ab;margin-bottom:8px}
.contacts-empty h2 {font-size:17px;font-weight:500;margin:8px 0;color:var(--ink,#273149)}
.contacts-empty p {font-size:14px;margin:8px auto 18px;max-width:420px}
.contacts-error {margin:0 22px 16px;background:#fff7e8;color:#805c25;border:1px solid #efdfbc;border-radius:8px;padding:10px 12px;font-size:13px}
.contacts-feedback {position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:80;max-width:calc(100vw - 32px);background:#273149;color:white;box-shadow:0 4px 16px #27314920;border-radius:9px;padding:12px 18px;font-size:13px;pointer-events:none}
.contacts-feedback:empty {display:none}
@media(min-width:761px) and (max-width:1100px) {
  .contacts-layout {grid-template-columns:175px minmax(0,1fr);gap:14px}
  .contacts-table th,.contacts-table td {padding-left:9px;padding-right:9px;font-size:13px}
  .contacts-table th:first-child,.contacts-table td:first-child {padding-left:16px}
  .contacts-copy {width:22px;padding:2px}
}
@media(max-width:760px) {
  .contacts-header {margin-bottom:16px;align-items:center;gap:12px}
  .contacts-header h1 {font-size:23px}
  .contacts-header p {font-size:13px}
  .contacts-app .contacts-refresh {font-size:12px;padding:0 10px;gap:6px;min-height:38px}
  .contacts-layout {display:block}
  .contacts-departments {display:none}
  .contacts-directory {border-radius:14px}
  .contacts-filters {padding:16px 16px 10px}
  .contacts-search {padding:0 10px;gap:7px}
  .contacts-search input {font-size:16px}
  .contacts-search input::placeholder {font-size:12px}
  .contacts-mobile-filter {display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted,#56627a);margin-top:12px}
  .contacts-mobile-filter>span {flex:none}
  .contacts-mobile-filter select {height:40px;width:100%;min-width:0;border:1px solid var(--line,#dde3f0);border-radius:8px;padding:0 10px;background:white;color:var(--ink,#273149);font-size:16px}
  .contacts-result-head {padding:14px 16px;font-size:14px;align-items:baseline}
  .contacts-result-head h2 {font-size:15px}
  .contacts-query-note {font-size:11px;white-space:nowrap}
  .contacts-cards {padding:0 12px 12px;display:grid;gap:10px}
  .contacts-person {padding:16px;border:1px solid var(--line,#dde3f0);border-radius:10px;background:white;min-width:0}
  .contacts-person header {display:flex;gap:11px;align-items:center}
  .contacts-avatar {display:grid;place-items:center;width:40px;height:40px;background:var(--company-soft,#eeedff);color:var(--contacts-accent);border-radius:12px;font-size:17px;flex:none}
  .contacts-person header>div {min-width:0}
  .contacts-person h2 {font-size:17px;font-weight:600;margin:0;overflow-wrap:anywhere}
  .contacts-person header p {font-size:13px;color:var(--muted,#56627a);margin:2px 0 0;overflow-wrap:anywhere}
  .contacts-person-dept {margin:12px 0 10px;font-size:12px;color:var(--muted,#56627a);overflow-wrap:anywhere;padding-bottom:11px;border-bottom:1px solid #edf0f6}
  .contacts-person dl {margin:0;display:grid;gap:5px}
  .contacts-person dl>div {display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;min-height:36px}
  .contacts-person dt {font-size:13px;color:var(--muted,#56627a)}
  .contacts-person dd {font-size:15px;margin:0;min-width:0}
  .contacts-value {width:100%;justify-content:space-between;gap:8px}
  .contacts-value>a {padding:6px 0}
  .contacts-copy {opacity:1;width:36px;height:36px;background:#f5f6fb}
  .contacts-copy svg {width:16px;height:16px}
  .contacts-pagination {padding:12px;gap:10px;flex-wrap:wrap}
  .contacts-pagination>div {gap:9px;margin-left:auto}
  .contacts-pagination button {min-height:40px}
  .contacts-footnote {padding:12px 16px;font-size:11px;flex-wrap:wrap;gap:5px}
  .contacts-empty {padding:40px 20px}
  .contacts-error {margin-left:16px;margin-right:16px}
}
