.dit-profile-host, .dit-integrated-profile { min-width: 0; max-width: 100%; }
.dit-profile-host:empty { display: none; }
.dit-profile-search .actions input { min-width: min(420px, 100%); }
.dit-profile-heading { align-items: flex-start; }
.dit-profile-statuses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.dit-profile-status { min-width: 0; padding: 10px 12px; border: 1px solid #cdd9e8; border-radius: 8px; background: #fff; }
.dit-profile-status strong, .dit-profile-status small { display: block; overflow-wrap: anywhere; }
.dit-profile-status small { margin-top: 4px; color: #66758b; }
.dit-profile-status.done { border-color: #90c8b0; background: #f2fbf7; }
.dit-profile-tabs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 14px 0;
  padding: 6px;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  background: #eef4fb;
  scrollbar-width: thin;
}
.dit-profile-tabs button {
  flex: 0 0 auto;
  width: auto !important;
  min-width: max-content !important;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  background: transparent;
  color: #52647c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.dit-profile-tabs button:hover { border-color: #c8d8e9; background: #fff; color: #174b8f; }
.dit-profile-tabs button.active {
  border-color: #174b8f;
  background: #174b8f;
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 75, 143, .18);
}
.dit-profile-tabs button:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
.dit-profile-section[hidden] { display: none !important; }
.dit-profile-section { padding-top: 4px; }
.dit-profile-section h3:not(:first-child) { margin-top: 22px; }
.dit-profile-form { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #d9e2ec; }
.dit-profile-form textarea { width: 100%; min-height: 132px; resize: vertical; }
.dit-profile-author { margin: -4px 0 14px; }
.dit-profile-note-form { width: 100%; }
.dit-profile-note-field { display: grid; width: 100%; gap: 7px; }
.dit-profile-note-form textarea { min-height: 190px; }
.dit-profile-note-actions { width: 100%; justify-content: flex-end; align-items: end; margin-top: 12px; }
.dit-profile-visibility-field { display: grid; gap: 6px; min-width: 220px; }
.dit-profile-name-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dit-profile-actions { margin-top: 10px; }
.dit-integrated-profile a.table-view-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 760px) {
  .dit-profile-statuses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dit-profile-search .actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .dit-profile-search .actions input { min-width: 0; width: 100%; }
  .dit-profile-search .table-wrap table, .dit-profile-section .table-wrap table { min-width: 680px; }
  .dit-profile-search td:nth-child(2) { min-width: 170px; overflow-wrap: normal; word-break: keep-all; }
  .dit-profile-tabs { margin-inline: -2px; }
  .dit-profile-tabs button { min-height: 38px; padding-inline: 12px; font-size: 13px; }
  .dit-profile-note-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .dit-profile-visibility-field { min-width: 0; }
}
