@layer base {
/* LinkedIn prefill preview — shown at top of form when opened from the extension */
.linkedin-prefill-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.linkedin-prefill-photo {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.linkedin-prefill-name {
  font-weight: 600;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Responsible select (Tom Select integration) — Tom Select hides the native
   #id-responsible <select> and renders its own .ts-wrapper/.ts-control, so
   sizing rules must target those, not the (now invisible) native element.
   Sizing the wrapper is `.follow-up-row .ts-wrapper` in
   crm/css/components/follow-up-row.css, which this row also carries; only the
   control height is page-specific. */
.responsible-row .ts-control {
  min-height: 40px;
  box-sizing: border-box;
}

@media (max-width: 760px) {
  .team-add-form:not(.person-create--sidepanel) .flow-edit-layout {
    display: block;
  }

  .team-add-form:not(.person-create--sidepanel) .autocomplete-filters {
    gap: 6px;
  }

  /* The row is a component in a later layer, so a plain `gap` here would lose;
     it reads this property instead. */
  .team-add-form:not(.person-create--sidepanel) .follow-up-row {
    --follow-up-row-gap: 6px;
  }

  .team-add-form:not(.person-create--sidepanel) .autocomplete-type-select,
  .team-add-form:not(.person-create--sidepanel) .autocomplete-text-wrap input,
  .team-add-form:not(.person-create--sidepanel) .filter-chip-select,
  .team-add-form:not(.person-create--sidepanel) #id-responsible,
  .team-add-form:not(.person-create--sidepanel) .responsible-row .ts-control,
  .team-add-form:not(.person-create--sidepanel) #id-follow-up,
  .team-add-form:not(.person-create--sidepanel) .btn.btn-sm {
    min-height: 40px;
    height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
  }

  .team-add-form:not(.person-create--sidepanel) .autocomplete-type-select,
  .team-add-form:not(.person-create--sidepanel) .autocomplete-text-wrap input,
  .team-add-form:not(.person-create--sidepanel) .filter-chip-select,
  .team-add-form:not(.person-create--sidepanel) #id-responsible,
  .team-add-form:not(.person-create--sidepanel) .responsible-row .ts-control,
  .team-add-form:not(.person-create--sidepanel) #id-follow-up {
    font-size: var(--text-md);
    line-height: 1.2;
  }

  .team-add-form:not(.person-create--sidepanel) .journey-info-panel {
    display: none;
  }

  .team-add-form:not(.person-create--sidepanel) .follow-up-row {
    flex-wrap: nowrap;
  }

  .team-add-form:not(.person-create--sidepanel) .follow-up-row select,
  .team-add-form:not(.person-create--sidepanel) .follow-up-row input[type="date"] {
    flex: 1 1 auto;
    min-width: 0;
  }

  .team-add-form:not(.person-create--sidepanel) .follow-up-row .btn {
    flex: 0 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    font-size: var(--text-md);
    line-height: 1.1;
  }

  .team-add-form:not(.person-create--sidepanel) .responsible-row > [data-responsible-me] {
    min-width: 56px;
  }

  .team-add-form:not(.person-create--sidepanel) .date-quick__preset {
    min-width: 58px;
  }

  .team-add-form:not(.person-create--sidepanel) .date-quick__clear,
  .team-add-form:not(.person-create--sidepanel) .responsible-row > [data-responsible-clear] {
    min-width: 40px;
    padding-left: 0;
    padding-right: 0;
  }

  .team-add-form:not(.person-create--sidepanel) .date-quick__long {
    display: none;
  }

  .team-add-form:not(.person-create--sidepanel) .date-quick__short {
    display: inline;
  }
}
}
