.staff-link-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(180px, .8fr) auto;
  align-items: start;
}

.staff-link-form > label {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.staff-link-form > button {
  margin-top: 25px;
}

.staff-link-form > .wide {
  grid-column: 1 / -1;
}

.staff-search-result {
  min-height: 18px;
}
.transfer-form { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr 1fr auto; gap: 14px; align-items: end; }
.transfer-form label { min-width: 0; }
.transfer-form button { height: 44px; margin-bottom: 0; }

@media (max-width: 1000px) {
  .staff-link-form {
    grid-template-columns: 1fr 1fr;
  }

  .staff-link-form > button {
    margin-top: 0;
  }
  .transfer-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .staff-link-form {
    grid-template-columns: 1fr;
  }
  .transfer-form { grid-template-columns: 1fr; }
}

.professional-name { font-weight: 750; text-decoration: underline; text-decoration-color: #b9d9c5; text-underline-offset: 3px; }
.professional-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.professional-hero > div { flex: 1; }
.professional-hero h1 { margin-bottom: 5px; }
.professional-hero p { margin: 0; color: var(--muted); }
.professional-avatar { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; background: var(--brand); color: #fff; font-size: 28px; font-weight: 800; box-shadow: 7px 7px 0 color-mix(in srgb,var(--brand) 18%,white); }
.profile-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.profile-tabs a { padding: 9px 13px; border-radius: 8px; font-weight: 700; font-size: 12px; }
.profile-tabs a:hover { background: #edf6ef; text-decoration: none; }
.profile-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(270px,1fr); gap: 24px; align-items: start; }
.profile-summary > div { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile-summary > div strong { font-size: 24px; color: var(--brand); }
.profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-details div { padding: 14px; background: #f5f8f6; border-radius: 9px; }
.profile-details dt { color: var(--muted); font-size: 11px; }
.profile-details dd { margin: 4px 0 0; font-weight: 700; }
.profile-bindings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.profile-bindings article { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 11px; padding: 18px; }
.profile-bindings h3 { margin: 9px 0 4px; }
.profile-bindings p { margin-bottom: 10px; }
.profile-bindings dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.profile-bindings dl div { background: #f5f8f6; border-radius: 8px; padding: 9px; }
.profile-bindings dt { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.profile-bindings dd { margin: 3px 0 0; font-weight: 700; font-size: 12px; }
.binding-class { padding: 9px 11px; background: #f5f8f6; border-radius: 8px; font-size: 12px; }
.transfer-history { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.transfer-history > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.transfer-history small { display: block; color: var(--muted); margin-top: 3px; }
.certificate-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.certificate-row strong,.certificate-row small { display: block; margin-top: 6px; }
.certificate-row > div:last-child { text-align: right; }
.profile-empty { padding: 35px; text-align: center; background: #f7faf8; border-radius: 12px; color: var(--muted); }
.profile-empty strong { color: var(--ink); }
.certification-layout aside label { margin-top: 13px; }
.certification-layout aside button { margin-top: 20px; }
.documents-preview { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.documents-preview > div { display: flex; align-items: center; gap: 16px; }
.documents-preview h2,.documents-preview p { margin-bottom: 4px; }
.document-icon { display: grid; place-items: center; width: 55px; height: 62px; border-radius: 8px; background: #fff0f0; color: #b4232d; font-size: 13px; font-weight: 900; border: 1px solid #f2caca; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } .profile-bindings { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .professional-hero { align-items: flex-start; flex-wrap: wrap; } .professional-hero > div { min-width: calc(100% - 90px); } .profile-bindings dl { grid-template-columns: 1fr; } .certificate-row,.documents-preview { align-items: flex-start; flex-direction: column; } .certificate-row > div:last-child { text-align: left; } }
